Skip site navigation (1) Skip section navigation (2)

Re: system catalog relation of a table and a serial sequence

From: Brent Verner <brent(at)rcfile(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: system catalog relation of a table and a serial sequence
Date: 2001-12-16 02:29:07
Message-ID: 20011216022907.GB6948@rcfile.org (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
[2001-12-15 21:12] Tom Lane said:
| While you're at it, why not fix the code so that it can deal with
| multiple SERIALs attached to a table?

will do.  I'd appreciate a bit of advice on both of the issues to
be addressed.

1) Is a strcmp(firststrtok,"nextval('") == 0  sufficient to determine
   that the adsrc is indeed one that we're looking for?  If not, 
   suggestions are greatly appreciated :-)

2) Should this function now look like .. ?
     char** getSerialSequenceNames(const char* table)
   Or would you suggest it return a smarter struct?

thanks.
  brent

-- 
"Develop your talent, man, and leave the world something. Records are 
really gifts from people. To think that an artist would love you enough
to share his music with anyone is a beautiful thing."  -- Duane Allman

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2001-12-16 02:43:32
Subject: Re: system catalog relation of a table and a serial sequence
Previous:From: Bruce MomjianDate: 2001-12-16 02:28:08
Subject: Re: Third call for platform testing

pgsql-patches by date

Next:From: Tom LaneDate: 2001-12-16 02:43:32
Subject: Re: system catalog relation of a table and a serial sequence
Previous:From: Tom LaneDate: 2001-12-16 02:12:19
Subject: Re: system catalog relation of a table and a serial sequence

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group