Re: Quick question - Mailing list pgsql-hackers

From Brent Verner
Subject Re: Quick question
Date
Msg-id 20011113075134.A6006@rcfile.org
Whole thread Raw
In response to Quick question  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Responses Re: Quick question
List pgsql-hackers
On 13 Nov 2001 at 18:00 (+0800), Christopher Kings-Lynne wrote:
| Could someone please give me a quick tip as to where in the source code the
| bit that auto-generates sequence names is?

I used cscope (http://cscope.sourceforge.net/) and did a text search
for 'implicit sequence'.  A bit of backtracking from there led me to
src/backend/parser/anaylyz.c:783  sname = makeObjectName(cxt->relname, column->colname, "seq");

That function is in the same file, and has some comments related to
name collision above it.  I believe this is where you'll want to work.

cheers.  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


pgsql-hackers by date:

Previous
From: darcy@druid.net (D'Arcy J.M. Cain)
Date:
Subject: Re: ALTER TABLE ADD COLUMN can't use NOT NULL?
Next
From: "Greg Sabino Mullane"
Date:
Subject: Detailed index predicate with \d on indexes in psql