Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: to get the list of schemas in postgresql db

by zwon (Monsignor)
on Nov 22, 2011 at 06:29 UTC ( #939375=note: print w/replies, xml ) Need Help??

in reply to to get the list of schemas in postgresql db

The same way you will do it without perl, select * from pg_namespace I guess.

Replies are listed 'Best First'.
Re^2: to get the list of schemas in postgresql db
by ansh batra (Friar) on Nov 22, 2011 at 06:36 UTC
    ur query is correct zwon but for that i need to connect to a database first
    cant we supply the database name in the query itself?? thanks

      Easy answer :) : No

      Enjoy, Have FUN! H.Merijn
        thanks tuk
        atleast ill not be wasting time now
        EDIT : we cannot interact with a db without connecting to it
        sorry i forgot that

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939375]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2016-10-25 05:44 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (315 votes). Check out past polls.