Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: to get the list of schemas in postgresql db

by zwon (Abbot)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-11-20 07:29 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (284 votes). Check out past polls.