Feature request - CREATE TYPE ... WITH OID = oid_number. - Mailing list pgsql-hackers

From Dmitriy Igrishin
Subject Feature request - CREATE TYPE ... WITH OID = oid_number.
Date
Msg-id AANLkTinYmj8rXk_zhw-OhiMBeZWy3k2RHusOk0QfdGbh@mail.gmail.com
Whole thread Raw
Responses Re: Feature request - CREATE TYPE ... WITH OID = oid_number.  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-hackers
Hey hackers@,<br /><br />libpq execution function works with OIDs. In some cases it is<br />highly recommended specify
OIDsof parameters according to<br />libpq documentation.<br />While developing a database application with libpq and
if<br/> application works with custom data types IMO reasonable to<br />provide developer extended type creation
syntax,e.g.<br />  CREATE TYPE my_type ... WITH OID = 12345;<br />Yes, it is possible to make dump of the database with
oids,<br/> but if developer prefer to hard code OIDs in the application it<br />would be more convenient for him to use
syntaxabove. <br />Btw, there is already Oid lo_import_with_oid function in large<br />objects libpq's API which are
veryuseful.<br /><br />What do you think about it?<br /><br />-- <br />// Dmitriy.<br /><br /><br /> 

pgsql-hackers by date:

Previous
From: Florian Pflug
Date:
Subject: Re: serializable read only deferrable
Next
From: Euler Taveira de Oliveira
Date:
Subject: Re: To Signal The postmaster