pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roberto Mello <rmello@cc.usu.edu>
To: Michael Knudsen <mk267673@but.auc.dk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Check for table existence
Date: Thu, 29 Nov 2001 19:05:25 -0700
Message-ID: <20011129190525.A16107@cc.usu.edu> (raw)
In-Reply-To: <3C055B7E.BB52F0F1@but.auc.dk>
References: <3C055B7E.BB52F0F1@but.auc.dk>

On Wed, Nov 28, 2001 at 10:47:42PM +0100, Michael Knudsen wrote:
> Hi group
> 
> First, let me say that I am new to postgres. I used MySQL before, but..
> ehm..
> 
> I am trying to do a small program (in C), and I have stumbled on to some
> problems:
> 
> 	1. How can I check if a given table exists?
> 	2. How can I check if a given existing table has the right layout? (Correct
> column names and types)

There's a function to check for a table's existance in the PostgreSQL
Cookbook (http://www.brasileiro.net/postgres/)

-Roberto

-- 
+----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+
  Roberto Mello - Computer Science, USU - http://www.brasileiro.net 
       http://www.sdl.usu.edu - Space Dynamics Lab, Developer    
Daddy, why doesn't this magnet pick up this floppy?



view thread (4+ messages)

Message-ID: <20011129190525.A16107@cc.usu.edu>
Permalink:  ../20011129190525.A16107@cc.usu.edu/
Also on:    postgresql.org/message-id/20011129190525.A16107@cc.usu.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rmello@cc.usu.edu, mk267673@but.auc.dk
  Subject: Re: Check for table existence
  In-Reply-To: <20011129190525.A16107@cc.usu.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