pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jodi Kanter <jkanter@virginia.edu>
To: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: table check
Date: Wed, 26 May 2004 11:14:00 -0400
Message-ID: <40B4B438.2060900@virginia.edu> (raw)

We are working on checking to see whether a database has been created 
from a Perl/Pg interface. Is there an  easy way to count tables such 
that if the count comes back at zero the script knows that the database 
has not yet been created?
We tried simply using \d but cannot get that to work. I would assume 
there is some system table that must list the tables when there are some??
thoughts?
Thank you,
Jodi
-- 

/_______________________________
//Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu <mailto:jkanter@virginia.edu>/

 

/ /

/ /

view thread (2+ messages)  latest in thread

Message-ID: <40B4B438.2060900@virginia.edu>
Permalink:  ../40B4B438.2060900@virginia.edu/
Also on:    postgresql.org/message-id/40B4B438.2060900@virginia.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jkanter@virginia.edu
  Subject: Re: table check
  In-Reply-To: <40B4B438.2060900@virginia.edu>
  References: <40B4B438.2060900@virginia.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox