Re: table creation using backend functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: table creation using backend functions
Дата
Msg-id 24206.1051221376@sss.pgh.pa.us
обсуждение исходный текст
Ответ на table creation using backend functions  (Alice Lottini <alice_lottini@yahoo.it>)
Список pgsql-hackers
Alice Lottini <alice_lottini@yahoo.it> writes:
> /* DUMMY_TUPLE is a tuple of our newly-defined type
> (whose creation is successful) */
> tupdesc=RelationNameGetTupleDesc(DUMMY_TUPLE);
> ...
> reloid=heap_create_with_catalog(namestring,relnamespace,tupdesc,RELKIND_RELATION,false,allowSystemTableMods);

I have a vague recollection that heap_create_with_catalog modifies the
passed-in tupdesc.  You may need to copy the tupdesc rather than just
passing the one that belongs to the DUMMY_TUPLE relation.
        regards, tom lane



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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: query optimization scenarios 17,701 times faster!!!
Следующее
От: Sailesh Krishnamurthy
Дата:
Сообщение: Re: Are we losing momentum?