Re: Feature request - CREATE TYPE ... WITH OID = oid_number.

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Feature request - CREATE TYPE ... WITH OID = oid_number.
Дата
Msg-id AANLkTikVwqDy9KS-ejJSDRd1EWVfQGYKAYjOheGLUD8j@mail.gmail.com
обсуждение исходный текст
Ответ на Feature request - CREATE TYPE ... WITH OID = oid_number.  (Dmitriy Igrishin <dmitigr@gmail.com>)
Ответы Re: Feature request - CREATE TYPE ... WITH OID = oid_number.  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On Tue, Dec 7, 2010 at 9:10 AM, Dmitriy Igrishin <dmitigr@gmail.com> wrote:
> Hey hackers@,
>
> libpq execution function works with OIDs. In some cases it is
> highly recommended specify OIDs of parameters according to
> libpq documentation.
> While developing a database application with libpq and if
> application works with custom data types IMO reasonable to
> provide developer extended type creation syntax, e.g.
>   CREATE TYPE my_type ... WITH OID = 12345;
> Yes, it is possible to make dump of the database with oids,
> but if developer prefer to hard code OIDs in the application it
> would be more convenient for him to use syntax above.
> Btw, there is already Oid lo_import_with_oid function in large
> objects libpq's API which are very useful.

It's possible to do this in 9.0 in a slightly indirect way.   See the
contrib/pg_upgrade folder.  In particular, grep for
set_next_pg_type_oid.

merlin


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Optimize PL/Perl function argument passing [PATCH]
Следующее
От: Greg Smith
Дата:
Сообщение: Re: Spread checkpoint sync