Re: BUG #3403: ver 8.2 can't add serial column to temp table,but 8.1 can

Поиск
Список
Период
Сортировка
От Zdenek Kotala
Тема Re: BUG #3403: ver 8.2 can't add serial column to temp table,but 8.1 can
Дата
Msg-id 467BCF04.10107@sun.com
обсуждение исходный текст
Ответ на Re: BUG #3403: ver 8.2 can't add serial column to temp table,but 8.1 can  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Список pgsql-bugs
Zdenek Kotala wrote:

> I looked on it, but I think let parser to fill namespace information in
> ctx->relation structure should be better then do it in this place. There
> is also unfilled istemp flag.

Ignore this. It is good place.

However, I think add following function into namespace.c
should be nicer solution.

Oid  RelnameGetSchemaid(const char *relname);

See RelnameGetRelid.

You can use

snamespaceid = RelnameGetSchemaid(cxt->relation->relname);

instead of

snamespaceid = RangeVarGetCreationNamespace(cxt->relation);



    Zdenek

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: Error message that is a bit misleading / weird result from || null
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Temp table woes