Re: How to query information schema from shell script - Mailing list pgsql-sql

From Richard Broersma Jr
Subject Re: How to query information schema from shell script
Date
Msg-id 840218.2181.qm@web31804.mail.mud.yahoo.com
Whole thread Raw
In response to Re: How to query information schema from shell script  ("Jon Horsman" <horshaq@gmail.com>)
List pgsql-sql
> In my original email i forgot to mentioned i need to know if the
> database exists or not from the shell script.  If it doesn't exist i
> would then create it.  Currently i was just creating the db everytime
> our db script is run (since it doesn't hurt the db) but this generates
> the 'db already exists' log and I now have the requirement that the
> users not see that log.  ie, don't run createdb if it already exists.
> 
> In looking through the postgres docs i can see how to check if a table
> exists but not how a db exists.
> 
> Again, thanks for the help.

psql -l

Regards,

Richard Broersma Jr.


pgsql-sql by date:

Previous
From: Joe
Date:
Subject: Re: Case Preservation disregarding case sensitivity?
Next
From: Richard Broersma Jr
Date:
Subject: Re: Case Preservation disregarding case sensitivity?