Re: [HACKERS] Defining macro LSNOID for pg_lsn in pg_type.h
On Mon, Mar 3, 2014 at 9:06 PM, Robert Haas wrote: > On Thu, Feb 27, 2014 at 8:12 AM, Michael Paquier > wrote: >> When working on the datatype pg_lsn, we actually did not create a >> define macro for its oid in pg_type.h and this could be useful for >> extension developers. The simple patch attached corrects that by >> naming this macro LSNOID. > > Thanks, committed. Thanks. -- Michael -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
Re: [HACKERS] Defining macro LSNOID for pg_lsn in pg_type.h
On Thu, Feb 27, 2014 at 8:12 AM, Michael Paquier wrote: > When working on the datatype pg_lsn, we actually did not create a > define macro for its oid in pg_type.h and this could be useful for > extension developers. The simple patch attached corrects that by > naming this macro LSNOID. Thanks, committed. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
[HACKERS] Defining macro LSNOID for pg_lsn in pg_type.h
Hi all, When working on the datatype pg_lsn, we actually did not create a define macro for its oid in pg_type.h and this could be useful for extension developers. The simple patch attached corrects that by naming this macro LSNOID. Regards, -- Michael diff --git a/src/include/catalog/pg_type.h b/src/include/catalog/pg_type.h index 8ea9ceb..4c060f5 100644 --- a/src/include/catalog/pg_type.h +++ b/src/include/catalog/pg_type.h @@ -580,6 +580,7 @@ DATA(insert OID = 2951 ( _uuid PGNSP PGUID -1 f b A f t \054 0 2950 0 array_in /* pg_lsn */ DATA(insert OID = 3220 ( pg_lsn PGNSP PGUID 8 FLOAT8PASSBYVAL b U t t \054 0 0 3221 pg_lsn_in pg_lsn_out pg_lsn_recv pg_lsn_send - - - d p f 0 -1 0 0 _null_ _null_ _null_ )); DESCR("PostgreSQL LSN datatype"); +#define LSNOID 3220 DATA(insert OID = 3221 ( _pg_lsn PGNSP PGUID -1 f b A f t \054 0 3220 0 array_in array_out array_recv array_send - - array_typanalyze d x f 0 -1 0 0 _null_ _null_ _null_ )); /* text search */ -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers