Re: Quick question

From: Brent Verner <brent(at)rcfile(dot)org>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Quick question
Date: 2001-11-13 12:51:34
Message-ID: 20011113075134.A6006@rcfile.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Sabino Mullane 2001-11-13 16:45:26 Detailed index predicate with \d on indexes in psql
Previous Message D'Arcy J.M. Cain 2001-11-13 12:36:44 Re: ALTER TABLE ADD COLUMN can't use NOT NULL?