Re: Quick question

Поиск
Список
Период
Сортировка
От Brent Verner
Тема Re: Quick question
Дата
Msg-id 20011113075134.A6006@rcfile.org
обсуждение исходный текст
Ответ на Quick question  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Ответы Re: Quick question  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: darcy@druid.net (D'Arcy J.M. Cain)
Дата:
Сообщение: Re: ALTER TABLE ADD COLUMN can't use NOT NULL?
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Detailed index predicate with \d on indexes in psql