add 9.4beta3 OIDs
authorMichael Wallner <mike@php.net>
Thu, 23 Oct 2014 07:49:32 +0000 (09:49 +0200)
committerMichael Wallner <mike@php.net>
Thu, 23 Oct 2014 07:49:32 +0000 (09:49 +0200)
gen_pq_type.sh
php_pq_type.h

index 561dc0ad46a6581f86773eced006da5d149ece91..a0c49dbd8ac63fe41afbf5510db98b11fd67d464 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/sh
 CWD=$(dirname $0)
 awk -f $CWD/php_pq_type.awk >$CWD/php_pq_type.h \
 #!/bin/sh
 CWD=$(dirname $0)
 awk -f $CWD/php_pq_type.awk >$CWD/php_pq_type.h \
-       </usr/include/postgresql/server/catalog/pg_type.h
+       <${1-/usr/include/postgresql}/server/catalog/pg_type.h
index 1d20e9484d72e6f4cc86658c0e5552053521ac86..e0fd421d7958150ede80456ccf4619a9e3ce6351 100644 (file)
@@ -449,6 +449,14 @@ PHP_PQ_TYPE("UUID", 2950)
 # define PHP_PQ_OID_UUIDARRAY 2951
 #endif
 PHP_PQ_TYPE("UUIDARRAY", 2951)
 # define PHP_PQ_OID_UUIDARRAY 2951
 #endif
 PHP_PQ_TYPE("UUIDARRAY", 2951)
+#ifndef PHP_PQ_OID_PG_LSN
+# define PHP_PQ_OID_PG_LSN 3220
+#endif
+PHP_PQ_TYPE("PG_LSN", 3220)
+#ifndef PHP_PQ_OID_PG_LSNARRAY
+# define PHP_PQ_OID_PG_LSNARRAY 3221
+#endif
+PHP_PQ_TYPE("PG_LSNARRAY", 3221)
 #ifndef PHP_PQ_OID_TSVECTOR
 # define PHP_PQ_OID_TSVECTOR 3614
 #endif
 #ifndef PHP_PQ_OID_TSVECTOR
 # define PHP_PQ_OID_TSVECTOR 3614
 #endif
@@ -489,6 +497,14 @@ PHP_PQ_TYPE("REGCONFIGARRAY", 3735)
 # define PHP_PQ_OID_REGDICTIONARYARRAY 3770
 #endif
 PHP_PQ_TYPE("REGDICTIONARYARRAY", 3770)
 # define PHP_PQ_OID_REGDICTIONARYARRAY 3770
 #endif
 PHP_PQ_TYPE("REGDICTIONARYARRAY", 3770)
+#ifndef PHP_PQ_OID_JSONB
+# define PHP_PQ_OID_JSONB 3802
+#endif
+PHP_PQ_TYPE("JSONB", 3802)
+#ifndef PHP_PQ_OID_JSONBARRAY
+# define PHP_PQ_OID_JSONBARRAY 3807
+#endif
+PHP_PQ_TYPE("JSONBARRAY", 3807)
 #ifndef PHP_PQ_OID_TXID_SNAPSHOT
 # define PHP_PQ_OID_TXID_SNAPSHOT 2970
 #endif
 #ifndef PHP_PQ_OID_TXID_SNAPSHOT
 # define PHP_PQ_OID_TXID_SNAPSHOT 2970
 #endif
@@ -667,11 +683,13 @@ PHP_PQ_TYPE("ANYRANGE", 3831)
        ||      ((oid) == 2287) \
        ||      ((oid) == 2949) \
        ||      ((oid) == 2951) \
        ||      ((oid) == 2287) \
        ||      ((oid) == 2949) \
        ||      ((oid) == 2951) \
+       ||      ((oid) == 3221) \
        ||      ((oid) == 3643) \
        ||      ((oid) == 3644) \
        ||      ((oid) == 3645) \
        ||      ((oid) == 3735) \
        ||      ((oid) == 3770) \
        ||      ((oid) == 3643) \
        ||      ((oid) == 3644) \
        ||      ((oid) == 3645) \
        ||      ((oid) == 3735) \
        ||      ((oid) == 3770) \
+       ||      ((oid) == 3807) \
        ||      ((oid) == 3905) \
        ||      ((oid) == 3907) \
        ||      ((oid) == 3909) \
        ||      ((oid) == 3905) \
        ||      ((oid) == 3907) \
        ||      ((oid) == 3909) \
@@ -737,11 +755,13 @@ PHP_PQ_TYPE("ANYRANGE", 3831)
        (oid) == 2287 ? 2249 : \
        (oid) == 2949 ? 2970 : \
        (oid) == 2951 ? 2950 : \
        (oid) == 2287 ? 2249 : \
        (oid) == 2949 ? 2970 : \
        (oid) == 2951 ? 2950 : \
+       (oid) == 3221 ? 3220 : \
        (oid) == 3643 ? 3614 : \
        (oid) == 3644 ? 3642 : \
        (oid) == 3645 ? 3615 : \
        (oid) == 3735 ? 3734 : \
        (oid) == 3770 ? 3769 : \
        (oid) == 3643 ? 3614 : \
        (oid) == 3644 ? 3642 : \
        (oid) == 3645 ? 3615 : \
        (oid) == 3735 ? 3734 : \
        (oid) == 3770 ? 3769 : \
+       (oid) == 3807 ? 3802 : \
        (oid) == 3905 ? 3904 : \
        (oid) == 3907 ? 3906 : \
        (oid) == 3909 ? 3908 : \
        (oid) == 3905 ? 3904 : \
        (oid) == 3907 ? 3906 : \
        (oid) == 3909 ? 3908 : \