├── src ├── template │ ├── irix │ ├── openbsd │ ├── sco │ ├── netbsd │ ├── osf │ ├── freebsd │ ├── win32 │ ├── cygwin │ ├── hpux │ └── darwin ├── backend │ ├── port │ │ ├── tas │ │ │ └── dummy.s │ │ ├── .gitignore │ │ └── dynloader │ │ │ ├── cygwin.c │ │ │ ├── aix.c │ │ │ ├── irix.c │ │ │ ├── osf.c │ │ │ ├── sco.c │ │ │ ├── solaris.c │ │ │ ├── unixware.c │ │ │ └── darwin.h │ ├── utils │ │ ├── misc │ │ │ └── .gitignore │ │ ├── sort │ │ │ └── .gitignore │ │ ├── mb │ │ │ └── conversion_procs │ │ │ │ ├── .gitignore │ │ │ │ ├── README.euc_jp │ │ │ │ ├── regress_epilogue │ │ │ │ ├── proc.mk │ │ │ │ ├── utf8_and_gbk │ │ │ │ └── Makefile │ │ │ │ ├── utf8_and_uhc │ │ │ │ └── Makefile │ │ │ │ ├── utf8_and_win │ │ │ │ └── Makefile │ │ │ │ ├── ascii_and_mic │ │ │ │ └── Makefile │ │ │ │ ├── euc_cn_and_mic │ │ │ │ └── Makefile │ │ │ │ ├── euc_kr_and_mic │ │ │ │ └── Makefile │ │ │ │ ├── latin_and_mic │ │ │ │ └── Makefile │ │ │ │ ├── utf8_and_ascii │ │ │ │ └── Makefile │ │ │ │ ├── utf8_and_big5 │ │ │ │ └── Makefile │ │ │ │ ├── utf8_and_johab │ │ │ │ └── Makefile │ │ │ │ └── utf8_and_sjis │ │ │ │ └── Makefile │ │ └── .gitignore │ ├── .gitignore │ ├── snowball │ │ └── .gitignore │ ├── bootstrap │ │ └── .gitignore │ ├── parser │ │ └── .gitignore │ ├── replication │ │ └── .gitignore │ ├── po │ │ └── fr.po │ ├── catalog │ │ └── .gitignore │ ├── tsearch │ │ ├── synonym_sample.syn │ │ ├── ispell_sample.dict │ │ └── hunspell_sample.affix │ ├── optimizer │ │ └── Makefile │ ├── storage │ │ └── Makefile │ ├── access │ │ └── Makefile │ ├── main │ │ └── Makefile │ └── foreign │ │ └── Makefile ├── gtm │ ├── main │ │ └── .gitignore │ ├── proxy │ │ └── .gitignore │ ├── config │ │ └── .gitignore │ ├── test2 │ │ ├── status │ │ ├── regress2.sh │ │ ├── run.sh │ │ ├── test.c │ │ ├── status_a.sh │ │ └── status_s.sh │ └── test │ │ ├── start.sh │ │ └── regress.sh ├── bin │ ├── pg_ctl │ │ ├── .gitignore │ │ ├── po │ │ │ ├── fr.po │ │ │ └── sv.po │ │ └── nls.mk │ ├── gtm_ctl │ │ └── .gitignore │ ├── pg_config │ │ ├── .gitignore │ │ ├── po │ │ │ ├── fr.po │ │ │ ├── ko.po │ │ │ ├── nb.po │ │ │ └── sv.po │ │ └── nls.mk │ ├── pg_controldata │ │ ├── .gitignore │ │ ├── po │ │ │ ├── fr.po │ │ │ ├── ko.po │ │ │ └── sv.po │ │ └── nls.mk │ ├── pg_resetxlog │ │ ├── .gitignore │ │ ├── po │ │ │ ├── fr.po │ │ │ ├── ko.po │ │ │ └── sv.po │ │ └── nls.mk │ ├── initgtm │ │ └── .gitignore │ ├── pgevent │ │ ├── MSG00001.bin │ │ ├── pgmsgevent.rc │ │ ├── pgmsgevent.mc │ │ └── pgevent.def │ ├── pg_basebackup │ │ ├── .gitignore │ │ ├── po │ │ │ └── fr.po │ │ └── nls.mk │ ├── initdb │ │ ├── .gitignore │ │ ├── po │ │ │ ├── fr.po │ │ │ ├── ko.po │ │ │ └── sv.po │ │ └── nls.mk │ ├── pg_dump │ │ ├── .gitignore │ │ └── po │ │ │ ├── fr.po │ │ │ ├── ko.po │ │ │ └── sv.po │ ├── psql │ │ ├── po │ │ │ ├── fr.po │ │ │ └── sv.po │ │ ├── .gitignore │ │ ├── psqlrc.sample │ │ ├── mainloop.h │ │ ├── tab-complete.h │ │ ├── help.h │ │ └── large_obj.h │ └── scripts │ │ ├── po │ │ ├── fr.po │ │ ├── ko.po │ │ └── sv.po │ │ ├── .gitignore │ │ └── nls.mk ├── tools │ ├── entab │ │ ├── .gitignore │ │ └── Makefile │ ├── FAQ2txt │ ├── make_diff │ │ ├── rmorig │ │ ├── cporig │ │ └── difforig │ ├── pgindent │ │ ├── exclude_file_patterns │ │ └── perltidyrc │ ├── codelines │ ├── msvc │ │ ├── build.bat │ │ ├── builddoc.bat │ │ ├── vcregress.bat │ │ ├── pgflex.bat │ │ ├── pgbison.bat │ │ └── install.pl │ ├── make_etags │ ├── make_mkid │ ├── ccsym │ └── ifaddrs │ │ └── README ├── include │ ├── parser │ │ └── .gitignore │ ├── catalog │ │ └── .gitignore │ ├── port │ │ ├── freebsd.h │ │ ├── netbsd.h │ │ ├── openbsd.h │ │ ├── win32 │ │ │ ├── grp.h │ │ │ ├── dlfcn.h │ │ │ ├── netdb.h │ │ │ ├── pwd.h │ │ │ ├── sys │ │ │ │ └── wait.h │ │ │ ├── arpa │ │ │ │ └── inet.h │ │ │ └── netinet │ │ │ │ └── in.h │ │ ├── win32_msvc │ │ │ ├── unistd.h │ │ │ ├── utime.h │ │ │ └── sys │ │ │ │ ├── file.h │ │ │ │ ├── time.h │ │ │ │ └── param.h │ │ ├── hpux.h │ │ ├── osf.h │ │ ├── aix.h │ │ ├── sco.h │ │ ├── darwin.h │ │ ├── irix.h │ │ ├── unixware.h │ │ └── cygwin.h │ ├── utils │ │ └── .gitignore │ ├── .gitignore │ ├── pg_config_ext.h.in │ ├── pg_config_ext.h.win32 │ ├── pg_trace.h │ └── snowball │ │ └── libstemmer │ │ ├── stem_UTF_8_dutch.h │ │ ├── stem_UTF_8_danish.h │ │ ├── stem_UTF_8_french.h │ │ ├── stem_UTF_8_german.h │ │ ├── stem_UTF_8_porter.h │ │ ├── stem_UTF_8_english.h │ │ ├── stem_UTF_8_finnish.h │ │ ├── stem_UTF_8_italian.h │ │ ├── stem_UTF_8_russian.h │ │ ├── stem_UTF_8_spanish.h │ │ ├── stem_UTF_8_swedish.h │ │ ├── stem_UTF_8_turkish.h │ │ ├── stem_KOI8_R_russian.h │ │ ├── stem_UTF_8_romanian.h │ │ ├── stem_ISO_8859_1_dutch.h │ │ ├── stem_UTF_8_hungarian.h │ │ ├── stem_UTF_8_norwegian.h │ │ ├── stem_UTF_8_portuguese.h │ │ ├── stem_ISO_8859_1_danish.h │ │ ├── stem_ISO_8859_1_french.h │ │ ├── stem_ISO_8859_1_german.h │ │ ├── stem_ISO_8859_1_porter.h │ │ ├── stem_ISO_8859_1_english.h │ │ ├── stem_ISO_8859_1_finnish.h │ │ ├── stem_ISO_8859_1_italian.h │ │ ├── stem_ISO_8859_1_spanish.h │ │ ├── stem_ISO_8859_1_swedish.h │ │ ├── stem_ISO_8859_2_romanian.h │ │ ├── stem_ISO_8859_1_hungarian.h │ │ ├── stem_ISO_8859_1_norwegian.h │ │ └── stem_ISO_8859_1_portuguese.h ├── pgxc │ ├── tools │ │ └── makesgml │ │ │ └── .gitignore │ └── Makefile ├── interfaces │ ├── ecpg │ │ ├── test │ │ │ ├── expected │ │ │ │ ├── sql-code100.stdout │ │ │ │ ├── thread-alloc.stderr │ │ │ │ ├── thread-alloc.stdout │ │ │ │ ├── thread-prep.stderr │ │ │ │ ├── connect-test1.stdout │ │ │ │ ├── connect-test2.stdout │ │ │ │ ├── connect-test3.stdout │ │ │ │ ├── connect-test4.stdout │ │ │ │ ├── connect-test5.stdout │ │ │ │ ├── preproc-comment.stdout │ │ │ │ ├── preproc-whenever.stdout │ │ │ │ ├── thread-descriptor.stderr │ │ │ │ ├── thread-descriptor.stdout │ │ │ │ ├── thread-prep_2.stdout │ │ │ │ ├── thread-thread.stderr │ │ │ │ ├── thread-thread_implicit.stderr │ │ │ │ ├── compat_informix-charfuncs.stderr │ │ │ │ ├── thread-thread_2.stdout │ │ │ │ ├── sql-define.stdout │ │ │ │ ├── thread-prep.stdout │ │ │ │ ├── thread-thread_implicit_2.stdout │ │ │ │ ├── thread-alloc_2.stdout │ │ │ │ ├── thread-thread.stdout │ │ │ │ ├── sql-func.stdout │ │ │ │ ├── thread-thread_implicit.stdout │ │ │ │ ├── preproc-strings.stdout │ │ │ │ ├── sql-parser.stdout │ │ │ │ ├── compat_informix-test_informix2.stdout │ │ │ │ ├── sql-insupd.stdout │ │ │ │ ├── sql-copystdout.stdout │ │ │ │ ├── sql-fetch.stdout │ │ │ │ ├── pgtypeslib-dt_test2.stderr │ │ │ │ ├── pgtypeslib-num_test2.stderr │ │ │ │ ├── sql-indicators.stdout │ │ │ │ ├── compat_informix-dec_test.stderr │ │ │ │ ├── compat_informix-rfmtdate.stderr │ │ │ │ ├── compat_informix-rfmtlong.stderr │ │ │ │ ├── preproc-define.stdout │ │ │ │ ├── preproc-type.stdout │ │ │ │ ├── sql-desc.stdout │ │ │ │ ├── sql-dynalloc2.stdout │ │ │ │ ├── sql-binary.stdout │ │ │ │ ├── sql-quote.stdout │ │ │ │ ├── pgtypeslib-num_test.stdout │ │ │ │ ├── preproc-describe.stdout │ │ │ │ ├── sql-show.stdout │ │ │ │ ├── preproc-init.stdout │ │ │ │ ├── pgtypeslib-num_test-MinGW32.stdout │ │ │ │ ├── preproc-variable.stdout │ │ │ │ ├── preproc-outofscope.stdout │ │ │ │ ├── sql-dynalloc.stdout │ │ │ │ ├── preproc-cursor.stdout │ │ │ │ ├── compat_informix-charfuncs.stdout │ │ │ │ ├── preproc-autoprep.stdout │ │ │ │ ├── preproc-comment.stderr │ │ │ │ ├── sql-array.stdout │ │ │ │ ├── compat_informix-rnull.stdout │ │ │ │ ├── pgtypeslib-nan_test.stdout │ │ │ │ ├── connect-test4.stderr │ │ │ │ ├── compat_informix-test_informix.stdout │ │ │ │ ├── sql-describe.stdout │ │ │ │ ├── preproc-array_of_struct.stdout │ │ │ │ └── compat_informix-describe.stdout │ │ │ ├── .gitignore │ │ │ ├── preproc │ │ │ │ ├── strings.h │ │ │ │ ├── struct.h │ │ │ │ └── .gitignore │ │ │ ├── connect │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ ├── test4.pgc │ │ │ │ └── README │ │ │ ├── thread │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ ├── pgtypeslib │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ ├── regression.h │ │ │ └── compat_informix │ │ │ │ └── .gitignore │ │ ├── include │ │ │ ├── .gitignore │ │ │ ├── decimal.h │ │ │ ├── sqlda.h │ │ │ └── datetime.h │ │ ├── compatlib │ │ │ └── .gitignore │ │ ├── pgtypeslib │ │ │ └── .gitignore │ │ ├── preproc │ │ │ ├── .gitignore │ │ │ ├── po │ │ │ │ └── fr.po │ │ │ └── nls.mk │ │ └── ecpglib │ │ │ ├── po │ │ │ └── fr.po │ │ │ ├── .gitignore │ │ │ └── nls.mk │ └── libpq │ │ ├── po │ │ ├── fr.po │ │ ├── ko.po │ │ └── sv.po │ │ ├── README │ │ ├── .gitignore │ │ ├── test │ │ └── README │ │ └── nls.mk ├── timezone │ ├── .gitignore │ ├── tznames │ │ └── Europe.txt │ └── data │ │ └── factory ├── test │ ├── regress │ │ ├── data │ │ │ ├── dept.data │ │ │ ├── constro.data │ │ │ ├── constrf.data │ │ │ ├── agg.data │ │ │ ├── emp.data │ │ │ ├── student.data │ │ │ ├── stud_emp.data │ │ │ └── real_city.data │ │ ├── .gitignore │ │ ├── sql │ │ │ └── .gitignore │ │ └── expected │ │ │ └── .gitignore │ ├── performance │ │ ├── sqls │ │ │ ├── connection │ │ │ ├── orbsimple │ │ │ ├── vacuum │ │ │ ├── drpsimple │ │ │ ├── crtsimple │ │ │ ├── crtsimpleidx │ │ │ └── slcsimple │ │ └── start-pgsql.sh │ ├── locale │ │ ├── koi8-r │ │ │ ├── Makefile │ │ │ ├── test-koi8-sort.in │ │ │ ├── test-koi8.sql.in │ │ │ ├── expected │ │ │ │ ├── koi8-ctype.out │ │ │ │ ├── test-koi8-sort.out │ │ │ │ ├── test-koi8-char.sql.out │ │ │ │ ├── test-koi8-text.sql.out │ │ │ │ ├── test-koi8-select.sql.out │ │ │ │ └── test-koi8-varchar.sql.out │ │ │ └── test-koi8-select.sql.in │ │ ├── de_DE.ISO8859-1 │ │ │ ├── Makefile │ │ │ ├── test-de-sort.in │ │ │ ├── test-de.sql.in │ │ │ ├── test-de-upper.sql.in │ │ │ ├── expected │ │ │ │ ├── de-ctype.out │ │ │ │ ├── test-de-sort.out │ │ │ │ ├── test-de-char.sql.out │ │ │ │ ├── test-de-text.sql.out │ │ │ │ ├── test-de-select.sql.out │ │ │ │ ├── test-de-varchar.sql.out │ │ │ │ ├── test-de-upper-char.sql.out │ │ │ │ ├── test-de-upper-text.sql.out │ │ │ │ └── test-de-upper-varchar.sql.out │ │ │ ├── test-de-select.sql.in │ │ │ └── README │ │ ├── gr_GR.ISO8859-7 │ │ │ ├── Makefile │ │ │ ├── test-gr-sort.in │ │ │ ├── test-gr.sql.in │ │ │ ├── expected │ │ │ │ ├── gr-ctype.out │ │ │ │ ├── test-gr-sort.out │ │ │ │ ├── test-gr-char.sql.out │ │ │ │ ├── test-gr-text.sql.out │ │ │ │ ├── test-gr-select.sql.out │ │ │ │ └── test-gr-varchar.sql.out │ │ │ ├── test-gr-select.sql.in │ │ │ └── README │ │ ├── koi8-to-win1251 │ │ │ ├── Makefile │ │ │ ├── test-koi8-sort.in │ │ │ ├── test-koi8.sql.in │ │ │ ├── test-koi8-select.sql.in │ │ │ ├── expected │ │ │ │ ├── test-koi8-sort.out │ │ │ │ ├── test-koi8-char.sql.out │ │ │ │ ├── test-koi8-select.sql.out │ │ │ │ ├── test-koi8-text.sql.out │ │ │ │ └── test-koi8-varchar.sql.out │ │ │ └── README │ │ ├── sort-test.pl │ │ ├── sort-test.py │ │ └── Makefile │ ├── mb │ │ ├── sql │ │ │ ├── big5.sql │ │ │ ├── sjis.sql │ │ │ ├── euc_cn.sql │ │ │ ├── euc_jp.sql │ │ │ ├── euc_kr.sql │ │ │ ├── euc_tw.sql │ │ │ └── mule_internal.sql │ │ ├── expected │ │ │ ├── big5.out │ │ │ ├── sjis.out │ │ │ ├── euc_cn.out │ │ │ ├── euc_jp.out │ │ │ ├── euc_kr.out │ │ │ ├── euc_tw.out │ │ │ └── mule_internal.out │ │ └── README │ ├── examples │ │ ├── testlibpq2.sql │ │ ├── testlibpq3.sql │ │ └── Makefile │ ├── isolation │ │ ├── .gitignore │ │ └── specs │ │ │ └── fk-contention.spec │ └── Makefile ├── .gitignore ├── pl │ ├── plpgsql │ │ └── src │ │ │ ├── .gitignore │ │ │ ├── po │ │ │ └── fr.po │ │ │ ├── plpgsql.control │ │ │ ├── nls.mk │ │ │ └── plpgsql--unpackaged--1.0.sql │ ├── tcl │ │ ├── modules │ │ │ └── .gitignore │ │ ├── .gitignore │ │ ├── po │ │ │ └── fr.po │ │ ├── pltcl.control │ │ ├── pltclu.control │ │ ├── nls.mk │ │ ├── pltcl--unpackaged--1.0.sql │ │ ├── pltclu--unpackaged--1.0.sql │ │ ├── pltcl--1.0.sql │ │ └── pltclu--1.0.sql │ ├── plperl │ │ ├── po │ │ │ └── fr.po │ │ ├── .gitignore │ │ ├── plperl.control │ │ ├── plperlu.control │ │ ├── sql │ │ │ ├── plperl_lc.sql │ │ │ └── plperl_init.sql │ │ ├── nls.mk │ │ ├── plperl--1.0.sql │ │ ├── expected │ │ │ ├── plperl_lc.out │ │ │ └── plperl_lc_1.out │ │ ├── plperlu--1.0.sql │ │ ├── plperl--unpackaged--1.0.sql │ │ ├── plperlu--unpackaged--1.0.sql │ │ └── README │ └── plpython │ │ ├── po │ │ └── fr.po │ │ ├── .gitignore │ │ ├── sql │ │ ├── plpython_do.sql │ │ └── plpython_drop.sql │ │ ├── plpython2u.control │ │ ├── plpython3u.control │ │ ├── plpythonu.control │ │ ├── expected │ │ ├── plpython_drop.out │ │ └── README │ │ ├── plpy_exec.h │ │ ├── plpythonu--1.0.sql │ │ ├── plpython2u--1.0.sql │ │ ├── plpython3u--1.0.sql │ │ ├── plpythonu--unpackaged--1.0.sql │ │ ├── plpython2u--unpackaged--1.0.sql │ │ ├── plpython3u--unpackaged--1.0.sql │ │ └── plpy_plpymodule.h ├── port │ ├── .gitignore │ ├── win32.ico │ └── rint.c ├── DEVELOPERS └── makefiles │ ├── Makefile.osf │ ├── Makefile.sco │ ├── Makefile.darwin │ ├── Makefile │ └── Makefile.irix ├── contrib ├── pgxc_ctl │ ├── coord_command.h │ └── pgxc_ctl_bash_conf_part ├── oid2name │ └── .gitignore ├── pgbench │ └── .gitignore ├── vacuumlo │ └── .gitignore ├── pg_standby │ ├── .gitignore │ └── Makefile ├── file_fdw │ ├── sql │ │ └── .gitignore │ ├── expected │ │ └── .gitignore │ ├── data │ │ ├── text.csv │ │ ├── agg.bad │ │ ├── agg.data │ │ └── agg.csv │ ├── .gitignore │ └── file_fdw.control ├── pg_test_fsync │ ├── .gitignore │ └── Makefile ├── pg_test_timing │ ├── .gitignore │ └── Makefile ├── pg_archivecleanup │ └── .gitignore ├── btree_gist │ ├── sql │ │ └── init.sql │ ├── expected │ │ └── init.out │ ├── .gitignore │ └── btree_gist.control ├── pgcrypto │ ├── sql │ │ ├── pgp-zlib-DISABLED.sql │ │ ├── pgp-encrypt-DISABLED.sql │ │ ├── pgp-pubkey-DISABLED.sql │ │ ├── crypt-des.sql │ │ ├── crypt-md5.sql │ │ ├── crypt-xdes.sql │ │ ├── init.sql │ │ └── crypt-blowfish.sql │ ├── expected │ │ ├── pgp-zlib-DISABLED.out │ │ ├── pgp-encrypt-DISABLED.out │ │ └── pgp-pubkey-DISABLED.out │ ├── .gitignore │ └── pgcrypto.control ├── btree_gin │ ├── sql │ │ ├── install_btree_gin.sql │ │ ├── oid.sql │ │ ├── int2.sql │ │ └── int4.sql │ ├── expected │ │ └── install_btree_gin.out │ ├── .gitignore │ └── btree_gin.control ├── citext │ ├── .gitignore │ ├── citext.control │ └── Makefile ├── dblink │ ├── .gitignore │ ├── dblink.control │ └── dblink--1.0--1.1.sql ├── dict_int │ ├── .gitignore │ ├── dict_int.control │ └── Makefile ├── hstore │ ├── .gitignore │ ├── hstore.control │ ├── crc32.h │ └── hstore--1.0--1.1.sql ├── intarray │ ├── .gitignore │ └── intarray.control ├── ltree │ ├── .gitignore │ ├── ltree.control │ └── crc32.h ├── pg_trgm │ ├── .gitignore │ └── pg_trgm.control ├── tsearch2 │ ├── .gitignore │ ├── tsearch2.control │ └── Makefile ├── unaccent │ ├── .gitignore │ ├── sql │ │ └── unaccent.sql │ ├── expected │ │ └── unaccent.out │ └── unaccent.control ├── xml2 │ ├── .gitignore │ └── xml2.control ├── dict_xsyn │ ├── .gitignore │ ├── xsyn_sample.rules │ └── dict_xsyn.control ├── earthdistance │ ├── .gitignore │ └── earthdistance.control ├── pgstattuple │ ├── .gitignore │ ├── pgstattuple.control │ └── pgstattuple--1.0--1.1.sql ├── postgres_fdw │ ├── .gitignore │ └── postgres_fdw.control ├── tablefunc │ ├── .gitignore │ ├── data │ │ ├── connectby_int.data │ │ └── connectby_text.data │ └── tablefunc.control ├── test_parser │ ├── .gitignore │ └── test_parser.control ├── start-scripts │ └── osx │ │ ├── README │ │ └── install.sh ├── contrib-global.mk ├── cube │ ├── .gitignore │ ├── cube.control │ └── cubedata.h ├── seg │ ├── .gitignore │ ├── seg.control │ ├── segdata.h │ └── sort-segments.pl ├── pg_upgrade │ └── .gitignore ├── intagg │ ├── intagg.control │ └── Makefile ├── lo │ ├── lo.control │ ├── lo--unpackaged--1.0.sql │ └── Makefile ├── sepgsql │ └── .gitignore ├── tcn │ ├── tcn.control │ ├── tcn--1.0.sql │ └── Makefile ├── spi │ ├── autoinc.control │ ├── timetravel.control │ ├── moddatetime.control │ ├── refint.control │ ├── insert_username.control │ ├── autoinc--unpackaged--1.0.sql │ ├── moddatetime--unpackaged--1.0.sql │ ├── autoinc--1.0.sql │ ├── insert_username--unpackaged--1.0.sql │ ├── moddatetime--1.0.sql │ ├── insert_username--1.0.sql │ ├── refint--unpackaged--1.0.sql │ ├── refint--1.0.sql │ └── timetravel--unpackaged--1.0.sql ├── sslinfo │ └── sslinfo.control ├── chkpass │ └── chkpass.control ├── isn │ ├── isn.control │ └── Makefile ├── pgrowlocks │ ├── pgrowlocks.control │ └── pgrowlocks--unpackaged--1.0.sql ├── uuid-ossp │ └── uuid-ossp.control ├── pg_buffercache │ ├── pg_buffercache.control │ └── pg_buffercache--unpackaged--1.0.sql ├── pg_freespacemap │ ├── pg_freespacemap.control │ └── pg_freespacemap--unpackaged--1.0.sql ├── pageinspect │ └── pageinspect.control ├── adminpack │ ├── adminpack.control │ └── Makefile ├── fuzzystrmatch │ └── fuzzystrmatch.control ├── pg_stat_statements │ ├── pg_stat_statements.control │ └── pg_stat_statements--unpackaged--1.0.sql ├── pgxc_clean │ └── pgxc_clean.h ├── auth_delay │ └── Makefile ├── worker_spi │ └── Makefile ├── dummy_seclabel │ └── Makefile ├── pg_xlogdump │ ├── .gitignore │ └── rmgrdesc.h ├── auto_explain │ └── Makefile └── pg_upgrade_support │ └── Makefile ├── ._.DS_Store ├── doc-xc ├── TODO ├── README.mb.big5 ├── src │ ├── sgml │ │ ├── pgonly.sgmlin │ │ ├── xconly.sgmlin │ │ ├── not-supported.sgmlin │ │ ├── pgnotice.sgmlin │ │ ├── xc-constraint.sgmlin │ │ ├── common.sgmlin │ │ └── stylesheet-fo.xsl │ └── Makefile ├── KNOWN_BUGS └── MISSING_FEATURES ├── doc ├── TODO ├── KNOWN_BUGS ├── MISSING_FEATURES └── src │ └── Makefile ├── config └── Makefile └── aclocal.m4 /src/template/irix: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/template/openbsd: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/backend/port/tas/dummy.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/gtm/main/.gitignore: -------------------------------------------------------------------------------- 1 | /gtm 2 | -------------------------------------------------------------------------------- /contrib/pgxc_ctl/coord_command.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bin/pg_ctl/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_ctl 2 | -------------------------------------------------------------------------------- /src/template/sco: -------------------------------------------------------------------------------- 1 | CC="$CC -b elf" 2 | -------------------------------------------------------------------------------- /src/tools/entab/.gitignore: -------------------------------------------------------------------------------- 1 | /entab 2 | -------------------------------------------------------------------------------- /contrib/oid2name/.gitignore: -------------------------------------------------------------------------------- 1 | /oid2name 2 | -------------------------------------------------------------------------------- /contrib/pgbench/.gitignore: -------------------------------------------------------------------------------- 1 | /pgbench 2 | -------------------------------------------------------------------------------- /contrib/pgxc_ctl/pgxc_ctl_bash_conf_part: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /contrib/vacuumlo/.gitignore: -------------------------------------------------------------------------------- 1 | /vacuumlo 2 | -------------------------------------------------------------------------------- /src/bin/gtm_ctl/.gitignore: -------------------------------------------------------------------------------- 1 | /gtm_ctl 2 | -------------------------------------------------------------------------------- /src/bin/pg_config/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_config 2 | -------------------------------------------------------------------------------- /src/gtm/proxy/.gitignore: -------------------------------------------------------------------------------- 1 | /gtm_proxy 2 | -------------------------------------------------------------------------------- /src/include/parser/.gitignore: -------------------------------------------------------------------------------- 1 | /gram.h 2 | -------------------------------------------------------------------------------- /contrib/pg_standby/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_standby 2 | -------------------------------------------------------------------------------- /src/gtm/config/.gitignore: -------------------------------------------------------------------------------- 1 | /gtm_opt_scanner.c 2 | -------------------------------------------------------------------------------- /src/include/catalog/.gitignore: -------------------------------------------------------------------------------- 1 | /schemapg.h 2 | -------------------------------------------------------------------------------- /src/pgxc/tools/makesgml/.gitignore: -------------------------------------------------------------------------------- 1 | /makesgml 2 | -------------------------------------------------------------------------------- /contrib/file_fdw/sql/.gitignore: -------------------------------------------------------------------------------- 1 | /file_fdw.sql 2 | -------------------------------------------------------------------------------- /contrib/pg_test_fsync/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_test_fsync 2 | -------------------------------------------------------------------------------- /contrib/pg_test_timing/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_test_timing 2 | -------------------------------------------------------------------------------- /src/backend/utils/misc/.gitignore: -------------------------------------------------------------------------------- 1 | /guc-file.c 2 | -------------------------------------------------------------------------------- /src/backend/utils/sort/.gitignore: -------------------------------------------------------------------------------- 1 | /qsort_tuple.c 2 | -------------------------------------------------------------------------------- /src/bin/pg_controldata/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_controldata 2 | -------------------------------------------------------------------------------- /src/bin/pg_resetxlog/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_resetxlog 2 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-code100.stdout: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/thread-alloc.stderr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/thread-alloc.stdout: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/thread-prep.stderr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/timezone/.gitignore: -------------------------------------------------------------------------------- 1 | /zic 2 | /abbrevs.txt 3 | -------------------------------------------------------------------------------- /contrib/file_fdw/expected/.gitignore: -------------------------------------------------------------------------------- 1 | /file_fdw.out 2 | -------------------------------------------------------------------------------- /src/backend/.gitignore: -------------------------------------------------------------------------------- 1 | /postgres 2 | /postgres.def 3 | -------------------------------------------------------------------------------- /src/backend/snowball/.gitignore: -------------------------------------------------------------------------------- 1 | /snowball_create.sql 2 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/connect-test1.stdout: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/connect-test2.stdout: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/connect-test3.stdout: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/connect-test4.stdout: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/connect-test5.stdout: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/preproc-comment.stdout: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/preproc-whenever.stdout: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/thread-descriptor.stderr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/thread-descriptor.stdout: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/thread-prep_2.stdout: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/thread-thread.stderr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /contrib/pg_archivecleanup/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_archivecleanup 2 | -------------------------------------------------------------------------------- /src/bin/initgtm/.gitignore: -------------------------------------------------------------------------------- 1 | /pqsignal.c 2 | 3 | /initgtm 4 | -------------------------------------------------------------------------------- /src/bin/pgevent/MSG00001.bin: -------------------------------------------------------------------------------- 1 |  %1 2 | -------------------------------------------------------------------------------- /src/include/port/freebsd.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/freebsd.h */ 2 | -------------------------------------------------------------------------------- /src/include/port/netbsd.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/netbsd.h */ 2 | -------------------------------------------------------------------------------- /src/include/port/openbsd.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/openbsd.h */ 2 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/thread-thread_implicit.stderr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/test/regress/data/dept.data: -------------------------------------------------------------------------------- 1 | toy sharon 2 | shoe bob 3 | -------------------------------------------------------------------------------- /contrib/btree_gist/sql/init.sql: -------------------------------------------------------------------------------- 1 | CREATE EXTENSION btree_gist; 2 | -------------------------------------------------------------------------------- /contrib/pgcrypto/sql/pgp-zlib-DISABLED.sql: -------------------------------------------------------------------------------- 1 | -- zlib is disabled 2 | -------------------------------------------------------------------------------- /src/backend/bootstrap/.gitignore: -------------------------------------------------------------------------------- 1 | /bootparse.c 2 | /bootscanner.c 3 | -------------------------------------------------------------------------------- /src/backend/parser/.gitignore: -------------------------------------------------------------------------------- 1 | /gram.h 2 | /gram.c 3 | /scan.c 4 | -------------------------------------------------------------------------------- /src/include/port/win32/grp.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32/grp.h */ 2 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/compat_informix-charfuncs.stderr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/test/performance/sqls/connection: -------------------------------------------------------------------------------- 1 | `echo "" | time $FrontEnd`; 2 | -------------------------------------------------------------------------------- /src/test/regress/data/constro.data: -------------------------------------------------------------------------------- 1 | 4 !check failed 5 2 | 6 OK 4 3 | -------------------------------------------------------------------------------- /contrib/btree_gist/expected/init.out: -------------------------------------------------------------------------------- 1 | CREATE EXTENSION btree_gist; 2 | -------------------------------------------------------------------------------- /contrib/pgcrypto/expected/pgp-zlib-DISABLED.out: -------------------------------------------------------------------------------- 1 | -- zlib is disabled 2 | -------------------------------------------------------------------------------- /contrib/pgcrypto/sql/pgp-encrypt-DISABLED.sql: -------------------------------------------------------------------------------- 1 | -- no random source 2 | -------------------------------------------------------------------------------- /contrib/pgcrypto/sql/pgp-pubkey-DISABLED.sql: -------------------------------------------------------------------------------- 1 | -- no bignum support 2 | -------------------------------------------------------------------------------- /src/backend/replication/.gitignore: -------------------------------------------------------------------------------- 1 | /repl_gram.c 2 | /repl_scanner.c 3 | -------------------------------------------------------------------------------- /src/bin/pg_basebackup/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_basebackup 2 | /pg_receivexlog 3 | -------------------------------------------------------------------------------- /src/include/port/win32/dlfcn.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32/dlfcn.h */ 2 | -------------------------------------------------------------------------------- /src/include/port/win32/netdb.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32/netdb.h */ 2 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/include/.gitignore: -------------------------------------------------------------------------------- 1 | /ecpg_config.h 2 | /stamp-h 3 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/thread-thread_2.stdout: -------------------------------------------------------------------------------- 1 | Success. 2 | -------------------------------------------------------------------------------- /contrib/btree_gin/sql/install_btree_gin.sql: -------------------------------------------------------------------------------- 1 | CREATE EXTENSION btree_gin; 2 | -------------------------------------------------------------------------------- /contrib/pgcrypto/expected/pgp-encrypt-DISABLED.out: -------------------------------------------------------------------------------- 1 | -- no random source 2 | -------------------------------------------------------------------------------- /contrib/pgcrypto/expected/pgp-pubkey-DISABLED.out: -------------------------------------------------------------------------------- 1 | -- no bignum support 2 | -------------------------------------------------------------------------------- /src/.gitignore: -------------------------------------------------------------------------------- 1 | /Makefile.global 2 | /Makefile.port 3 | /Makefile.custom 4 | -------------------------------------------------------------------------------- /src/backend/utils/mb/conversion_procs/.gitignore: -------------------------------------------------------------------------------- 1 | /conversion_create.sql 2 | -------------------------------------------------------------------------------- /src/bin/initdb/.gitignore: -------------------------------------------------------------------------------- 1 | /encnames.c 2 | /localtime.c 3 | 4 | /initdb 5 | -------------------------------------------------------------------------------- /src/include/utils/.gitignore: -------------------------------------------------------------------------------- 1 | /fmgroids.h 2 | /probes.h 3 | /errcodes.h 4 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-define.stdout: -------------------------------------------------------------------------------- 1 | i: 1, s: 29-abcdef 2 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/thread-prep.stdout: -------------------------------------------------------------------------------- 1 | No threading enabled. 2 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/thread-thread_implicit_2.stdout: -------------------------------------------------------------------------------- 1 | Success. 2 | -------------------------------------------------------------------------------- /src/pl/plpgsql/src/.gitignore: -------------------------------------------------------------------------------- 1 | /pl_gram.c 2 | /pl_gram.h 3 | /plerrcodes.h 4 | -------------------------------------------------------------------------------- /src/test/regress/data/constrf.data: -------------------------------------------------------------------------------- 1 | 5 !check failed 6 2 | 7 check failed 6 3 | -------------------------------------------------------------------------------- /contrib/btree_gin/expected/install_btree_gin.out: -------------------------------------------------------------------------------- 1 | CREATE EXTENSION btree_gin; 2 | -------------------------------------------------------------------------------- /contrib/file_fdw/data/text.csv: -------------------------------------------------------------------------------- 1 | AAA,aaa 2 | XYZ,xyz 3 | NULL,NULL 4 | ABC,abc 5 | -------------------------------------------------------------------------------- /src/include/port/win32/pwd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/include/port/win32/pwd.h 3 | */ 4 | -------------------------------------------------------------------------------- /src/include/port/win32_msvc/unistd.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32_msvc/unistd.h */ 2 | -------------------------------------------------------------------------------- /src/include/port/win32_msvc/utime.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32_msvc/utime.h */ 2 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/thread-alloc_2.stdout: -------------------------------------------------------------------------------- 1 | No threading enabled. 2 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/thread-thread.stdout: -------------------------------------------------------------------------------- 1 | No threading enabled. 2 | -------------------------------------------------------------------------------- /src/port/.gitignore: -------------------------------------------------------------------------------- 1 | /libpgport.a 2 | /libpgport_srv.a 3 | /pg_config_paths.h 4 | -------------------------------------------------------------------------------- /._.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/._.DS_Store -------------------------------------------------------------------------------- /contrib/file_fdw/data/agg.bad: -------------------------------------------------------------------------------- 1 | 56;@7.8@ 2 | 100;@99.097@ 3 | 0;@aaa@ 4 | 42;@324.78@ 5 | -------------------------------------------------------------------------------- /contrib/file_fdw/data/agg.data: -------------------------------------------------------------------------------- 1 | 56 7.8 2 | 100 99.097 3 | 0 0.09561 4 | 42 324.78 5 | -------------------------------------------------------------------------------- /src/gtm/test2/status: -------------------------------------------------------------------------------- 1 | pid: 19879 2 | data: /tmp/pgxc/data/gtm_standby 3 | active: 1 4 | -------------------------------------------------------------------------------- /src/include/port/hpux.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/hpux.h */ 2 | 3 | /* nothing needed */ 4 | -------------------------------------------------------------------------------- /src/include/port/win32_msvc/sys/file.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32_msvc/sys/file.h */ 2 | -------------------------------------------------------------------------------- /src/include/port/win32_msvc/sys/time.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32_msvc/sys/time.h */ 2 | -------------------------------------------------------------------------------- /src/pl/tcl/modules/.gitignore: -------------------------------------------------------------------------------- 1 | /pltcl_delmod 2 | /pltcl_listmod 3 | /pltcl_loadmod 4 | -------------------------------------------------------------------------------- /src/template/netbsd: -------------------------------------------------------------------------------- 1 | # src/template/netbsd 2 | # tools/thread/thread_test must be run 3 | -------------------------------------------------------------------------------- /src/test/regress/data/agg.data: -------------------------------------------------------------------------------- 1 | 56 7.8 2 | 100 99.097 3 | 0 0.09561 4 | 42 324.78 5 | -------------------------------------------------------------------------------- /contrib/file_fdw/data/agg.csv: -------------------------------------------------------------------------------- 1 | 56;@7.8@ 2 | 100;@99.097@ 3 | 0;@0.09561@ 4 | 42;@324.78@ 5 | -------------------------------------------------------------------------------- /src/backend/utils/.gitignore: -------------------------------------------------------------------------------- 1 | /fmgrtab.c 2 | /fmgroids.h 3 | /probes.h 4 | /errcodes.h 5 | -------------------------------------------------------------------------------- /src/bin/pg_dump/.gitignore: -------------------------------------------------------------------------------- 1 | /kwlookup.c 2 | 3 | /pg_dump 4 | /pg_dumpall 5 | /pg_restore 6 | -------------------------------------------------------------------------------- /src/include/port/win32/sys/wait.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/include/port/win32/sys/wait.h 3 | */ 4 | -------------------------------------------------------------------------------- /src/include/port/win32_msvc/sys/param.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32_msvc/sys/param.h */ 2 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-func.stdout: -------------------------------------------------------------------------------- 1 | Trigger my_table_check_trigger fired. 2 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/thread-thread_implicit.stdout: -------------------------------------------------------------------------------- 1 | No threading enabled. 2 | -------------------------------------------------------------------------------- /src/pl/tcl/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/citext/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/dblink/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/dict_int/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/file_fdw/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/hstore/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/intarray/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/ltree/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/pg_trgm/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/pgcrypto/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/tsearch2/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/unaccent/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/xml2/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /doc-xc/TODO: -------------------------------------------------------------------------------- 1 | The TODO list is now maintained at: 2 | 3 | http://wiki.postgresql.org/wiki/Todo 4 | -------------------------------------------------------------------------------- /doc/TODO: -------------------------------------------------------------------------------- 1 | The TODO list is now maintained at: 2 | 3 | http://wiki.postgresql.org/wiki/Todo 4 | -------------------------------------------------------------------------------- /contrib/btree_gin/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/btree_gist/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/dict_xsyn/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/earthdistance/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/pgstattuple/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/postgres_fdw/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/tablefunc/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/test_parser/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/backend/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/backend/po/fr.po -------------------------------------------------------------------------------- /src/backend/port/.gitignore: -------------------------------------------------------------------------------- 1 | /dynloader.c 2 | /pg_latch.c 3 | /pg_sema.c 4 | /pg_shmem.c 5 | /tas.s 6 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/preproc-strings.stdout: -------------------------------------------------------------------------------- 1 | abcdef abcdef abcdef data data abc$def 2 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-parser.stdout: -------------------------------------------------------------------------------- 1 | item[0] = 1 2 | item[1] = 2 3 | item[2] = -1 4 | -------------------------------------------------------------------------------- /src/pl/tcl/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/pl/tcl/po/fr.po -------------------------------------------------------------------------------- /src/port/win32.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/port/win32.ico -------------------------------------------------------------------------------- /src/test/locale/koi8-r/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | 3 | test: 4 | ./runall 5 | 6 | clean: 7 | rm -f *.out 8 | -------------------------------------------------------------------------------- /contrib/start-scripts/osx/README: -------------------------------------------------------------------------------- 1 | To install execute the following: 2 | 3 | sudo /bin/sh ./install.sh 4 | -------------------------------------------------------------------------------- /doc-xc/README.mb.big5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/doc-xc/README.mb.big5 -------------------------------------------------------------------------------- /src/bin/pgevent/pgmsgevent.rc: -------------------------------------------------------------------------------- 1 | LANGUAGE 0x9,0x1 2 | 1 11 MSG00001.bin 3 | 4 | #include "win32ver.rc" 5 | -------------------------------------------------------------------------------- /src/bin/psql/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/psql/po/fr.po -------------------------------------------------------------------------------- /src/bin/psql/po/sv.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/psql/po/sv.po -------------------------------------------------------------------------------- /src/interfaces/ecpg/compatlib/.gitignore: -------------------------------------------------------------------------------- 1 | /compatlib.def 2 | /blibecpg_compatdll.def 3 | /exports.list 4 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/compat_informix-test_informix2.stdout: -------------------------------------------------------------------------------- 1 | Read in customer 1 2 | All OK! 3 | -------------------------------------------------------------------------------- /src/pl/plperl/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/pl/plperl/po/fr.po -------------------------------------------------------------------------------- /src/test/performance/sqls/orbsimple: -------------------------------------------------------------------------------- 1 | `echo "SELECT * FROM simple ORDER BY justint;" | time $FrontEnd`; 2 | -------------------------------------------------------------------------------- /src/bin/initdb/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/initdb/po/fr.po -------------------------------------------------------------------------------- /src/bin/initdb/po/ko.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/initdb/po/ko.po -------------------------------------------------------------------------------- /src/bin/initdb/po/sv.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/initdb/po/sv.po -------------------------------------------------------------------------------- /src/bin/pg_ctl/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_ctl/po/fr.po -------------------------------------------------------------------------------- /src/bin/pg_ctl/po/sv.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_ctl/po/sv.po -------------------------------------------------------------------------------- /src/bin/pg_dump/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_dump/po/fr.po -------------------------------------------------------------------------------- /src/bin/pg_dump/po/ko.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_dump/po/ko.po -------------------------------------------------------------------------------- /src/bin/pg_dump/po/sv.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_dump/po/sv.po -------------------------------------------------------------------------------- /src/bin/scripts/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/scripts/po/fr.po -------------------------------------------------------------------------------- /src/bin/scripts/po/ko.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/scripts/po/ko.po -------------------------------------------------------------------------------- /src/bin/scripts/po/sv.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/scripts/po/sv.po -------------------------------------------------------------------------------- /src/include/port/osf.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/osf.h */ 2 | 3 | #define NOFIXADE 4 | #define DISABLE_XOPEN_NLS 5 | -------------------------------------------------------------------------------- /src/include/port/win32/arpa/inet.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32/arpa/inet.h */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /src/pl/plpython/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/pl/plpython/po/fr.po -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | 3 | test: 4 | ./runall 5 | 6 | clean: 7 | rm -f *.out 8 | -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | 3 | test: 4 | ./runall 5 | 6 | clean: 7 | rm -f *.out 8 | -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | 3 | test: 4 | ./runall 5 | 6 | clean: 7 | rm -f *.out 8 | -------------------------------------------------------------------------------- /src/test/mb/sql/big5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/mb/sql/big5.sql -------------------------------------------------------------------------------- /src/test/mb/sql/sjis.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/mb/sql/sjis.sql -------------------------------------------------------------------------------- /src/test/performance/sqls/vacuum: -------------------------------------------------------------------------------- 1 | if ( $TestDBMS =~ /^pgsql/ ) 2 | { 3 | `time $FrontEnd -c 'vacuum'`; 4 | } 5 | -------------------------------------------------------------------------------- /src/backend/catalog/.gitignore: -------------------------------------------------------------------------------- 1 | /postgres.bki 2 | /postgres.description 3 | /postgres.shdescription 4 | /schemapg.h 5 | -------------------------------------------------------------------------------- /src/bin/pg_config/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_config/po/fr.po -------------------------------------------------------------------------------- /src/bin/pg_config/po/ko.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_config/po/ko.po -------------------------------------------------------------------------------- /src/bin/pg_config/po/nb.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_config/po/nb.po -------------------------------------------------------------------------------- /src/bin/pg_config/po/sv.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_config/po/sv.po -------------------------------------------------------------------------------- /src/bin/pgevent/pgmsgevent.mc: -------------------------------------------------------------------------------- 1 | MessageId=0 2 | SymbolicName=PGWIN32_EVENTLOG_MSG 3 | Language=English 4 | %1 5 | . 6 | -------------------------------------------------------------------------------- /src/include/port/win32/netinet/in.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32/netinet/in.h */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-insupd.stdout: -------------------------------------------------------------------------------- 1 | changes 2 | 2 3 4 3 3 | test 4 | a b 5 | 2 1 6 | 4 2 7 | 5 5 8 | -------------------------------------------------------------------------------- /src/pl/plpgsql/src/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/pl/plpgsql/src/po/fr.po -------------------------------------------------------------------------------- /src/test/mb/sql/euc_cn.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/mb/sql/euc_cn.sql -------------------------------------------------------------------------------- /src/test/mb/sql/euc_jp.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/mb/sql/euc_jp.sql -------------------------------------------------------------------------------- /src/test/mb/sql/euc_kr.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/mb/sql/euc_kr.sql -------------------------------------------------------------------------------- /src/test/mb/sql/euc_tw.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/mb/sql/euc_tw.sql -------------------------------------------------------------------------------- /src/bin/pg_basebackup/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_basebackup/po/fr.po -------------------------------------------------------------------------------- /src/bin/pg_resetxlog/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_resetxlog/po/fr.po -------------------------------------------------------------------------------- /src/bin/pg_resetxlog/po/ko.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_resetxlog/po/ko.po -------------------------------------------------------------------------------- /src/bin/pg_resetxlog/po/sv.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_resetxlog/po/sv.po -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_regress 2 | # Exclude subdirectories 3 | /log/ 4 | /results/ 5 | /tmp_check/ 6 | -------------------------------------------------------------------------------- /src/interfaces/libpq/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/interfaces/libpq/po/fr.po -------------------------------------------------------------------------------- /src/interfaces/libpq/po/ko.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/interfaces/libpq/po/ko.po -------------------------------------------------------------------------------- /src/interfaces/libpq/po/sv.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/interfaces/libpq/po/sv.po -------------------------------------------------------------------------------- /src/test/mb/expected/big5.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/mb/expected/big5.out -------------------------------------------------------------------------------- /src/test/mb/expected/sjis.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/mb/expected/sjis.out -------------------------------------------------------------------------------- /src/test/regress/data/emp.data: -------------------------------------------------------------------------------- 1 | sharon 25 (15,12) 1000 sam 2 | sam 30 (10,5) 2000 bill 3 | bill 20 (11,10) 1000 sharon 4 | -------------------------------------------------------------------------------- /contrib/contrib-global.mk: -------------------------------------------------------------------------------- 1 | # contrib/contrib-global.mk 2 | 3 | NO_PGXS = 1 4 | include $(top_srcdir)/src/makefiles/pgxs.mk 5 | -------------------------------------------------------------------------------- /contrib/cube/.gitignore: -------------------------------------------------------------------------------- 1 | /cubeparse.c 2 | /cubescan.c 3 | # Generated subdirectories 4 | /log/ 5 | /results/ 6 | /tmp_check/ 7 | -------------------------------------------------------------------------------- /contrib/seg/.gitignore: -------------------------------------------------------------------------------- 1 | /segparse.c 2 | /segscan.c 3 | # Generated subdirectories 4 | /log/ 5 | /results/ 6 | /tmp_check/ 7 | -------------------------------------------------------------------------------- /contrib/tablefunc/data/connectby_int.data: -------------------------------------------------------------------------------- 1 | 1 \N 2 | 2 1 3 | 3 1 4 | 4 2 5 | 5 2 6 | 6 4 7 | 7 3 8 | 8 6 9 | 9 5 10 | -------------------------------------------------------------------------------- /src/bin/pg_controldata/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_controldata/po/fr.po -------------------------------------------------------------------------------- /src/bin/pg_controldata/po/ko.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_controldata/po/ko.po -------------------------------------------------------------------------------- /src/bin/pg_controldata/po/sv.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/bin/pg_controldata/po/sv.po -------------------------------------------------------------------------------- /src/include/.gitignore: -------------------------------------------------------------------------------- 1 | /stamp-h 2 | /stamp-ext-h 3 | /pg_config.h 4 | /pg_config_ext.h 5 | /pg_config_os.h 6 | /dynloader.h 7 | -------------------------------------------------------------------------------- /src/include/port/aix.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/include/port/aix.h 3 | */ 4 | #define CLASS_CONFLICT 5 | #define DISABLE_XOPEN_NLS 6 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/pgtypeslib/.gitignore: -------------------------------------------------------------------------------- 1 | /pgtypeslib.def 2 | /blibpgtypesdll.def 3 | /exports.list 4 | 5 | /pgstrcasecmp.c 6 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/preproc/.gitignore: -------------------------------------------------------------------------------- 1 | /preproc.y 2 | /preproc.c 3 | /preproc.h 4 | /pgc.c 5 | 6 | /ecpg 7 | /kwlookup.c 8 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-copystdout.stdout: -------------------------------------------------------------------------------- 1 | 5,abc 2 | 6,def 3 | 7,ghi 4 | copy to STDOUT : sqlca.sqlcode = 0 5 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-fetch.stdout: -------------------------------------------------------------------------------- 1 | 1: text1 2 | 2: text2 3 | 3: text3 4 | 4: text4 5 | 4: text4 6 | 1: text1 7 | -------------------------------------------------------------------------------- /src/template/osf: -------------------------------------------------------------------------------- 1 | # src/template/osf 2 | 3 | if test "$GCC" != yes ; then 4 | CC="$CC -std" 5 | CFLAGS="-O -ieee" 6 | fi 7 | -------------------------------------------------------------------------------- /src/test/mb/expected/euc_cn.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/mb/expected/euc_cn.out -------------------------------------------------------------------------------- /src/test/mb/expected/euc_jp.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/mb/expected/euc_jp.out -------------------------------------------------------------------------------- /src/test/mb/expected/euc_kr.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/mb/expected/euc_kr.out -------------------------------------------------------------------------------- /src/test/mb/expected/euc_tw.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/mb/expected/euc_tw.out -------------------------------------------------------------------------------- /src/timezone/tznames/Europe.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/timezone/tznames/Europe.txt -------------------------------------------------------------------------------- /contrib/unaccent/sql/unaccent.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/contrib/unaccent/sql/unaccent.sql -------------------------------------------------------------------------------- /src/backend/tsearch/synonym_sample.syn: -------------------------------------------------------------------------------- 1 | postgres pgsql 2 | postgresql pgsql 3 | postgre pgsql 4 | gogle googl 5 | indices index* 6 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/preproc/strings.h: -------------------------------------------------------------------------------- 1 | char *s1, 2 | *s2, 3 | *s3, 4 | *s4, 5 | *s5, 6 | *s6; 7 | -------------------------------------------------------------------------------- /src/test/mb/sql/mule_internal.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/mb/sql/mule_internal.sql -------------------------------------------------------------------------------- /src/test/performance/sqls/drpsimple: -------------------------------------------------------------------------------- 1 | if ( $TestDBMS =~ /^pgsql/ ) 2 | { 3 | `echo "DROP TABLE simple;" | time $FrontEnd`; 4 | } 5 | -------------------------------------------------------------------------------- /src/test/regress/data/student.data: -------------------------------------------------------------------------------- 1 | fred 28 (3.1,-1.5) 3.70000000000000020e+00 2 | larry 60 (21.8,4.9) 3.10000000000000010e+00 3 | -------------------------------------------------------------------------------- /src/bin/psql/.gitignore: -------------------------------------------------------------------------------- 1 | /psqlscan.c 2 | /sql_help.h 3 | /sql_help.c 4 | /dumputils.c 5 | /keywords.c 6 | /kwlookup.c 7 | 8 | /psql 9 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/ecpglib/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/interfaces/ecpg/ecpglib/po/fr.po -------------------------------------------------------------------------------- /src/interfaces/ecpg/preproc/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/interfaces/ecpg/preproc/po/fr.po -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.stderr: -------------------------------------------------------------------------------- 1 | [NO_PID]: ECPGdebug: set to 1 2 | [NO_PID]: sqlca: code: 0, state: 00000 3 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.stderr: -------------------------------------------------------------------------------- 1 | [NO_PID]: ECPGdebug: set to 1 2 | [NO_PID]: sqlca: code: 0, state: 00000 3 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-indicators.stdout: -------------------------------------------------------------------------------- 1 | intvar: 0, nullind: -1 2 | intvar: 5, nullind: 0 3 | intvar: 5, nullind: -1 4 | -------------------------------------------------------------------------------- /contrib/unaccent/expected/unaccent.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/contrib/unaccent/expected/unaccent.out -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/compat_informix-dec_test.stderr: -------------------------------------------------------------------------------- 1 | [NO_PID]: ECPGdebug: set to 1 2 | [NO_PID]: sqlca: code: 0, state: 00000 3 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.stderr: -------------------------------------------------------------------------------- 1 | [NO_PID]: ECPGdebug: set to 1 2 | [NO_PID]: sqlca: code: 0, state: 00000 3 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.stderr: -------------------------------------------------------------------------------- 1 | [NO_PID]: ECPGdebug: set to 1 2 | [NO_PID]: sqlca: code: 0, state: 00000 3 | -------------------------------------------------------------------------------- /src/test/locale/koi8-r/test-koi8-sort.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-r/test-koi8-sort.in -------------------------------------------------------------------------------- /src/test/locale/koi8-r/test-koi8.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-r/test-koi8.sql.in -------------------------------------------------------------------------------- /src/test/mb/expected/mule_internal.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/mb/expected/mule_internal.out -------------------------------------------------------------------------------- /src/test/regress/.gitignore: -------------------------------------------------------------------------------- 1 | # Local binaries 2 | /pg_regress 3 | 4 | # Generated subdirectories 5 | /tmp_check/ 6 | /results/ 7 | /log/ 8 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/preproc-define.stdout: -------------------------------------------------------------------------------- 1 | name[0]=false amount[0]=1 letter[0]=f 2 | name[1]=true amount[1]=2 letter[1]=t 3 | -------------------------------------------------------------------------------- /src/interfaces/libpq/README: -------------------------------------------------------------------------------- 1 | src/interfaces/libpq/README 2 | 3 | This directory contains the C version of Libpq, the POSTGRES frontend library. 4 | -------------------------------------------------------------------------------- /src/template/freebsd: -------------------------------------------------------------------------------- 1 | # src/template/freebsd 2 | 3 | case $host_cpu in 4 | alpha*) CFLAGS="-O";; # alpha has problems with -O2 5 | esac 6 | -------------------------------------------------------------------------------- /src/test/performance/sqls/crtsimple: -------------------------------------------------------------------------------- 1 | if ( $TestDBMS =~ /^pgsql/ ) 2 | { 3 | `echo "CREATE TABLE simple (justint int);" | time $FrontEnd`; 4 | } 5 | -------------------------------------------------------------------------------- /src/backend/port/dynloader/cygwin.c: -------------------------------------------------------------------------------- 1 | /* src/backend/port/dynloader/cygwin.c */ 2 | 3 | /* Dummy file used for nothing at this point; see cygwin.h */ 4 | -------------------------------------------------------------------------------- /src/backend/tsearch/ispell_sample.dict: -------------------------------------------------------------------------------- 1 | book/GJUS 2 | booking/SB 3 | footballklubber 4 | foot/ZS 5 | football/Z 6 | ball/SZ\ 7 | klubber/Z 8 | sky/A 9 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/preproc-type.stdout: -------------------------------------------------------------------------------- 1 | id=1 name='user name ' accs=320 str='first str ' ptr='second str' vc='third str ' 2 | -------------------------------------------------------------------------------- /contrib/pg_upgrade/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_upgrade 2 | # Generated by test suite 3 | analyze_new_cluster.sh 4 | delete_old_cluster.sh 5 | /log/ 6 | /tmp_check/ 7 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/test-de-sort.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/de_DE.ISO8859-1/test-de-sort.in -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/test-de.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/de_DE.ISO8859-1/test-de.sql.in -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/test-gr-sort.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/gr_GR.ISO8859-7/test-gr-sort.in -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/test-gr.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/gr_GR.ISO8859-7/test-gr.sql.in -------------------------------------------------------------------------------- /src/test/locale/koi8-r/expected/koi8-ctype.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-r/expected/koi8-ctype.out -------------------------------------------------------------------------------- /src/test/locale/koi8-r/test-koi8-select.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-r/test-koi8-select.sql.in -------------------------------------------------------------------------------- /src/interfaces/ecpg/ecpglib/.gitignore: -------------------------------------------------------------------------------- 1 | /ecpglib.def 2 | /blibecpgdll.def 3 | /exports.list 4 | 5 | /path.c 6 | /pgstrcasecmp.c 7 | /strlcpy.c 8 | /thread.c 9 | -------------------------------------------------------------------------------- /src/pl/plpython/.gitignore: -------------------------------------------------------------------------------- 1 | /spiexceptions.h 2 | # Generated subdirectories 3 | /expected/python3/ 4 | /log/ 5 | /results/ 6 | /sql/python3/ 7 | /tmp_check/ 8 | -------------------------------------------------------------------------------- /src/test/locale/koi8-r/expected/test-koi8-sort.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-r/expected/test-koi8-sort.out -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/test-koi8-sort.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-to-win1251/test-koi8-sort.in -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/test-koi8.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-to-win1251/test-koi8.sql.in -------------------------------------------------------------------------------- /src/test/performance/sqls/crtsimpleidx: -------------------------------------------------------------------------------- 1 | if ( $TestDBMS =~ /^pgsql/ ) 2 | { 3 | `echo "CREATE INDEX simpleidx ON simple (justint);" | time $FrontEnd`; 4 | } 5 | -------------------------------------------------------------------------------- /contrib/intagg/intagg.control: -------------------------------------------------------------------------------- 1 | # intagg extension 2 | comment = 'integer aggregator and enumerator (obsolete)' 3 | default_version = '1.0' 4 | relocatable = true 5 | -------------------------------------------------------------------------------- /contrib/lo/lo.control: -------------------------------------------------------------------------------- 1 | # lo extension 2 | comment = 'Large Object maintenance' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/lo' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /src/backend/port/dynloader/aix.c: -------------------------------------------------------------------------------- 1 | /* 2 | * src/backend/port/dynloader/aix.c 3 | * 4 | * Dummy file used for nothing at this point 5 | * 6 | * see aix.h 7 | */ 8 | -------------------------------------------------------------------------------- /src/backend/port/dynloader/irix.c: -------------------------------------------------------------------------------- 1 | /* src/backend/port/dynloader/irix.c */ 2 | 3 | /* Dummy file used for nothing at this point 4 | * 5 | * see irix.h 6 | */ 7 | -------------------------------------------------------------------------------- /src/backend/port/dynloader/osf.c: -------------------------------------------------------------------------------- 1 | /* 2 | * src/backend/port/dynloader/osf.c 3 | * 4 | * Dummy file used for nothing at this point 5 | * 6 | * see osf.h 7 | */ 8 | -------------------------------------------------------------------------------- /src/backend/port/dynloader/sco.c: -------------------------------------------------------------------------------- 1 | /* 2 | * src/backend/port/dynloader/sco.c 3 | * 4 | * Dummy file used for nothing at this point 5 | * 6 | * see sco.h 7 | */ 8 | -------------------------------------------------------------------------------- /src/backend/utils/mb/conversion_procs/README.euc_jp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/backend/utils/mb/conversion_procs/README.euc_jp -------------------------------------------------------------------------------- /src/include/port/sco.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/include/port/sco.h 3 | * 4 | * see src/backend/libpq/pqcomm.c */ 5 | #define SCO_ACCEPT_BUG 6 | 7 | #define USE_UNIVEL_CC 8 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-desc.stdout: -------------------------------------------------------------------------------- 1 | output = 1 2 | val1=1 (ind1: 0) val2=one (ind2: 0) 3 | val1=2 val2=null 4 | val1=3 val2=this warn=W truncate=19 5 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/test-de-upper.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/de_DE.ISO8859-1/test-de-upper.sql.in -------------------------------------------------------------------------------- /contrib/sepgsql/.gitignore: -------------------------------------------------------------------------------- 1 | /sepgsql.sql 2 | /sepgsql-regtest.fc 3 | /sepgsql-regtest.if 4 | /sepgsql-regtest.pp 5 | /tmp 6 | # Generated subdirectories 7 | /results/ 8 | -------------------------------------------------------------------------------- /src/backend/utils/mb/conversion_procs/regress_epilogue: -------------------------------------------------------------------------------- 1 | -- 2 | -- return to the super user 3 | -- 4 | RESET SESSION AUTHORIZATION; 5 | DROP USER conversion_test_user; 6 | -------------------------------------------------------------------------------- /src/bin/pgevent/pgevent.def: -------------------------------------------------------------------------------- 1 | ; dlltool --output-def pgevent.def pgevent.o pgmsgevent.o 2 | EXPORTS 3 | DllUnregisterServer ; 4 | DllRegisterServer ; 5 | DllInstall ; 6 | -------------------------------------------------------------------------------- /src/pl/plperl/.gitignore: -------------------------------------------------------------------------------- 1 | /SPI.c 2 | /Util.c 3 | /perlchunks.h 4 | /plperl_opmask.h 5 | 6 | # Generated subdirectories 7 | /log/ 8 | /results/ 9 | /tmp_check/ 10 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/de-ctype.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/de_DE.ISO8859-1/expected/de-ctype.out -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/test-de-select.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/de_DE.ISO8859-1/test-de-select.sql.in -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/expected/gr-ctype.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/gr_GR.ISO8859-7/expected/gr-ctype.out -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/test-gr-select.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/gr_GR.ISO8859-7/test-gr-select.sql.in -------------------------------------------------------------------------------- /src/test/locale/koi8-r/expected/test-koi8-char.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-r/expected/test-koi8-char.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-r/expected/test-koi8-text.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-r/expected/test-koi8-text.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/test-koi8-select.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-to-win1251/test-koi8-select.sql.in -------------------------------------------------------------------------------- /contrib/tcn/tcn.control: -------------------------------------------------------------------------------- 1 | # tcn extension 2 | comment = 'Triggered change notifications' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/tcn' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /doc-xc/src/sgml/pgonly.sgmlin: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | The following description applies only to PostgreSQL 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/connect/.gitignore: -------------------------------------------------------------------------------- 1 | /test1 2 | /test1.c 3 | /test2 4 | /test2.c 5 | /test3 6 | /test3.c 7 | /test4 8 | /test4.c 9 | /test5 10 | /test5.c 11 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/test-de-sort.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-sort.out -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/expected/test-gr-sort.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/gr_GR.ISO8859-7/expected/test-gr-sort.out -------------------------------------------------------------------------------- /src/test/locale/koi8-r/expected/test-koi8-select.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-r/expected/test-koi8-select.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-r/expected/test-koi8-varchar.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-r/expected/test-koi8-varchar.sql.out -------------------------------------------------------------------------------- /src/backend/port/dynloader/solaris.c: -------------------------------------------------------------------------------- 1 | /* 2 | * src/backend/port/dynloader/solaris.c 3 | * 4 | * Dummy file used for nothing at this point 5 | * 6 | * see solaris.h 7 | */ 8 | -------------------------------------------------------------------------------- /src/backend/port/dynloader/unixware.c: -------------------------------------------------------------------------------- 1 | /* 2 | * src/backend/port/dynloader/unixware.c 3 | * 4 | * Dummy file used for nothing at this point 5 | * 6 | * see unixware.h 7 | */ 8 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-dynalloc2.stdout: -------------------------------------------------------------------------------- 1 | Result (2 columns): 2 | 1, 'one', 3 | 2, 'two', 4 | NULL, 'three', 5 | 4, 'four', 6 | 5, NULL, 7 | NULL, NULL, 8 | 9 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/README: -------------------------------------------------------------------------------- 1 | src/test/locale/de_DE.ISO8859-1/README 2 | 3 | de_DE.ISO-8859-1 (German) locale test. 4 | Created by Armin Diehl 5 | -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/expected/test-koi8-sort.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-to-win1251/expected/test-koi8-sort.out -------------------------------------------------------------------------------- /contrib/cube/cube.control: -------------------------------------------------------------------------------- 1 | # cube extension 2 | comment = 'data type for multidimensional cubes' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/cube' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /src/template/win32: -------------------------------------------------------------------------------- 1 | # --allow-multiple-definition is required to link pg_dump because it finds 2 | # pg_toupper() in both libpq and pgport 3 | LDFLAGS="-Wl,--allow-multiple-definition" 4 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/test-de-char.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-char.sql.out -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/test-de-text.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-text.sql.out -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/expected/test-gr-char.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/gr_GR.ISO8859-7/expected/test-gr-char.sql.out -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/expected/test-gr-text.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/gr_GR.ISO8859-7/expected/test-gr-text.sql.out -------------------------------------------------------------------------------- /contrib/pgcrypto/pgcrypto.control: -------------------------------------------------------------------------------- 1 | # pgcrypto extension 2 | comment = 'cryptographic functions' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/pgcrypto' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /doc-xc/KNOWN_BUGS: -------------------------------------------------------------------------------- 1 | PostgreSQL has a single combined bugs, missing features, and todo list 2 | simply called TODO, in this directory. A current copy is always 3 | available on our web site. 4 | -------------------------------------------------------------------------------- /doc/KNOWN_BUGS: -------------------------------------------------------------------------------- 1 | PostgreSQL has a single combined bugs, missing features, and todo list 2 | simply called TODO, in this directory. A current copy is always 3 | available on our web site. 4 | -------------------------------------------------------------------------------- /src/gtm/test2/regress2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | make 4 | 5 | ./test_startup 6 | ./test_node5 7 | ./test_txn4 8 | ./test_seq4 9 | 10 | ./test_standby 11 | 12 | ./test_txn5 13 | 14 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-binary.stdout: -------------------------------------------------------------------------------- 1 | name=first user , accs=320 byte=\001m\000\212 2 | name=first user , byte=(1)(155)(0)(212) 3 | pointer=(1)(155)(0)(212) 4 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/test-de-select.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-select.sql.out -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/test-de-varchar.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-varchar.sql.out -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/expected/test-gr-select.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/gr_GR.ISO8859-7/expected/test-gr-select.sql.out -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/expected/test-gr-varchar.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/gr_GR.ISO8859-7/expected/test-gr-varchar.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/expected/test-koi8-char.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-to-win1251/expected/test-koi8-char.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/expected/test-koi8-select.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-to-win1251/expected/test-koi8-select.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/expected/test-koi8-text.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-to-win1251/expected/test-koi8-text.sql.out -------------------------------------------------------------------------------- /contrib/dict_xsyn/xsyn_sample.rules: -------------------------------------------------------------------------------- 1 | # Sample rules file for eXtended Synonym (xsyn) dictionary 2 | # format is as follows: 3 | # 4 | # word synonym1 synonym2 ... 5 | # 6 | supernova sn sne 1987a 7 | -------------------------------------------------------------------------------- /contrib/spi/autoinc.control: -------------------------------------------------------------------------------- 1 | # autoinc extension 2 | comment = 'functions for autoincrementing fields' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/autoinc' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/sslinfo/sslinfo.control: -------------------------------------------------------------------------------- 1 | # sslinfo extension 2 | comment = 'information about SSL certificates' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/sslinfo' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/tablefunc/data/connectby_text.data: -------------------------------------------------------------------------------- 1 | row1 \N 0 2 | row2 row1 0 3 | row3 row1 0 4 | row4 row2 1 5 | row5 row2 0 6 | row6 row4 0 7 | row7 row3 0 8 | row8 row6 0 9 | row9 row5 0 10 | -------------------------------------------------------------------------------- /doc-xc/MISSING_FEATURES: -------------------------------------------------------------------------------- 1 | PostgreSQL has a single combined bugs, missing features, and todo list 2 | simply called TODO, in this directory. A current copy is always 3 | available on our web site. 4 | -------------------------------------------------------------------------------- /doc/MISSING_FEATURES: -------------------------------------------------------------------------------- 1 | PostgreSQL has a single combined bugs, missing features, and todo list 2 | simply called TODO, in this directory. A current copy is always 3 | available on our web site. 4 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-quote.stdout: -------------------------------------------------------------------------------- 1 | Standard conforming strings: off 2 | Standard conforming strings: on 3 | value: 1 a\\b 4 | value: 1 a\\b 5 | value: 2 a\\\\b 6 | value: 2 a\\b 7 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/test-de-upper-char.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-upper-char.sql.out -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/test-de-upper-text.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-upper-text.sql.out -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/README: -------------------------------------------------------------------------------- 1 | src/test/locale/gr_GR.ISO8859-7/README 2 | 3 | gr_GR.ISO8859-7 (Greek) locale test. 4 | Created by Angelos Karageorgiou 5 | -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/expected/test-koi8-varchar.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/koi8-to-win1251/expected/test-koi8-varchar.sql.out -------------------------------------------------------------------------------- /contrib/chkpass/chkpass.control: -------------------------------------------------------------------------------- 1 | # chkpass extension 2 | comment = 'data type for auto-encrypted passwords' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/chkpass' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/isn/isn.control: -------------------------------------------------------------------------------- 1 | # isn extension 2 | comment = 'data types for international product numbering standards' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/isn' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/ltree/ltree.control: -------------------------------------------------------------------------------- 1 | # ltree extension 2 | comment = 'data type for hierarchical tree-like structures' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/ltree' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /src/DEVELOPERS: -------------------------------------------------------------------------------- 1 | Read the development information in the wiki at 2 | . All the 3 | developer tools are located in the src/tools/ directory. 4 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/thread/.gitignore: -------------------------------------------------------------------------------- 1 | /alloc 2 | /alloc.c 3 | /descriptor 4 | /descriptor.c 5 | /prep 6 | /prep.c 7 | /thread 8 | /thread.c 9 | /thread_implicit 10 | /thread_implicit.c 11 | -------------------------------------------------------------------------------- /src/test/examples/testlibpq2.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE TBL1 (i int4); 2 | 3 | CREATE TABLE TBL2 (i int4); 4 | 5 | CREATE RULE r1 AS ON INSERT TO TBL1 DO 6 | (INSERT INTO TBL2 VALUES (new.i); NOTIFY TBL2); 7 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/test-de-upper-varchar.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postgres-x2/postgres-xc-old/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-upper-varchar.sql.out -------------------------------------------------------------------------------- /src/tools/FAQ2txt: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # src/tools/FAQ2txt: 4 | 5 | # Converts doc/src/FAQ/FAQ.html to text file doc/FAQ 6 | 7 | lynx -force_html -dont_wrap_pre -dump -hiddenlinks=ignore -nolist "$@" 8 | -------------------------------------------------------------------------------- /contrib/citext/citext.control: -------------------------------------------------------------------------------- 1 | # citext extension 2 | comment = 'data type for case-insensitive character strings' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/citext' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/file_fdw/file_fdw.control: -------------------------------------------------------------------------------- 1 | # file_fdw extension 2 | comment = 'foreign-data wrapper for flat file access' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/file_fdw' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/hstore/hstore.control: -------------------------------------------------------------------------------- 1 | # hstore extension 2 | comment = 'data type for storing sets of (key, value) pairs' 3 | default_version = '1.1' 4 | module_pathname = '$libdir/hstore' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/pgstattuple/pgstattuple.control: -------------------------------------------------------------------------------- 1 | # pgstattuple extension 2 | comment = 'show tuple-level statistics' 3 | default_version = '1.1' 4 | module_pathname = '$libdir/pgstattuple' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/spi/timetravel.control: -------------------------------------------------------------------------------- 1 | # timetravel extension 2 | comment = 'functions for implementing time travel' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/timetravel' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /doc-xc/src/sgml/xconly.sgmlin: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | XCONLY: The following description applies only to Postgres-XC. 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/pgtypeslib/.gitignore: -------------------------------------------------------------------------------- 1 | /dt_test 2 | /dt_test.c 3 | /dt_test2 4 | /dt_test2.c 5 | /nan_test 6 | /nan_test.c 7 | /num_test 8 | /num_test.c 9 | /num_test2 10 | /num_test2.c 11 | -------------------------------------------------------------------------------- /src/test/regress/data/stud_emp.data: -------------------------------------------------------------------------------- 1 | jeff 23 (8,7.7) 600 sharon 3.50000000000000000e+00 \N 2 | cim 30 (10.5,4.7) 400 \N 3.39999999999999990e+00 \N 3 | linda 19 (0.9,6.1) 100 \N 2.89999999999999990e+00 \N 4 | -------------------------------------------------------------------------------- /src/tools/make_diff/rmorig: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # src/tools/make_diff/rmorig 4 | 5 | if [ "$#" -eq 0 ] 6 | then APATH="." 7 | else APATH="$1" 8 | fi 9 | find $APATH -name '*.orig' -exec rm {} \; 10 | -------------------------------------------------------------------------------- /contrib/dict_int/dict_int.control: -------------------------------------------------------------------------------- 1 | # dict_int extension 2 | comment = 'text search dictionary template for integers' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/dict_int' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/pgrowlocks/pgrowlocks.control: -------------------------------------------------------------------------------- 1 | # pgrowlocks extension 2 | comment = 'show row-level locking information' 3 | default_version = '1.1' 4 | module_pathname = '$libdir/pgrowlocks' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/unaccent/unaccent.control: -------------------------------------------------------------------------------- 1 | # unaccent extension 2 | comment = 'text search dictionary that removes accents' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/unaccent' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /doc-xc/src/sgml/not-supported.sgmlin: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | This feature is not supported in the current release of Postgres-XC. 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /contrib/btree_gin/btree_gin.control: -------------------------------------------------------------------------------- 1 | # btree_gin extension 2 | comment = 'support for indexing common datatypes in GIN' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/btree_gin' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/seg/seg.control: -------------------------------------------------------------------------------- 1 | # seg extension 2 | comment = 'data type for representing line segments or floating-point intervals' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/seg' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/spi/moddatetime.control: -------------------------------------------------------------------------------- 1 | # moddatetime extension 2 | comment = 'functions for tracking last modification time' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/moddatetime' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/spi/refint.control: -------------------------------------------------------------------------------- 1 | # refint extension 2 | comment = 'functions for implementing referential integrity (obsolete)' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/refint' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/uuid-ossp/uuid-ossp.control: -------------------------------------------------------------------------------- 1 | # uuid-ossp extension 2 | comment = 'generate universally unique identifiers (UUIDs)' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/uuid-ossp' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /src/bin/pg_resetxlog/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_resetxlog/nls.mk 2 | CATALOG_NAME = pg_resetxlog 3 | AVAIL_LANGUAGES = cs de es fr it ja ko pl pt_BR ro ru sv ta tr zh_CN zh_TW 4 | GETTEXT_FILES = pg_resetxlog.c 5 | -------------------------------------------------------------------------------- /src/gtm/test2/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . ./regress2.sh 2>&1 | tee regress.log 4 | 5 | echo "" 6 | echo "=========== SUMMARY ============" 7 | date 8 | echo -n "Assert: " 9 | grep -c ASSERT regress.log 10 | -------------------------------------------------------------------------------- /src/include/port/darwin.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/darwin.h */ 2 | 3 | #define __darwin__ 1 4 | 5 | #if HAVE_DECL_F_FULLFSYNC /* not present before OS X 10.3 */ 6 | #define HAVE_FSYNC_WRITETHROUGH 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /contrib/btree_gist/btree_gist.control: -------------------------------------------------------------------------------- 1 | # btree_gist extension 2 | comment = 'support for indexing common datatypes in GiST' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/btree_gist' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/dblink/dblink.control: -------------------------------------------------------------------------------- 1 | # dblink extension 2 | comment = 'connect to other PostgreSQL databases from within a database' 3 | default_version = '1.1' 4 | module_pathname = '$libdir/dblink' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/pg_buffercache/pg_buffercache.control: -------------------------------------------------------------------------------- 1 | # pg_buffercache extension 2 | comment = 'examine the shared buffer cache' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/pg_buffercache' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /src/bin/pg_controldata/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_controldata/nls.mk 2 | CATALOG_NAME = pg_controldata 3 | AVAIL_LANGUAGES = cs de es fr it ja ko pl pt_BR ro ru sv ta tr zh_CN zh_TW 4 | GETTEXT_FILES = pg_controldata.c 5 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stdout: -------------------------------------------------------------------------------- 1 | from int = 1407.0 2 | add = 2379.7 3 | sub = 2369.7 4 | mul = 13306998429.873000000 5 | div = 1330699.84298730000 1.330700e+06 6 | to long(0) = 20000000 14 7 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/preproc-describe.stdout: -------------------------------------------------------------------------------- 1 | field_name 1 'id' 2 'id' 3 'id' 4 'id' 2 | field_name 1 't' 2 't' 3 't' 4 't' 3 | field_name 1 'id' 2 'id' 3 'id' 4 'id' 4 | field_name 1 't' 2 't' 3 't' 4 't' 5 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-show.stdout: -------------------------------------------------------------------------------- 1 | Var: Search path: public 2 | Var: Search path: public 3 | Var: Standard conforming strings: off 4 | Time Zone: PST8PDT 5 | Transaction isolation level: read committed 6 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/regression.h: -------------------------------------------------------------------------------- 1 | exec sql define REGRESSDB1 regress1; 2 | exec sql define REGRESSDB2 connectdb; 3 | 4 | exec sql define REGRESSUSER1 regressuser1; 5 | exec sql define REGRESSUSER2 regressuser2; 6 | -------------------------------------------------------------------------------- /src/pl/plpython/sql/plpython_do.sql: -------------------------------------------------------------------------------- 1 | DO $$ plpy.notice("This is plpythonu.") $$ LANGUAGE plpythonu; 2 | 3 | DO $$ plpy.notice("This is plpython2u.") $$ LANGUAGE plpython2u; 4 | 5 | DO $$ nonsense $$ LANGUAGE plpythonu; 6 | -------------------------------------------------------------------------------- /contrib/pg_freespacemap/pg_freespacemap.control: -------------------------------------------------------------------------------- 1 | # pg_freespacemap extension 2 | comment = 'examine the free space map (FSM)' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/pg_freespacemap' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/pg_trgm/pg_trgm.control: -------------------------------------------------------------------------------- 1 | # pg_trgm extension 2 | comment = 'text similarity measurement and index searching based on trigrams' 3 | default_version = '1.1' 4 | module_pathname = '$libdir/pg_trgm' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/spi/insert_username.control: -------------------------------------------------------------------------------- 1 | # insert_username extension 2 | comment = 'functions for tracking who changed a table' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/insert_username' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/test_parser/test_parser.control: -------------------------------------------------------------------------------- 1 | # test_parser extension 2 | comment = 'example of a custom parser for full-text search' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/test_parser' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /doc-xc/src/sgml/pgnotice.sgmlin: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | At present, this section is just taken from PostgreSQL documentation 5 | and is subject to revision for Postgres-XC. 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/bin/pg_config/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_config/nls.mk 2 | CATALOG_NAME = pg_config 3 | AVAIL_LANGUAGES = cs de es fr it ja ko nb pl pt_BR ro ru sv ta tr zh_CN zh_TW 4 | GETTEXT_FILES = pg_config.c ../../port/exec.c 5 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/preproc-init.stdout: -------------------------------------------------------------------------------- 1 | in fb (2) 2 | in fa 3 | 2 4 98 2 14 14 2 2 1 2 1 4 | 0 5 | in fa 6 | in fb (20) 7 | in fc (50) 8 | in fd (50, 1) 9 | in fe (0) 10 | in sqlnotice (-empty-, 0) 11 | -------------------------------------------------------------------------------- /src/pl/tcl/pltcl.control: -------------------------------------------------------------------------------- 1 | # pltcl extension 2 | comment = 'PL/Tcl procedural language' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/pltcl' 5 | relocatable = false 6 | schema = pg_catalog 7 | superuser = false 8 | -------------------------------------------------------------------------------- /contrib/intarray/intarray.control: -------------------------------------------------------------------------------- 1 | # intarray extension 2 | comment = 'functions, operators, and index support for 1-D arrays of integers' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/_int' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/pageinspect/pageinspect.control: -------------------------------------------------------------------------------- 1 | # pageinspect extension 2 | comment = 'inspect the contents of database pages at a low level' 3 | default_version = '1.1' 4 | module_pathname = '$libdir/pageinspect' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/postgres_fdw/postgres_fdw.control: -------------------------------------------------------------------------------- 1 | # postgres_fdw extension 2 | comment = 'foreign-data wrapper for remote PostgreSQL servers' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/postgres_fdw' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/seg/segdata.h: -------------------------------------------------------------------------------- 1 | /* 2 | * contrib/seg/segdata.h 3 | */ 4 | typedef struct SEG 5 | { 6 | float4 lower; 7 | float4 upper; 8 | char l_sigd; 9 | char u_sigd; 10 | char l_ext; 11 | char u_ext; 12 | } SEG; 13 | -------------------------------------------------------------------------------- /contrib/tablefunc/tablefunc.control: -------------------------------------------------------------------------------- 1 | # tablefunc extension 2 | comment = 'functions that manipulate whole tables, including crosstab' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/tablefunc' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/pgtypeslib-num_test-MinGW32.stdout: -------------------------------------------------------------------------------- 1 | from int = 1407.0 2 | add = 2379.7 3 | sub = 2369.7 4 | mul = 13306998429.873000000 5 | div = 1330699.84298730000 1.330700e+006 6 | to long(0) = 20000000 14 7 | -------------------------------------------------------------------------------- /src/pl/plperl/plperl.control: -------------------------------------------------------------------------------- 1 | # plperl extension 2 | comment = 'PL/Perl procedural language' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/plperl' 5 | relocatable = false 6 | schema = pg_catalog 7 | superuser = false 8 | -------------------------------------------------------------------------------- /src/test/performance/start-pgsql.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Please choose amount of sort memory (-S XXX) as appropriate 4 | # for your system: more is better, but swapping breaks performance! 5 | 6 | exec postmaster '-o -S 2048' -S 7 | -------------------------------------------------------------------------------- /src/tools/make_diff/cporig: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # src/tools/make_diff/cporig 4 | 5 | for FILE 6 | do 7 | if [ ! -f "$FILE.orig" ] 8 | then cp $FILE $FILE.orig 9 | else echo "$FILE.orig exists" 1>&2 10 | fi 11 | done 12 | -------------------------------------------------------------------------------- /contrib/adminpack/adminpack.control: -------------------------------------------------------------------------------- 1 | # adminpack extension 2 | comment = 'administrative functions for PostgreSQL' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/adminpack' 5 | relocatable = false 6 | schema = pg_catalog 7 | -------------------------------------------------------------------------------- /contrib/dict_xsyn/dict_xsyn.control: -------------------------------------------------------------------------------- 1 | # dict_xsyn extension 2 | comment = 'text search dictionary template for extended synonym processing' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/dict_xsyn' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/fuzzystrmatch/fuzzystrmatch.control: -------------------------------------------------------------------------------- 1 | # fuzzystrmatch extension 2 | comment = 'determine similarities and distance between strings' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/fuzzystrmatch' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/preproc-variable.stdout: -------------------------------------------------------------------------------- 1 | Mum , married 1987-07-14, children = 3 2 | Dad , born 19610721, married 1987-07-14, children = 3 3 | Child 1 , age = 16 4 | Child 2 , age = 14 5 | Child 3 , age = 9 6 | -------------------------------------------------------------------------------- /src/pl/tcl/pltclu.control: -------------------------------------------------------------------------------- 1 | # pltclu extension 2 | comment = 'PL/TclU untrusted procedural language' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/pltcl' 5 | relocatable = false 6 | schema = pg_catalog 7 | superuser = true 8 | -------------------------------------------------------------------------------- /src/gtm/test/start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # GTM start script for test 4 | 5 | pushd /tmp/pgxc/bin; ln -fs gtm gtm_standby; popd 6 | 7 | ./start_a.sh 8 | 9 | echo "sleeping 3 seconds..." 10 | sleep 3; 11 | 12 | ./start_s.sh 13 | -------------------------------------------------------------------------------- /src/include/port/irix.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/irix.h */ 2 | 3 | /* 4 | * IRIX 6.5.26f and 6.5.22f (at least) have a strtod() that accepts 5 | * "infinity", but leaves endptr pointing to "inity". 6 | */ 7 | #define HAVE_BUGGY_IRIX_STRTOD 8 | -------------------------------------------------------------------------------- /src/pl/plpgsql/src/plpgsql.control: -------------------------------------------------------------------------------- 1 | # plpgsql extension 2 | comment = 'PL/pgSQL procedural language' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/plpgsql' 5 | relocatable = false 6 | schema = pg_catalog 7 | superuser = false 8 | -------------------------------------------------------------------------------- /src/test/examples/testlibpq3.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE test1 (i int4, t text, b bytea); 2 | 3 | INSERT INTO test1 values (1, 'joe''s place', '\\000\\001\\002\\003\\004'); 4 | INSERT INTO test1 values (2, 'ho there', '\\004\\003\\002\\001\\000'); 5 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/preproc-outofscope.stdout: -------------------------------------------------------------------------------- 1 | id=1 t='a' d1=1.000000 d2=2.000000 c = 'a ' 2 | id=2 t='' (NULL) d1=0.000000 (NULL) d2=0.000000 (NULL) c = '' (NULL) 3 | id=3 t='b' d1=2.000000 d2=3.000000 c = 'b ' 4 | -------------------------------------------------------------------------------- /src/pl/plperl/plperlu.control: -------------------------------------------------------------------------------- 1 | # plperlu extension 2 | comment = 'PL/PerlU untrusted procedural language' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/plperl' 5 | relocatable = false 6 | schema = pg_catalog 7 | superuser = true 8 | -------------------------------------------------------------------------------- /src/test/locale/sort-test.pl: -------------------------------------------------------------------------------- 1 | #! /usr/bin/perl 2 | use locale; 3 | 4 | open(INFILE, "<$ARGV[0]"); 5 | chop(my (@words) = ); 6 | close(INFILE); 7 | 8 | $" = "\n"; 9 | my (@result) = sort @words; 10 | 11 | print "@result\n"; 12 | -------------------------------------------------------------------------------- /doc-xc/src/sgml/xc-constraint.sgmlin: -------------------------------------------------------------------------------- 1 | 2 | 3 | Postgres-XC supports constraints only enforceable locally. 4 | You should not specify any constraint which need to refer to rows at remote node. 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/test/regress/sql/.gitignore: -------------------------------------------------------------------------------- 1 | /constraints.sql 2 | /copy.sql 3 | /create_function_1.sql 4 | /create_function_2.sql 5 | /largeobject.sql 6 | /misc.sql 7 | /security_label.sql 8 | /tablespace.sql 9 | /xc_copy.sql 10 | /xc_notrans_block.sql 11 | -------------------------------------------------------------------------------- /contrib/xml2/xml2.control: -------------------------------------------------------------------------------- 1 | # xml2 extension 2 | comment = 'XPath querying and XSLT' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/pgxml' 5 | # non-relocatable because xml2--unpackaged--1.0.sql needs to use @extschema@ 6 | relocatable = false 7 | -------------------------------------------------------------------------------- /src/bin/pg_ctl/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_ctl/nls.mk 2 | CATALOG_NAME = pg_ctl 3 | AVAIL_LANGUAGES = cs de es fr it ja ko pl pt_BR ru sv ta tr zh_CN zh_TW 4 | GETTEXT_FILES = pg_ctl.c ../../common/fe_memutils.c ../../port/exec.c ../../port/wait_error.c 5 | -------------------------------------------------------------------------------- /src/pl/plpython/plpython2u.control: -------------------------------------------------------------------------------- 1 | # plpython2u extension 2 | comment = 'PL/Python2U untrusted procedural language' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/plpython2' 5 | relocatable = false 6 | schema = pg_catalog 7 | superuser = true 8 | -------------------------------------------------------------------------------- /src/pl/plpython/plpython3u.control: -------------------------------------------------------------------------------- 1 | # plpython3u extension 2 | comment = 'PL/Python3U untrusted procedural language' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/plpython3' 5 | relocatable = false 6 | schema = pg_catalog 7 | superuser = true 8 | -------------------------------------------------------------------------------- /src/pl/plpython/plpythonu.control: -------------------------------------------------------------------------------- 1 | # plpythonu extension 2 | comment = 'PL/PythonU untrusted procedural language' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/plpython2' 5 | relocatable = false 6 | schema = pg_catalog 7 | superuser = true 8 | -------------------------------------------------------------------------------- /src/gtm/test2/test.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | main(void) 5 | { 6 | char *ptr[1024]; 7 | int i; 8 | 9 | for (i=0 ; i<1024 ; i++) 10 | { 11 | fprintf(stderr, "ptr[%d] = %p\n", i, ptr[i]); 12 | } 13 | 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /src/pl/plpython/expected/plpython_drop.out: -------------------------------------------------------------------------------- 1 | -- 2 | -- For paranoia's sake, don't leave an untrusted language sitting around 3 | -- 4 | SET client_min_messages = WARNING; 5 | DROP EXTENSION plpythonu CASCADE; 6 | DROP EXTENSION IF EXISTS plpython2u CASCADE; 7 | -------------------------------------------------------------------------------- /src/test/isolation/.gitignore: -------------------------------------------------------------------------------- 1 | # Local binaries 2 | /isolationtester 3 | /pg_isolation_regress 4 | 5 | # Local generated source files 6 | /specparse.c 7 | /specscanner.c 8 | 9 | # Generated subdirectories 10 | /results/ 11 | /log/ 12 | /tmp_check/ 13 | -------------------------------------------------------------------------------- /contrib/pg_stat_statements/pg_stat_statements.control: -------------------------------------------------------------------------------- 1 | # pg_stat_statements extension 2 | comment = 'track execution statistics of all SQL statements executed' 3 | default_version = '1.1' 4 | module_pathname = '$libdir/pg_stat_statements' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /src/bin/pg_basebackup/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_basebackup/nls.mk 2 | CATALOG_NAME = pg_basebackup 3 | AVAIL_LANGUAGES = cs de es fr it ja pl pt_BR ru zh_CN 4 | GETTEXT_FILES = pg_basebackup.c pg_receivexlog.c receivelog.c streamutil.c ../../common/fe_memutils.c 5 | -------------------------------------------------------------------------------- /src/bin/psql/psqlrc.sample: -------------------------------------------------------------------------------- 1 | -- 2 | -- psql configuration file 3 | -- 4 | -- This file is read before the .psqlrc file in the user's home directory. 5 | -- 6 | -- Copy this to your sysconf directory (typically /usr/local/pgsql/etc) and 7 | -- rename it psqlrc. 8 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-dynalloc.stdout: -------------------------------------------------------------------------------- 1 | Result: 2 | 1, 23.456000, 'varchar', 'v', 'c ', 'Mon Mar 03 11:33:07 2003 PST', 't', '2001:4f8:3:ba:2e0:81ff:fe22:d1f1', 3 | 2, 2.446000, NULL, 'v', 'c ', 'Mon Mar 03 11:33:07 2003 PST', 'f', NULL, 4 | 5 | -------------------------------------------------------------------------------- /src/pl/plpython/sql/plpython_drop.sql: -------------------------------------------------------------------------------- 1 | -- 2 | -- For paranoia's sake, don't leave an untrusted language sitting around 3 | -- 4 | SET client_min_messages = WARNING; 5 | 6 | DROP EXTENSION plpythonu CASCADE; 7 | 8 | DROP EXTENSION IF EXISTS plpython2u CASCADE; 9 | -------------------------------------------------------------------------------- /src/tools/pgindent/exclude_file_patterns: -------------------------------------------------------------------------------- 1 | #list of file patterns to exclude from pg_indent runs 2 | /s_lock\.h$ 3 | /ecpg/test/expected/ 4 | /snowball/libstemmer/ 5 | /ecpg/include/(sqlda|sqltypes)\.h$ 6 | /ecpg/include/preproc/struct\.h$ 7 | /pl/plperl/ppport\.h$ 8 | -------------------------------------------------------------------------------- /contrib/earthdistance/earthdistance.control: -------------------------------------------------------------------------------- 1 | # earthdistance extension 2 | comment = 'calculate great-circle distances on the surface of the Earth' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/earthdistance' 5 | relocatable = true 6 | requires = 'cube' 7 | -------------------------------------------------------------------------------- /src/bin/scripts/.gitignore: -------------------------------------------------------------------------------- 1 | /clusterdb 2 | /createdb 3 | /createlang 4 | /createuser 5 | /dropdb 6 | /droplang 7 | /dropuser 8 | /reindexdb 9 | /vacuumdb 10 | /pg_isready 11 | 12 | /dumputils.c 13 | /keywords.c 14 | /kwlookup.c 15 | /mbprint.c 16 | /print.c 17 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/preproc-cursor.stdout: -------------------------------------------------------------------------------- 1 | 1 a 2 | 2 b 3 | 3 c 4 | 4 d 5 | 1 a 6 | 2 b 7 | 1 a 8 | 2 b 9 | 3 c 10 | 4 d 11 | 1 a 12 | 2 b 13 | 1 e 14 | 1 a 15 | 2 b 16 | 3 c 17 | 1 a 18 | 2 b 19 | 1 a 20 | 2 b 21 | 3 c 22 | 4 d 23 | 1 a 24 | 2 b 25 | -------------------------------------------------------------------------------- /doc/src/Makefile: -------------------------------------------------------------------------------- 1 | # doc/src/Makefile 2 | 3 | subdir = doc/src 4 | top_builddir = ../.. 5 | include $(top_builddir)/src/Makefile.global 6 | 7 | all distprep html man install installdirs uninstall clean distclean maintainer-clean maintainer-check: 8 | $(MAKE) -C sgml $@ 9 | -------------------------------------------------------------------------------- /src/backend/port/dynloader/darwin.h: -------------------------------------------------------------------------------- 1 | /* src/backend/port/dynloader/darwin.h */ 2 | 3 | #include "fmgr.h" 4 | 5 | void *pg_dlopen(char *filename); 6 | PGFunction pg_dlsym(void *handle, char *funcname); 7 | void pg_dlclose(void *handle); 8 | char *pg_dlerror(void); 9 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/compat_informix-charfuncs.stdout: -------------------------------------------------------------------------------- 1 | t1: _abc def ghi _ 2 | t1: _ABC DEF GHI _ 3 | byleng(t1, 2): 2, ldchar: _AB_ 4 | byleng(t1, 5): 3, ldchar: _ABC_ 5 | byleng(t1, 9): 8, ldchar: _ABC DEF_ 6 | byleng(t1, 15): 13, ldchar: _ABC DEF GHI_ 7 | -------------------------------------------------------------------------------- /src/makefiles/Makefile.osf: -------------------------------------------------------------------------------- 1 | AROPT = crs 2 | DLSUFFIX = .so 3 | CFLAGS_SL = 4 | rpath = -rpath '$(rpathdir)' 5 | 6 | # Rule for building a shared library from a single .o file 7 | %.so: %.o 8 | $(LD) -shared -expect_unresolved '*' -o $@ $< 9 | 10 | sqlmansect = 5 11 | -------------------------------------------------------------------------------- /src/tools/codelines: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # src/tools/codelines 4 | 5 | # This script is used to compute the total number of "C" lines in the release 6 | # This should be run from the top of the Git tree after a 'make distclean' 7 | find . -name '*.[chyl]' | xargs cat| wc -l 8 | -------------------------------------------------------------------------------- /doc-xc/src/Makefile: -------------------------------------------------------------------------------- 1 | # doc/src/Makefile 2 | 3 | subdir = doc-xc/src 4 | top_builddir = ../.. 5 | include $(top_builddir)/src/Makefile.global 6 | 7 | all distprep html man install installdirs uninstall clean distclean maintainer-clean maintainer-check: 8 | $(MAKE) -C sgml $@ 9 | -------------------------------------------------------------------------------- /src/tools/msvc/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | REM src/tools/msvc/build.bat 3 | REM all the logic for this now belongs in build.pl. This file really 4 | REM only exists so you don't have to type "perl build.pl" 5 | REM Resist any temptation to add any logic here. 6 | @perl build.pl %* 7 | -------------------------------------------------------------------------------- /src/include/pg_config_ext.h.in: -------------------------------------------------------------------------------- 1 | /* 2 | * src/include/pg_config_ext.h.in. This is generated manually, not by 3 | * autoheader, since we want to limit which symbols get defined here. 4 | */ 5 | 6 | /* Define to the name of a signed 64-bit integer type. */ 7 | #undef PG_INT64_TYPE 8 | -------------------------------------------------------------------------------- /src/pl/tcl/nls.mk: -------------------------------------------------------------------------------- 1 | # src/pl/tcl/nls.mk 2 | CATALOG_NAME = pltcl 3 | AVAIL_LANGUAGES = cs de es fr it ja pl pt_BR ro ru tr zh_CN zh_TW 4 | GETTEXT_FILES = pltcl.c 5 | GETTEXT_TRIGGERS = $(BACKEND_COMMON_GETTEXT_TRIGGERS) 6 | GETTEXT_FLAGS = $(BACKEND_COMMON_GETTEXT_FLAGS) 7 | -------------------------------------------------------------------------------- /src/pl/tcl/pltcl--unpackaged--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/pl/tcl/pltcl--unpackaged--1.0.sql */ 2 | 3 | ALTER EXTENSION pltcl ADD PROCEDURAL LANGUAGE pltcl; 4 | -- ALTER ADD LANGUAGE doesn't pick up the support functions, so we have to. 5 | ALTER EXTENSION pltcl ADD FUNCTION pltcl_call_handler(); 6 | -------------------------------------------------------------------------------- /contrib/spi/autoinc--unpackaged--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/spi/autoinc--unpackaged--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION autoinc" to load this file. \quit 5 | 6 | ALTER EXTENSION autoinc ADD function autoinc(); 7 | -------------------------------------------------------------------------------- /src/pl/plperl/sql/plperl_lc.sql: -------------------------------------------------------------------------------- 1 | -- 2 | -- Make sure strings are validated 3 | -- Should fail for all encodings, as nul bytes are never permitted. 4 | -- 5 | CREATE OR REPLACE FUNCTION perl_zerob() RETURNS TEXT AS $$ 6 | return "abcd\0efg"; 7 | $$ LANGUAGE plperl; 8 | SELECT perl_zerob(); 9 | -------------------------------------------------------------------------------- /src/pl/tcl/pltclu--unpackaged--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/pl/tcl/pltclu--unpackaged--1.0.sql */ 2 | 3 | ALTER EXTENSION pltclu ADD PROCEDURAL LANGUAGE pltclu; 4 | -- ALTER ADD LANGUAGE doesn't pick up the support functions, so we have to. 5 | ALTER EXTENSION pltclu ADD FUNCTION pltclu_call_handler(); 6 | -------------------------------------------------------------------------------- /contrib/pgxc_clean/pgxc_clean.h: -------------------------------------------------------------------------------- 1 | #ifndef PGXC_CLEAN 2 | #define PGXC_CLEAN 3 | 4 | typedef struct database_names 5 | { 6 | struct database_names *next; 7 | char *database_name; 8 | } database_names; 9 | 10 | extern FILE *outf; 11 | extern FILE *errf; 12 | 13 | #endif /* PGXC_CLEAN */ 14 | -------------------------------------------------------------------------------- /src/pl/plperl/nls.mk: -------------------------------------------------------------------------------- 1 | # src/pl/plperl/nls.mk 2 | CATALOG_NAME = plperl 3 | AVAIL_LANGUAGES = cs de es fr it ja pl pt_BR ro ru tr zh_CN zh_TW 4 | GETTEXT_FILES = plperl.c SPI.c 5 | GETTEXT_TRIGGERS = $(BACKEND_COMMON_GETTEXT_TRIGGERS) 6 | GETTEXT_FLAGS = $(BACKEND_COMMON_GETTEXT_FLAGS) 7 | -------------------------------------------------------------------------------- /src/tools/msvc/builddoc.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | REM src/tools/msvc/builddoc.bat 4 | REM all the logic for this now belongs in builddoc.pl. This file really 5 | REM only exists so you don't have to type "perl builddoc.pl" 6 | REM Resist any temptation to add any logic here. 7 | @perl builddoc.pl %* 8 | -------------------------------------------------------------------------------- /src/tools/msvc/vcregress.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | REM src/tools/msvc/vcregress.bat 3 | REM all the logic for this now belongs in vcregress.pl. This file really 4 | REM only exists so you don't have to type "perl vcregress.pl" 5 | REM Resist any temptation to add any logic here. 6 | @perl vcregress.pl %* 7 | -------------------------------------------------------------------------------- /src/include/pg_config_ext.h.win32: -------------------------------------------------------------------------------- 1 | /* 2 | * src/include/pg_config_ext.h.win32. This is generated manually, not by 3 | * autoheader, since we want to limit which symbols get defined here. 4 | */ 5 | 6 | /* Define to the name of a signed 64-bit integer type. */ 7 | #define PG_INT64_TYPE long long int 8 | -------------------------------------------------------------------------------- /src/test/mb/README: -------------------------------------------------------------------------------- 1 | src/test/mb/README 2 | 3 | README for multibyte regression test 4 | 1998/7/22 5 | Tatsuo Ishii 6 | 7 | This directory contains a set of tests for multibyte supporting 8 | extensions for PostgreSQL. To run the test, simply type: 9 | 10 | % sh mbregress.sh 11 | -------------------------------------------------------------------------------- /src/gtm/test2/status_a.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # GTM start script for test 4 | 5 | export PATH=/tmp/pgxc/bin:$PATH 6 | export DATA=/tmp/pgxc/data/gtm 7 | 8 | # ------------------------------- 9 | # starting active... 10 | # ------------------------------- 11 | gtm_ctl -D ${DATA} -Z gtm status 12 | 13 | -------------------------------------------------------------------------------- /contrib/spi/moddatetime--unpackaged--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/spi/moddatetime--unpackaged--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION moddatetime" to load this file. \quit 5 | 6 | ALTER EXTENSION moddatetime ADD function moddatetime(); 7 | -------------------------------------------------------------------------------- /src/makefiles/Makefile.sco: -------------------------------------------------------------------------------- 1 | AROPT = cr 2 | export_dynamic = -Wl,-Bexport 3 | 4 | DLSUFFIX = .so 5 | ifeq ($(GCC), yes) 6 | CFLAGS_SL = -fpic 7 | else 8 | CFLAGS_SL = -K PIC 9 | endif 10 | 11 | # Rule for building a shared library from a single .o file 12 | %.so: %.o 13 | $(LD) -G -Bdynamic -o $@ $< 14 | -------------------------------------------------------------------------------- /contrib/spi/autoinc--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/spi/autoinc--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION autoinc" to load this file. \quit 5 | 6 | CREATE FUNCTION autoinc() 7 | RETURNS trigger 8 | AS 'MODULE_PATHNAME' 9 | LANGUAGE C; 10 | -------------------------------------------------------------------------------- /src/tools/msvc/pgflex.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | REM src/tools/msvc/pgflex.bat 4 | REM all the logic for this now belongs in pgflex.pl. This file really 5 | REM only exists so you don't have to type "perl src/tools/msvc/pgflex.pl" 6 | REM Resist any temptation to add any logic here. 7 | @perl src/tools/msvc/pgflex.pl %* 8 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/ecpglib/nls.mk: -------------------------------------------------------------------------------- 1 | # src/interfaces/ecpg/ecpglib/nls.mk 2 | CATALOG_NAME = ecpglib 3 | AVAIL_LANGUAGES = cs de es fr it ja pl pt_BR ru tr zh_CN 4 | GETTEXT_FILES = connect.c descriptor.c error.c execute.c misc.c 5 | GETTEXT_TRIGGERS = ecpg_gettext 6 | GETTEXT_FLAGS = ecpg_gettext:1:pass-c-format 7 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/preproc/nls.mk: -------------------------------------------------------------------------------- 1 | # src/interfaces/ecpg/preproc/nls.mk 2 | CATALOG_NAME = ecpg 3 | AVAIL_LANGUAGES = cs de es fr it ja ko pl pt_BR ru tr zh_CN zh_TW 4 | GETTEXT_FILES = descriptor.c ecpg.c pgc.c preproc.c type.c variable.c 5 | GETTEXT_TRIGGERS = mmerror:3 6 | GETTEXT_FLAGS = mmerror:3:c-format 7 | -------------------------------------------------------------------------------- /src/tools/msvc/pgbison.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | REM src/tools/msvc/pgbison.bat 4 | REM all the logic for this now belongs in pgbison.pl. This file really 5 | REM only exists so you don't have to type "perl src/tools/msvc/pgbison.pl" 6 | REM Resist any temptation to add any logic here. 7 | @perl src/tools/msvc/pgbison.pl %* 8 | -------------------------------------------------------------------------------- /contrib/pgrowlocks/pgrowlocks--unpackaged--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/pgrowlocks/pgrowlocks--unpackaged--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION pgrowlocks" to load this file. \quit 5 | 6 | ALTER EXTENSION pgrowlocks ADD function pgrowlocks(text); 7 | -------------------------------------------------------------------------------- /src/bin/initdb/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/initdb/nls.mk 2 | CATALOG_NAME = initdb 3 | AVAIL_LANGUAGES = cs de es fr it ja ko pl pt_BR ro ru sv ta tr zh_CN zh_TW 4 | GETTEXT_FILES = findtimezone.c initdb.c ../../common/fe_memutils.c ../../port/dirmod.c ../../port/exec.c ../../port/wait_error.c 5 | GETTEXT_TRIGGERS = simple_prompt 6 | -------------------------------------------------------------------------------- /src/gtm/test2/status_s.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # GTM start script for test 4 | 5 | export PATH=/tmp/pgxc/bin:$PATH 6 | export DATA=/tmp/pgxc/data/gtm_standby 7 | 8 | # ------------------------------- 9 | # starting active... 10 | # ------------------------------- 11 | gtm_ctl -D ${DATA} -Z gtm_standby status 12 | 13 | -------------------------------------------------------------------------------- /contrib/spi/insert_username--unpackaged--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/spi/insert_username--unpackaged--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION insert_username" to load this file. \quit 5 | 6 | ALTER EXTENSION insert_username ADD function insert_username(); 7 | -------------------------------------------------------------------------------- /src/pl/plperl/sql/plperl_init.sql: -------------------------------------------------------------------------------- 1 | -- test plperl.on_plperl_init errors are fatal 2 | 3 | -- This test tests setting on_plperl_init after loading plperl 4 | LOAD 'plperl'; 5 | 6 | SET SESSION plperl.on_plperl_init = ' system("/nonesuch"); '; 7 | 8 | SHOW plperl.on_plperl_init; 9 | 10 | DO $$ warn 42 $$ language plperl; 11 | -------------------------------------------------------------------------------- /contrib/hstore/crc32.h: -------------------------------------------------------------------------------- 1 | /* 2 | * contrib/hstore/crc32.h 3 | */ 4 | #ifndef _CRC32_H 5 | #define _CRC32_H 6 | 7 | /* Returns crc32 of data block */ 8 | extern unsigned int crc32_sz(char *buf, int size); 9 | 10 | /* Returns crc32 of null-terminated string */ 11 | #define crc32(buf) crc32_sz((buf),strlen(buf)) 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /contrib/hstore/hstore--1.0--1.1.sql: -------------------------------------------------------------------------------- 1 | /* contrib/hstore/hstore--1.0--1.1.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "ALTER EXTENSION hstore UPDATE TO '1.1'" to load this file. \quit 5 | 6 | ALTER EXTENSION hstore DROP OPERATOR => (text, text); 7 | DROP OPERATOR => (text, text); 8 | -------------------------------------------------------------------------------- /contrib/spi/moddatetime--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/spi/moddatetime--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION moddatetime" to load this file. \quit 5 | 6 | CREATE FUNCTION moddatetime() 7 | RETURNS trigger 8 | AS 'MODULE_PATHNAME' 9 | LANGUAGE C; 10 | -------------------------------------------------------------------------------- /contrib/ltree/crc32.h: -------------------------------------------------------------------------------- 1 | #ifndef _CRC32_H 2 | #define _CRC32_H 3 | 4 | /* contrib/ltree/crc32.h */ 5 | 6 | /* Returns crc32 of data block */ 7 | extern unsigned int ltree_crc32_sz(char *buf, int size); 8 | 9 | /* Returns crc32 of null-terminated string */ 10 | #define crc32(buf) ltree_crc32_sz((buf),strlen(buf)) 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /contrib/tcn/tcn--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/tcn/tcn--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION tcn" to load this file. \quit 5 | 6 | CREATE FUNCTION triggered_change_notification() 7 | RETURNS pg_catalog.trigger 8 | AS 'MODULE_PATHNAME' 9 | LANGUAGE C; 10 | -------------------------------------------------------------------------------- /src/backend/optimizer/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile for optimizer 3 | # 4 | # src/backend/optimizer/Makefile 5 | # 6 | 7 | subdir = src/backend/optimizer 8 | top_builddir = ../../.. 9 | include $(top_builddir)/src/Makefile.global 10 | 11 | SUBDIRS = geqo path plan prep util 12 | 13 | include $(top_srcdir)/src/backend/common.mk 14 | -------------------------------------------------------------------------------- /src/template/cygwin: -------------------------------------------------------------------------------- 1 | # src/template/cygwin 2 | 3 | SRCH_LIB="/usr/local/lib" 4 | 5 | # --allow-multiple-definition is required to link pg_dump because it finds 6 | # pg_toupper() in both libpq and pgport 7 | # --enable-auto-import gets rid of a diagnostics linker message 8 | LDFLAGS="-Wl,--allow-multiple-definition -Wl,--enable-auto-import" 9 | -------------------------------------------------------------------------------- /src/tools/make_diff/difforig: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # src/tools/make_diff/difforig 4 | 5 | if [ "$#" -eq 0 ] 6 | then APATH="." 7 | else APATH="$1" 8 | fi 9 | find $APATH -name '*.orig' -print | sort | while read FILE 10 | do 11 | NEW="`dirname $FILE`/`basename $FILE .orig`" 12 | echo "$NEW" 1>&2 13 | diff -c $FILE $NEW 14 | done 15 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/compat_informix/.gitignore: -------------------------------------------------------------------------------- 1 | /charfuncs 2 | /charfuncs.c 3 | /dec_test 4 | /dec_test.c 5 | /describe 6 | /describe.c 7 | /rfmtdate 8 | /rfmtdate.c 9 | /rfmtlong 10 | /rfmtlong.c 11 | /rnull 12 | /rnull.c 13 | /sqlda 14 | /sqlda.c 15 | /test_informix 16 | /test_informix.c 17 | /test_informix2 18 | /test_informix2.c 19 | -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/README: -------------------------------------------------------------------------------- 1 | src/test/locale/koi8-to-win1251/README 2 | 3 | koi8-to-win1251 test. The database should be created in koi8 (createdb -E koi8), 4 | test uses koi8-to-win1251 converting feature. 5 | Created by Oleg Broytmann . Code for encodings 6 | converting created by Tatsuo Ishii . 7 | -------------------------------------------------------------------------------- /contrib/spi/insert_username--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/spi/insert_username--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION insert_username" to load this file. \quit 5 | 6 | CREATE FUNCTION insert_username() 7 | RETURNS trigger 8 | AS 'MODULE_PATHNAME' 9 | LANGUAGE C; 10 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/preproc-autoprep.stdout: -------------------------------------------------------------------------------- 1 | item[0] = 1 2 | item[1] = 2 3 | item[2] = 2 4 | item[3] = -1 5 | i = 1 6 | item[0] = 1 7 | item[1] = 2 8 | item[2] = 2 9 | item[3] = -1 10 | item[0] = 1 11 | item[1] = 2 12 | item[2] = 2 13 | item[3] = -1 14 | i = 1 15 | item[0] = 1 16 | item[1] = 2 17 | item[2] = 2 18 | item[3] = -1 19 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/preproc-comment.stderr: -------------------------------------------------------------------------------- 1 | [NO_PID]: ECPGdebug: set to 1 2 | [NO_PID]: sqlca: code: 0, state: 00000 3 | [NO_PID]: ECPGconnect: opening database regress1 on port 4 | [NO_PID]: sqlca: code: 0, state: 00000 5 | [NO_PID]: ecpg_finish: connection regress1 closed 6 | [NO_PID]: sqlca: code: 0, state: 00000 7 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-array.stdout: -------------------------------------------------------------------------------- 1 | Found f=14.070000 text=0123456789 2 | Found a[0] = 9 3 | Found a[1] = 8 4 | Found a[2] = 7 5 | Found a[3] = 6 6 | Found a[4] = 5 7 | Found a[5] = 4 8 | Found a[6] = 3 9 | Found a[7] = 2 10 | Found a[8] = 1 11 | Found a[9] = 0 12 | Found text=klmnopqrst 13 | Found text={9,8,7,6,5,4,3,2,1,0} 14 | -------------------------------------------------------------------------------- /src/include/port/unixware.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/include/port/unixware.h 3 | * 4 | * see src/backend/libpq/pqcomm.c */ 5 | #define SCO_ACCEPT_BUG 6 | 7 | /*************************************** 8 | * Define this if you are compiling with 9 | * the native UNIXWARE C compiler. 10 | ***************************************/ 11 | #define USE_UNIVEL_CC 12 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/compat_informix-rnull.stdout: -------------------------------------------------------------------------------- 1 | first select 2 | null: 0 3 | null: 0 4 | null: 0 5 | null: 0 6 | null: 0 7 | null: 0 8 | null: 0 9 | null: 1 10 | null: 1 11 | null: 1 12 | second select 13 | null: 1 14 | null: 1 15 | null: 1 16 | null: 0 17 | null: 1 18 | null: 1 19 | null: 1 20 | null: 1 21 | null: 1 22 | null: 1 23 | -------------------------------------------------------------------------------- /src/tools/make_etags: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # src/tools/make_etags 4 | 5 | rm -f ./TAGS 6 | 7 | find `pwd`/ -type f -name '*.[chyl]' -print | 8 | xargs etags --append -o TAGS 9 | 10 | find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -type d -print | 11 | while read DIR 12 | do [ "$DIR" != "." ] && ln -f -s `pwd`/TAGS "$DIR" 13 | done 14 | -------------------------------------------------------------------------------- /contrib/lo/lo--unpackaged--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/lo/lo--unpackaged--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION lo" to load this file. \quit 5 | 6 | ALTER EXTENSION lo ADD domain lo; 7 | ALTER EXTENSION lo ADD function lo_oid(lo); 8 | ALTER EXTENSION lo ADD function lo_manage(); 9 | -------------------------------------------------------------------------------- /contrib/spi/refint--unpackaged--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/spi/refint--unpackaged--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION refint" to load this file. \quit 5 | 6 | ALTER EXTENSION refint ADD function check_primary_key(); 7 | ALTER EXTENSION refint ADD function check_foreign_key(); 8 | -------------------------------------------------------------------------------- /src/bin/psql/mainloop.h: -------------------------------------------------------------------------------- 1 | /* 2 | * psql - the PostgreSQL interactive terminal 3 | * 4 | * Copyright (c) 2000-2013, PostgreSQL Global Development Group 5 | * 6 | * src/bin/psql/mainloop.h 7 | */ 8 | #ifndef MAINLOOP_H 9 | #define MAINLOOP_H 10 | 11 | #include "postgres_fe.h" 12 | 13 | int MainLoop(FILE *source); 14 | 15 | #endif /* MAINLOOP_H */ 16 | -------------------------------------------------------------------------------- /src/bin/psql/tab-complete.h: -------------------------------------------------------------------------------- 1 | /* 2 | * psql - the PostgreSQL interactive terminal 3 | * 4 | * Copyright (c) 2000-2013, PostgreSQL Global Development Group 5 | * 6 | * src/bin/psql/tab-complete.h 7 | */ 8 | #ifndef TAB_COMPLETE_H 9 | #define TAB_COMPLETE_H 10 | 11 | #include "postgres_fe.h" 12 | 13 | void initialize_readline(void); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /src/tools/make_mkid: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # src/tools/make_mkid 4 | 5 | mkid `find \`pwd\`/ \( -name _deadcode -a -prune \) -o \ 6 | -type f -name '*.[chyl]' -print|sed 's;//;/;g'` 7 | 8 | find . \( -name .git -a -prune \) -o -type d -print |while read DIR 9 | do 10 | [ "$DIR" != "." ] && ln -f -s `echo "$DIR" | sed 's;/[^/]*;/..;g'`/ID $DIR/ID 11 | done 12 | -------------------------------------------------------------------------------- /contrib/tsearch2/tsearch2.control: -------------------------------------------------------------------------------- 1 | # tsearch2 extension 2 | comment = 'compatibility package for pre-8.3 text search functions' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/tsearch2' 5 | # this is not relocatable because the tsearch2--unpackaged--1.0.sql script 6 | # has to use @extschema@ to avoid conflict with items in pg_catalog 7 | relocatable = false 8 | -------------------------------------------------------------------------------- /src/tools/ccsym: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # src/tools/ccsym 4 | 5 | trap "rm -f /tmp/$$.*" 0 1 2 3 15 6 | cd /tmp 7 | cat >$$.c <&1` 11 | do 12 | case "$i" in 13 | -D*) echo "$i" | sed 's/^-D//';; 14 | -A*) echo "$i" | sed 's/^-A\(.*\)(\(.*\))/\1=\2/';; 15 | esac 16 | done 17 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/preproc/struct.h: -------------------------------------------------------------------------------- 1 | struct mytype 2 | { 3 | int id; 4 | char t[64]; 5 | double d1; /* dec_t */ 6 | double d2; 7 | char c[30]; 8 | }; 9 | typedef struct mytype MYTYPE; 10 | 11 | struct mynulltype 12 | { 13 | int id; 14 | int t; 15 | int d1; 16 | int d2; 17 | int c; 18 | }; 19 | typedef struct mynulltype MYNULLTYPE; 20 | -------------------------------------------------------------------------------- /src/backend/storage/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile for the storage manager subsystem 3 | # 4 | # src/backend/storage/Makefile 5 | # 6 | 7 | subdir = src/backend/storage 8 | top_builddir = ../../.. 9 | include $(top_builddir)/src/Makefile.global 10 | 11 | SUBDIRS = buffer file freespace ipc large_object lmgr page smgr 12 | 13 | include $(top_srcdir)/src/backend/common.mk 14 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/preproc/.gitignore: -------------------------------------------------------------------------------- 1 | /array_of_struct 2 | /array_of_struct.c 3 | /autoprep 4 | /autoprep.c 5 | /comment 6 | /comment.c 7 | /cursor 8 | /cursor.c 9 | /define 10 | /define.c 11 | /init 12 | /init.c 13 | /outofscope 14 | /outofscope.c 15 | /strings 16 | /strings.c 17 | /type 18 | /type.c 19 | /variable 20 | /variable.c 21 | /whenever 22 | /whenever.c 23 | -------------------------------------------------------------------------------- /src/pl/plpgsql/src/nls.mk: -------------------------------------------------------------------------------- 1 | # src/pl/plpgsql/src/nls.mk 2 | CATALOG_NAME = plpgsql 3 | AVAIL_LANGUAGES = cs de es fr it ja ko pl pt_BR ro ru zh_CN zh_TW 4 | GETTEXT_FILES = pl_comp.c pl_exec.c pl_gram.c pl_funcs.c pl_handler.c pl_scanner.c 5 | GETTEXT_TRIGGERS = $(BACKEND_COMMON_GETTEXT_TRIGGERS) yyerror plpgsql_yyerror 6 | GETTEXT_FLAGS = $(BACKEND_COMMON_GETTEXT_FLAGS) 7 | -------------------------------------------------------------------------------- /src/pl/plpython/plpy_exec.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/pl/plpython/plpy_exec.h 3 | */ 4 | 5 | #ifndef PLPY_EXEC_H 6 | #define PLPY_EXEC_H 7 | 8 | #include "plpy_procedure.h" 9 | 10 | extern Datum PLy_exec_function(FunctionCallInfo fcinfo, PLyProcedure *proc); 11 | extern HeapTuple PLy_exec_trigger(FunctionCallInfo fcinfo, PLyProcedure *proc); 12 | 13 | #endif /* PLPY_EXEC_H */ 14 | -------------------------------------------------------------------------------- /src/tools/msvc/install.pl: -------------------------------------------------------------------------------- 1 | # 2 | # Script that provides 'make install' functionality for msvc builds 3 | # 4 | # src/tools/msvc/install.pl 5 | # 6 | use strict; 7 | use warnings; 8 | 9 | use Install qw(Install); 10 | 11 | my $target = shift || Usage(); 12 | Install($target); 13 | 14 | sub Usage 15 | { 16 | print "Usage: install.pl \n"; 17 | exit(1); 18 | } 19 | -------------------------------------------------------------------------------- /contrib/auth_delay/Makefile: -------------------------------------------------------------------------------- 1 | # contrib/auth_delay/Makefile 2 | 3 | MODULES = auth_delay 4 | 5 | ifdef USE_PGXS 6 | PG_CONFIG = pg_config 7 | PGXS := $(shell $(PG_CONFIG) --pgxs) 8 | include $(PGXS) 9 | else 10 | subdir = contrib/auth_delay 11 | top_builddir = ../.. 12 | include $(top_builddir)/src/Makefile.global 13 | include $(top_srcdir)/contrib/contrib-global.mk 14 | endif 15 | -------------------------------------------------------------------------------- /contrib/worker_spi/Makefile: -------------------------------------------------------------------------------- 1 | # contrib/worker_spi/Makefile 2 | 3 | MODULES = worker_spi 4 | 5 | ifdef USE_PGXS 6 | PG_CONFIG = pg_config 7 | PGXS := $(shell $(PG_CONFIG) --pgxs) 8 | include $(PGXS) 9 | else 10 | subdir = contrib/worker_spi 11 | top_builddir = ../.. 12 | include $(top_builddir)/src/Makefile.global 13 | include $(top_srcdir)/contrib/contrib-global.mk 14 | endif 15 | -------------------------------------------------------------------------------- /src/backend/access/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile for the access methods module 3 | # 4 | # src/backend/access/Makefile 5 | # 6 | 7 | subdir = src/backend/access 8 | top_builddir = ../../.. 9 | include $(top_builddir)/src/Makefile.global 10 | 11 | SUBDIRS = common gin gist hash heap index nbtree rmgrdesc spgist transam 12 | 13 | include $(top_srcdir)/src/backend/common.mk 14 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stdout: -------------------------------------------------------------------------------- 1 | 1 NaN 'NaN' 2 | 2 +Inf 'Infinity' 3 | 3 -Inf '-Infinity' 4 | 1 NaN 'NaN' 5 | 2 +Inf 'Infinity' 6 | 3 -Inf '-Infinity' 7 | 4 NaN 'NaN' 8 | 7 NaN 'NaN' 9 | 5 +Inf 'Infinity' 10 | 8 +Inf 'Infinity' 11 | 6 -Inf '-Infinity' 12 | 9 -Inf '-Infinity' 13 | 4 NaN 'NaN' 14 | 4 NaN 'NaN' 15 | 5 NaN 'NaN' 16 | 6 NaN 'NaN' 17 | -------------------------------------------------------------------------------- /src/test/regress/data/real_city.data: -------------------------------------------------------------------------------- 1 | 0 Oakland ((-122,37.9),(-121.7,37.9),(-121.7,37.4),(-122,37.4)) 2 | 0 Oakland ((-121.7,37.4),(-121.7,37),(-122.1,37),(-122.1,37.3),(-122,37.3),(-122,37.4)) 3 | 0 Oakland ((-122.1,37.3),(-122.2,37.5),(-122,37.5)) 4 | 0 Berkeley ((-122.3,37.9),(-122,37.9),(-122,37.6),(-122.3,37.6)) 5 | 0 Lafayette ((-122.3,37.4),(-122.2,37.4),(-122.2,37),(-122.3,37)) 6 | -------------------------------------------------------------------------------- /src/tools/pgindent/perltidyrc: -------------------------------------------------------------------------------- 1 | --add-whitespace 2 | --backup-and-modify-in-place 3 | --delete-old-whitespace 4 | --entab-leading-whitespace=4 5 | --keep-old-blank-lines=2 6 | --maximum-line-length=78 7 | --nospace-for-semicolon 8 | --opening-brace-on-new-line 9 | --output-line-ending=unix 10 | --paren-tightness=2 11 | --vertical-tightness=2 12 | --vertical-tightness-closing=2 13 | -------------------------------------------------------------------------------- /doc-xc/src/sgml/common.sgmlin: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | The following description applies both to Postgres-XC 5 | and PostgreSQL if not described explicitly. You can 6 | read PostgreSQL as Postgres-XC except 7 | for version number, which is specific to each product. 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/backend/utils/mb/conversion_procs/proc.mk: -------------------------------------------------------------------------------- 1 | SRCS += $(NAME).c 2 | OBJS += $(NAME).o 3 | 4 | rpath = 5 | 6 | all: all-shared-lib 7 | 8 | include $(top_srcdir)/src/Makefile.shlib 9 | 10 | install: all installdirs install-lib 11 | 12 | installdirs: installdirs-lib 13 | 14 | uninstall: uninstall-lib 15 | 16 | clean distclean maintainer-clean: clean-lib 17 | rm -f $(OBJS) 18 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/connect-test4.stderr: -------------------------------------------------------------------------------- 1 | [NO_PID]: ECPGdebug: set to 1 2 | [NO_PID]: sqlca: code: 0, state: 00000 3 | [NO_PID]: ECPGconnect: opening database regress1 on port 4 | [NO_PID]: sqlca: code: 0, state: 00000 5 | [NO_PID]: raising sqlcode -220 on line 17: connection "DEFAULT" does not exist on line 17 6 | [NO_PID]: sqlca: code: -220, state: 08003 7 | -------------------------------------------------------------------------------- /src/interfaces/libpq/.gitignore: -------------------------------------------------------------------------------- 1 | /exports.list 2 | /chklocale.c 3 | /crypt.c 4 | /getaddrinfo.c 5 | /getpeereid.c 6 | /inet_aton.c 7 | /inet_net_ntop.c 8 | /noblock.c 9 | /open.c 10 | /pgstrcasecmp.c 11 | /pqsignal.c 12 | /snprintf.c 13 | /strerror.c 14 | /strlcpy.c 15 | /thread.c 16 | /win32error.c 17 | /pgsleep.c 18 | /md5.c 19 | /ip.c 20 | /encnames.c 21 | /wchar.c 22 | /libpq.rc 23 | -------------------------------------------------------------------------------- /src/pl/tcl/pltcl--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/pl/tcl/pltcl--1.0.sql */ 2 | 3 | /* 4 | * Currently, all the interesting stuff is done by CREATE LANGUAGE. 5 | * Later we will probably "dumb down" that command and put more of the 6 | * knowledge into this script. 7 | */ 8 | 9 | CREATE PROCEDURAL LANGUAGE pltcl; 10 | 11 | COMMENT ON PROCEDURAL LANGUAGE pltcl IS 'PL/Tcl procedural language'; 12 | -------------------------------------------------------------------------------- /src/test/performance/sqls/slcsimple: -------------------------------------------------------------------------------- 1 | `> .sqlf`; 2 | 3 | # PgSQL specific to execute all queries in single xaction 4 | `echo "BEGIN;" >> .sqlf` if ( $TestDBMS =~ /^pgsql/ && $XACTBLOCK ne '' ); 5 | 6 | 7 | `cat sqls/slcsimple.data >> .sqlf`; 8 | 9 | 10 | `echo "END;" >> .sqlf` if ( $TestDBMS =~ /^pgsql/ && $XACTBLOCK ne '' ); 11 | 12 | # Run queries 13 | `time $FrontEnd < .sqlf`; 14 | -------------------------------------------------------------------------------- /src/backend/tsearch/hunspell_sample.affix: -------------------------------------------------------------------------------- 1 | COMPOUNDFLAG Z 2 | ONLYINCOMPOUND L 3 | 4 | PFX B Y 1 5 | PFX B 0 re . 6 | 7 | PFX U N 1 8 | PFX U 0 un . 9 | 10 | SFX J Y 1 11 | SFX J 0 INGS [^E] 12 | 13 | SFX G Y 1 14 | SFX G 0 ING [^E] 15 | 16 | SFX S Y 1 17 | SFX S 0 S [^SXZHY] 18 | 19 | SFX A Y 1 20 | SFX A Y IES [^AEIOU]Y 21 | 22 | SFX \ N 1 23 | SFX \ 0 Y/L [^Y] 24 | 25 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/include/decimal.h: -------------------------------------------------------------------------------- 1 | /* src/interfaces/ecpg/include/decimal.h */ 2 | 3 | #ifndef _ECPG_DECIMAL_H 4 | #define _ECPG_DECIMAL_H 5 | 6 | #include 7 | 8 | #ifndef _ECPGLIB_H /* source created by ecpg which defines this 9 | * symbol */ 10 | typedef decimal dec_t; 11 | #endif /* ndef _ECPGLIB_H */ 12 | 13 | #endif /* ndef _ECPG_DECIMAL_H */ 14 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/connect/Makefile: -------------------------------------------------------------------------------- 1 | subdir = src/interfaces/ecpg/test/connect 2 | top_builddir = ../../../../.. 3 | include $(top_builddir)/src/Makefile.global 4 | include $(top_srcdir)/$(subdir)/../Makefile.regress 5 | 6 | TESTS = test1 test1.c \ 7 | test2 test2.c \ 8 | test3 test3.c \ 9 | test4 test4.c \ 10 | test5 test5.c 11 | 12 | all: $(TESTS) 13 | -------------------------------------------------------------------------------- /src/makefiles/Makefile.darwin: -------------------------------------------------------------------------------- 1 | AROPT = crs 2 | 3 | DLSUFFIX = .so 4 | 5 | ifdef PGXS 6 | BE_DLLLIBS = -bundle_loader $(bindir)/postgres 7 | else 8 | BE_DLLLIBS = -bundle_loader $(top_builddir)/src/backend/postgres 9 | endif 10 | 11 | # Rule for building a shared library from a single .o file 12 | %.so: %.o 13 | $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -bundle $(BE_DLLLIBS) -o $@ $< 14 | -------------------------------------------------------------------------------- /src/pl/plperl/plperl--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/pl/plperl/plperl--1.0.sql */ 2 | 3 | /* 4 | * Currently, all the interesting stuff is done by CREATE LANGUAGE. 5 | * Later we will probably "dumb down" that command and put more of the 6 | * knowledge into this script. 7 | */ 8 | 9 | CREATE PROCEDURAL LANGUAGE plperl; 10 | 11 | COMMENT ON PROCEDURAL LANGUAGE plperl IS 'PL/Perl procedural language'; 12 | -------------------------------------------------------------------------------- /config/Makefile: -------------------------------------------------------------------------------- 1 | # config/Makefile 2 | 3 | subdir = config 4 | top_builddir = .. 5 | include $(top_builddir)/src/Makefile.global 6 | 7 | 8 | install: all installdirs 9 | $(INSTALL_SCRIPT) $(srcdir)/install-sh '$(DESTDIR)$(pgxsdir)/config/install-sh' 10 | 11 | installdirs: 12 | $(MKDIR_P) '$(DESTDIR)$(pgxsdir)/config' 13 | 14 | uninstall: 15 | rm -f '$(DESTDIR)$(pgxsdir)/config/install-sh' 16 | -------------------------------------------------------------------------------- /contrib/dummy_seclabel/Makefile: -------------------------------------------------------------------------------- 1 | # contrib/dummy_seclabel/Makefile 2 | 3 | MODULES = dummy_seclabel 4 | 5 | ifdef USE_PGXS 6 | PG_CONFIG = pg_config 7 | PGXS := $(shell $(PG_CONFIG) --pgxs) 8 | include $(PGXS) 9 | else 10 | subdir = contrib/dummy_seclabel 11 | top_builddir = ../.. 12 | include $(top_builddir)/src/Makefile.global 13 | include $(top_srcdir)/contrib/contrib-global.mk 14 | endif 15 | -------------------------------------------------------------------------------- /src/pl/tcl/pltclu--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/pl/tcl/pltclu--1.0.sql */ 2 | 3 | /* 4 | * Currently, all the interesting stuff is done by CREATE LANGUAGE. 5 | * Later we will probably "dumb down" that command and put more of the 6 | * knowledge into this script. 7 | */ 8 | 9 | CREATE PROCEDURAL LANGUAGE pltclu; 10 | 11 | COMMENT ON PROCEDURAL LANGUAGE pltclu IS 'PL/TclU untrusted procedural language'; 12 | -------------------------------------------------------------------------------- /src/test/regress/expected/.gitignore: -------------------------------------------------------------------------------- 1 | /constraints.out 2 | /constraints_1.out 3 | /copy.out 4 | /copy_1.out 5 | /create_function_1.out 6 | /create_function_2.out 7 | /largeobject.out 8 | /largeobject_1.out 9 | /largeobject_2.out 10 | /largeobject_3.out 11 | /misc.out 12 | /misc_1.out 13 | /security_label.out 14 | /tablespace.out 15 | /tablespace_1.out 16 | /xc_copy.out 17 | /xc_notrans_block.out 18 | -------------------------------------------------------------------------------- /contrib/pg_xlogdump/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_xlogdump 2 | # Source files copied from src/backend/access/ 3 | /clogdesc.c 4 | /dbasedesc.c 5 | /gindesc.c 6 | /gistdesc.c 7 | /hashdesc.c 8 | /heapdesc.c 9 | /mxactdesc.c 10 | /nbtdesc.c 11 | /relmapdesc.c 12 | /seqdesc.c 13 | /smgrdesc.c 14 | /spgdesc.c 15 | /standbydesc.c 16 | /tblspcdesc.c 17 | /xactdesc.c 18 | /xlogdesc.c 19 | /xlogreader.c 20 | /pgxcdesc.c 21 | -------------------------------------------------------------------------------- /contrib/tcn/Makefile: -------------------------------------------------------------------------------- 1 | # contrib/tcn/Makefile 2 | 3 | MODULES = tcn 4 | 5 | EXTENSION = tcn 6 | DATA = tcn--1.0.sql 7 | 8 | ifdef USE_PGXS 9 | PG_CONFIG = pg_config 10 | PGXS := $(shell $(PG_CONFIG) --pgxs) 11 | include $(PGXS) 12 | else 13 | subdir = contrib/tcn 14 | top_builddir = ../.. 15 | include $(top_builddir)/src/Makefile.global 16 | include $(top_srcdir)/contrib/contrib-global.mk 17 | endif 18 | -------------------------------------------------------------------------------- /src/pl/plperl/expected/plperl_lc.out: -------------------------------------------------------------------------------- 1 | -- 2 | -- Make sure strings are validated 3 | -- Should fail for all encodings, as nul bytes are never permitted. 4 | -- 5 | CREATE OR REPLACE FUNCTION perl_zerob() RETURNS TEXT AS $$ 6 | return "abcd\0efg"; 7 | $$ LANGUAGE plperl; 8 | SELECT perl_zerob(); 9 | ERROR: invalid byte sequence for encoding "UTF8": 0x00 10 | CONTEXT: PL/Perl function "perl_zerob" 11 | -------------------------------------------------------------------------------- /contrib/pg_buffercache/pg_buffercache--unpackaged--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/pg_buffercache/pg_buffercache--unpackaged--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION pg_buffercache" to load this file. \quit 5 | 6 | ALTER EXTENSION pg_buffercache ADD function pg_buffercache_pages(); 7 | ALTER EXTENSION pg_buffercache ADD view pg_buffercache; 8 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/connect/test4.pgc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | exec sql include ../regression; 7 | 8 | int 9 | main(void) 10 | { 11 | ECPGdebug(1, stderr); 12 | 13 | exec sql connect to REGRESSDB1 as main; 14 | 15 | exec sql set connection to main; 16 | 17 | exec sql disconnect DEFAULT; 18 | 19 | return (0); 20 | } 21 | -------------------------------------------------------------------------------- /src/interfaces/libpq/test/README: -------------------------------------------------------------------------------- 1 | This is a testsuite for testing libpq URI connection string syntax. 2 | 3 | To run the suite, use 'make installcheck' command. It works by 4 | running 'regress.sh' from this directory with appropriate environment 5 | set up, which in turn feeds up lines from 'regress.in' to 6 | 'uri-regress' test program and compares the output against the correct 7 | one in 'expected.out' file. 8 | -------------------------------------------------------------------------------- /src/pl/plperl/expected/plperl_lc_1.out: -------------------------------------------------------------------------------- 1 | -- 2 | -- Make sure strings are validated 3 | -- Should fail for all encodings, as nul bytes are never permitted. 4 | -- 5 | CREATE OR REPLACE FUNCTION perl_zerob() RETURNS TEXT AS $$ 6 | return "abcd\0efg"; 7 | $$ LANGUAGE plperl; 8 | SELECT perl_zerob(); 9 | ERROR: invalid byte sequence for encoding "SQL_ASCII": 0x00 10 | CONTEXT: PL/Perl function "perl_zerob" 11 | -------------------------------------------------------------------------------- /src/pl/plperl/plperlu--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/pl/plperl/plperlu--1.0.sql */ 2 | 3 | /* 4 | * Currently, all the interesting stuff is done by CREATE LANGUAGE. 5 | * Later we will probably "dumb down" that command and put more of the 6 | * knowledge into this script. 7 | */ 8 | 9 | CREATE PROCEDURAL LANGUAGE plperlu; 10 | 11 | COMMENT ON PROCEDURAL LANGUAGE plperlu IS 'PL/PerlU untrusted procedural language'; 12 | -------------------------------------------------------------------------------- /doc-xc/src/sgml/stylesheet-fo.xsl: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/include/pg_trace.h: -------------------------------------------------------------------------------- 1 | /* ---------- 2 | * pg_trace.h 3 | * 4 | * Definitions for the PostgreSQL tracing framework 5 | * 6 | * Copyright (c) 2006-2013, PostgreSQL Global Development Group 7 | * 8 | * src/include/pg_trace.h 9 | * ---------- 10 | */ 11 | 12 | #ifndef PG_TRACE_H 13 | #define PG_TRACE_H 14 | 15 | #include "utils/probes.h" /* pgrminclude ignore */ 16 | 17 | #endif /* PG_TRACE_H */ 18 | -------------------------------------------------------------------------------- /src/makefiles/Makefile: -------------------------------------------------------------------------------- 1 | # src/makefiles/Makefile 2 | 3 | subdir = src/makefiles 4 | top_builddir = ../.. 5 | include $(top_builddir)/src/Makefile.global 6 | 7 | 8 | install: all installdirs 9 | $(INSTALL_DATA) $(srcdir)/pgxs.mk '$(DESTDIR)$(pgxsdir)/$(subdir)/' 10 | 11 | installdirs: 12 | $(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)' 13 | 14 | uninstall: 15 | rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/pgxs.mk' 16 | -------------------------------------------------------------------------------- /src/tools/entab/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile 3 | # 4 | # 5 | TARGET = entab 6 | BINDIR = /usr/local/bin 7 | XFLAGS = 8 | CFLAGS = -O $(XFLAGS) 9 | LIBS = 10 | 11 | $(TARGET): entab.o 12 | $(CC) -o $@ $(CFLAGS) $^ $(LIBS) 13 | 14 | clean: 15 | rm -f *.o $(TARGET) log core 16 | 17 | install: $(TARGET) 18 | install -s $(TARGET) $(BINDIR) 19 | rm -f $(BINDIR)/detab 20 | ln $(BINDIR)/$(TARGET) $(BINDIR)/detab 21 | -------------------------------------------------------------------------------- /contrib/auto_explain/Makefile: -------------------------------------------------------------------------------- 1 | # contrib/auto_explain/Makefile 2 | 3 | MODULE_big = auto_explain 4 | OBJS = auto_explain.o 5 | 6 | ifdef USE_PGXS 7 | PG_CONFIG = pg_config 8 | PGXS := $(shell $(PG_CONFIG) --pgxs) 9 | include $(PGXS) 10 | else 11 | subdir = contrib/auto_explain 12 | top_builddir = ../.. 13 | include $(top_builddir)/src/Makefile.global 14 | include $(top_srcdir)/contrib/contrib-global.mk 15 | endif 16 | -------------------------------------------------------------------------------- /src/interfaces/libpq/nls.mk: -------------------------------------------------------------------------------- 1 | # src/interfaces/libpq/nls.mk 2 | CATALOG_NAME = libpq 3 | AVAIL_LANGUAGES = cs de es fr it ja ko pl pt_BR ru sv ta tr zh_CN zh_TW 4 | GETTEXT_FILES = fe-auth.c fe-connect.c fe-exec.c fe-lobj.c fe-misc.c fe-protocol2.c fe-protocol3.c fe-secure.c win32.c 5 | GETTEXT_TRIGGERS = libpq_gettext pqInternalNotice:2 6 | GETTEXT_FLAGS = libpq_gettext:1:pass-c-format pqInternalNotice:2:c-format 7 | -------------------------------------------------------------------------------- /contrib/intagg/Makefile: -------------------------------------------------------------------------------- 1 | # contrib/intagg/Makefile 2 | 3 | EXTENSION = intagg 4 | DATA = intagg--1.0.sql intagg--unpackaged--1.0.sql 5 | 6 | ifdef USE_PGXS 7 | PG_CONFIG = pg_config 8 | PGXS := $(shell $(PG_CONFIG) --pgxs) 9 | include $(PGXS) 10 | else 11 | subdir = contrib/intagg 12 | top_builddir = ../.. 13 | include $(top_builddir)/src/Makefile.global 14 | include $(top_srcdir)/contrib/contrib-global.mk 15 | endif 16 | -------------------------------------------------------------------------------- /contrib/lo/Makefile: -------------------------------------------------------------------------------- 1 | # contrib/lo/Makefile 2 | 3 | MODULES = lo 4 | 5 | EXTENSION = lo 6 | DATA = lo--1.0.sql lo--unpackaged--1.0.sql 7 | 8 | ifdef USE_PGXS 9 | PG_CONFIG = pg_config 10 | PGXS := $(shell $(PG_CONFIG) --pgxs) 11 | include $(PGXS) 12 | else 13 | subdir = contrib/lo 14 | top_builddir = ../.. 15 | include $(top_builddir)/src/Makefile.global 16 | include $(top_srcdir)/contrib/contrib-global.mk 17 | endif 18 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_dutch.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * dutch_UTF_8_create_env(void); 9 | extern void dutch_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int dutch_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/thread/Makefile: -------------------------------------------------------------------------------- 1 | subdir = src/interfaces/ecpg/test/thread 2 | top_builddir = ../../../../.. 3 | include $(top_builddir)/src/Makefile.global 4 | include $(top_srcdir)/$(subdir)/../Makefile.regress 5 | 6 | 7 | TESTS = thread_implicit thread_implicit.c \ 8 | thread thread.c \ 9 | prep prep.c \ 10 | descriptor descriptor.c \ 11 | alloc alloc.c 12 | 13 | all: $(TESTS) 14 | -------------------------------------------------------------------------------- /src/pl/plperl/plperl--unpackaged--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/pl/plperl/plperl--unpackaged--1.0.sql */ 2 | 3 | ALTER EXTENSION plperl ADD PROCEDURAL LANGUAGE plperl; 4 | -- ALTER ADD LANGUAGE doesn't pick up the support functions, so we have to. 5 | ALTER EXTENSION plperl ADD FUNCTION plperl_call_handler(); 6 | ALTER EXTENSION plperl ADD FUNCTION plperl_inline_handler(internal); 7 | ALTER EXTENSION plperl ADD FUNCTION plperl_validator(oid); 8 | -------------------------------------------------------------------------------- /src/pl/plpython/plpythonu--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/pl/plpython/plpythonu--1.0.sql */ 2 | 3 | /* 4 | * Currently, all the interesting stuff is done by CREATE LANGUAGE. 5 | * Later we will probably "dumb down" that command and put more of the 6 | * knowledge into this script. 7 | */ 8 | 9 | CREATE PROCEDURAL LANGUAGE plpythonu; 10 | 11 | COMMENT ON PROCEDURAL LANGUAGE plpythonu IS 'PL/PythonU untrusted procedural language'; 12 | -------------------------------------------------------------------------------- /contrib/isn/Makefile: -------------------------------------------------------------------------------- 1 | # contrib/isn/Makefile 2 | 3 | MODULES = isn 4 | 5 | EXTENSION = isn 6 | DATA = isn--1.0.sql isn--unpackaged--1.0.sql 7 | 8 | ifdef USE_PGXS 9 | PG_CONFIG = pg_config 10 | PGXS := $(shell $(PG_CONFIG) --pgxs) 11 | include $(PGXS) 12 | else 13 | subdir = contrib/isn 14 | top_builddir = ../.. 15 | include $(top_builddir)/src/Makefile.global 16 | include $(top_srcdir)/contrib/contrib-global.mk 17 | endif 18 | -------------------------------------------------------------------------------- /contrib/spi/refint--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/spi/refint--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION refint" to load this file. \quit 5 | 6 | CREATE FUNCTION check_primary_key() 7 | RETURNS trigger 8 | AS 'MODULE_PATHNAME' 9 | LANGUAGE C; 10 | 11 | CREATE FUNCTION check_foreign_key() 12 | RETURNS trigger 13 | AS 'MODULE_PATHNAME' 14 | LANGUAGE C; 15 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_danish.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * danish_UTF_8_create_env(void); 9 | extern void danish_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int danish_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_french.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * french_UTF_8_create_env(void); 9 | extern void french_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int french_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_german.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * german_UTF_8_create_env(void); 9 | extern void german_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int german_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_porter.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * porter_UTF_8_create_env(void); 9 | extern void porter_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int porter_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/include/sqlda.h: -------------------------------------------------------------------------------- 1 | #ifndef ECPG_SQLDA_H 2 | #define ECPG_SQLDA_H 3 | 4 | #ifdef _ECPG_INFORMIX_H 5 | 6 | #include "sqlda-compat.h" 7 | typedef struct sqlvar_compat sqlvar_t; 8 | typedef struct sqlda_compat sqlda_t; 9 | 10 | #else 11 | 12 | #include "sqlda-native.h" 13 | typedef struct sqlvar_struct sqlvar_t; 14 | typedef struct sqlda_struct sqlda_t; 15 | 16 | #endif 17 | 18 | #endif /* ECPG_SQLDA_H */ 19 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/connect/README: -------------------------------------------------------------------------------- 1 | src/interfaces/ecpg/test/connect/README 2 | 3 | Programs in this directory test all sorts of connections. 4 | 5 | All other programs just use one standard connection method. 6 | 7 | If any details of the regression database get changed (port, unix socket file, 8 | user names, passwords, ...), these programs here have to be changed as well 9 | because they contain hardcoded values. 10 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/pgtypeslib/Makefile: -------------------------------------------------------------------------------- 1 | subdir = src/interfaces/ecpg/test/pgtypeslib 2 | top_builddir = ../../../../.. 3 | include $(top_builddir)/src/Makefile.global 4 | include $(top_srcdir)/$(subdir)/../Makefile.regress 5 | 6 | TESTS = dt_test dt_test.c \ 7 | dt_test2 dt_test2.c \ 8 | num_test num_test.c \ 9 | num_test2 num_test2.c \ 10 | nan_test nan_test.c 11 | 12 | all: $(TESTS) 13 | -------------------------------------------------------------------------------- /src/pl/plpython/plpython2u--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/pl/plpython/plpython2u--1.0.sql */ 2 | 3 | /* 4 | * Currently, all the interesting stuff is done by CREATE LANGUAGE. 5 | * Later we will probably "dumb down" that command and put more of the 6 | * knowledge into this script. 7 | */ 8 | 9 | CREATE PROCEDURAL LANGUAGE plpython2u; 10 | 11 | COMMENT ON PROCEDURAL LANGUAGE plpython2u IS 'PL/Python2U untrusted procedural language'; 12 | -------------------------------------------------------------------------------- /src/pl/plpython/plpython3u--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/pl/plpython/plpython3u--1.0.sql */ 2 | 3 | /* 4 | * Currently, all the interesting stuff is done by CREATE LANGUAGE. 5 | * Later we will probably "dumb down" that command and put more of the 6 | * knowledge into this script. 7 | */ 8 | 9 | CREATE PROCEDURAL LANGUAGE plpython3u; 10 | 11 | COMMENT ON PROCEDURAL LANGUAGE plpython3u IS 'PL/Python3U untrusted procedural language'; 12 | -------------------------------------------------------------------------------- /contrib/pg_freespacemap/pg_freespacemap--unpackaged--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/pg_freespacemap/pg_freespacemap--unpackaged--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION pg_freespacemap" to load this file. \quit 5 | 6 | ALTER EXTENSION pg_freespacemap ADD function pg_freespace(regclass,bigint); 7 | ALTER EXTENSION pg_freespacemap ADD function pg_freespace(regclass); 8 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_english.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * english_UTF_8_create_env(void); 9 | extern void english_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int english_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_finnish.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * finnish_UTF_8_create_env(void); 9 | extern void finnish_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int finnish_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_italian.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * italian_UTF_8_create_env(void); 9 | extern void italian_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int italian_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_russian.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * russian_UTF_8_create_env(void); 9 | extern void russian_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int russian_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_spanish.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * spanish_UTF_8_create_env(void); 9 | extern void spanish_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int spanish_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_swedish.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * swedish_UTF_8_create_env(void); 9 | extern void swedish_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int swedish_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_turkish.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * turkish_UTF_8_create_env(void); 9 | extern void turkish_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int turkish_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/include/datetime.h: -------------------------------------------------------------------------------- 1 | /* src/interfaces/ecpg/include/datetime.h */ 2 | 3 | #ifndef _ECPG_DATETIME_H 4 | #define _ECPG_DATETIME_H 5 | 6 | #include 7 | 8 | #ifndef _ECPGLIB_H /* source created by ecpg which defines these 9 | * symbols */ 10 | typedef timestamp dtime_t; 11 | typedef interval intrvl_t; 12 | #endif /* ndef _ECPGLIB_H */ 13 | 14 | #endif /* ndef _ECPG_DATETIME_H */ 15 | -------------------------------------------------------------------------------- /src/pl/plperl/plperlu--unpackaged--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/pl/plperl/plperlu--unpackaged--1.0.sql */ 2 | 3 | ALTER EXTENSION plperlu ADD PROCEDURAL LANGUAGE plperlu; 4 | -- ALTER ADD LANGUAGE doesn't pick up the support functions, so we have to. 5 | ALTER EXTENSION plperlu ADD FUNCTION plperlu_call_handler(); 6 | ALTER EXTENSION plperlu ADD FUNCTION plperlu_inline_handler(internal); 7 | ALTER EXTENSION plperlu ADD FUNCTION plperlu_validator(oid); 8 | -------------------------------------------------------------------------------- /contrib/spi/timetravel--unpackaged--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/spi/timetravel--unpackaged--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION timetravel" to load this file. \quit 5 | 6 | ALTER EXTENSION timetravel ADD function timetravel(); 7 | ALTER EXTENSION timetravel ADD function set_timetravel(name,integer); 8 | ALTER EXTENSION timetravel ADD function get_timetravel(name); 9 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_KOI8_R_russian.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * russian_KOI8_R_create_env(void); 9 | extern void russian_KOI8_R_close_env(struct SN_env * z); 10 | 11 | extern int russian_KOI8_R_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_romanian.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * romanian_UTF_8_create_env(void); 9 | extern void romanian_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int romanian_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/template/hpux: -------------------------------------------------------------------------------- 1 | # src/template/hpux 2 | 3 | CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" 4 | 5 | if test "$GCC" != yes ; then 6 | CC="$CC -Ae" 7 | CFLAGS="+O2" 8 | fi 9 | 10 | # Pick right test-and-set (TAS) code. We need out-of-line assembler 11 | # when not using gcc. 12 | case $host in 13 | hppa*-*-hpux*) 14 | if test "$GCC" != yes ; then 15 | need_tas=yes 16 | tas_file=hpux_hppa.s 17 | fi 18 | ;; 19 | esac 20 | -------------------------------------------------------------------------------- /aclocal.m4: -------------------------------------------------------------------------------- 1 | dnl aclocal.m4 2 | m4_include([config/ac_func_accept_argtypes.m4]) 3 | m4_include([config/acx_pthread.m4]) 4 | m4_include([config/c-compiler.m4]) 5 | m4_include([config/c-library.m4]) 6 | m4_include([config/docbook.m4]) 7 | m4_include([config/general.m4]) 8 | m4_include([config/libtool.m4]) 9 | m4_include([config/perl.m4]) 10 | m4_include([config/programs.m4]) 11 | m4_include([config/python.m4]) 12 | m4_include([config/tcl.m4]) 13 | -------------------------------------------------------------------------------- /src/bin/psql/help.h: -------------------------------------------------------------------------------- 1 | /* 2 | * psql - the PostgreSQL interactive terminal 3 | * 4 | * Copyright (c) 2000-2013, PostgreSQL Global Development Group 5 | * 6 | * src/bin/psql/help.h 7 | */ 8 | #ifndef HELP_H 9 | #define HELP_H 10 | 11 | void usage(void); 12 | 13 | void slashUsage(unsigned short int pager); 14 | 15 | void helpSQL(const char *topic, unsigned short int pager); 16 | 17 | void print_copyright(void); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/include/port/cygwin.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/cygwin.h */ 2 | 3 | #include 4 | 5 | /* 6 | * Check for b20.1 and disable AF_UNIX family socket support. 7 | */ 8 | #if CYGWIN_VERSION_DLL_MAJOR < 1001 9 | #undef HAVE_UNIX_SOCKETS 10 | #endif 11 | 12 | #ifdef BUILDING_DLL 13 | #define PGDLLIMPORT __declspec (dllexport) 14 | #else 15 | #define PGDLLIMPORT __declspec (dllimport) 16 | #endif 17 | 18 | #define PGDLLEXPORT 19 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_dutch.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * dutch_ISO_8859_1_create_env(void); 9 | extern void dutch_ISO_8859_1_close_env(struct SN_env * z); 10 | 11 | extern int dutch_ISO_8859_1_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_hungarian.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * hungarian_UTF_8_create_env(void); 9 | extern void hungarian_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int hungarian_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_norwegian.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * norwegian_UTF_8_create_env(void); 9 | extern void norwegian_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int norwegian_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_portuguese.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * portuguese_UTF_8_create_env(void); 9 | extern void portuguese_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int portuguese_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/pl/plpgsql/src/plpgsql--unpackaged--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/pl/plpgsql/src/plpgsql--unpackaged--1.0.sql */ 2 | 3 | ALTER EXTENSION plpgsql ADD PROCEDURAL LANGUAGE plpgsql; 4 | -- ALTER ADD LANGUAGE doesn't pick up the support functions, so we have to. 5 | ALTER EXTENSION plpgsql ADD FUNCTION plpgsql_call_handler(); 6 | ALTER EXTENSION plpgsql ADD FUNCTION plpgsql_inline_handler(internal); 7 | ALTER EXTENSION plpgsql ADD FUNCTION plpgsql_validator(oid); 8 | -------------------------------------------------------------------------------- /src/pl/plpython/expected/README: -------------------------------------------------------------------------------- 1 | Guide to alternative expected files: 2 | 3 | plpython_error_0.out Python 2.4 and older 4 | 5 | plpython_unicode.out server encoding != SQL_ASCII 6 | plpython_unicode_3.out server encoding == SQL_ASCII 7 | 8 | plpython_subtransaction_0.out Python 2.4 and older (without with statement) 9 | plpython_subtransaction_5.out Python 2.5 (without with statement) 10 | 11 | plpython_types_3.out Python 3.x 12 | -------------------------------------------------------------------------------- /src/tools/ifaddrs/README: -------------------------------------------------------------------------------- 1 | src/tools/ifaddrs/README 2 | 3 | test_ifaddrs 4 | ============ 5 | 6 | This program prints the addresses and netmasks of all the IPv4 and IPv6 7 | interfaces on the local machine. It is useful for testing that this 8 | functionality works on various platforms. If "samehost" and "samenet" 9 | in pg_hba.conf don't seem to work right, run this program to see what 10 | is happening. 11 | 12 | Usage: test_ifaddrs 13 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_danish.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * danish_ISO_8859_1_create_env(void); 9 | extern void danish_ISO_8859_1_close_env(struct SN_env * z); 10 | 11 | extern int danish_ISO_8859_1_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_french.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * french_ISO_8859_1_create_env(void); 9 | extern void french_ISO_8859_1_close_env(struct SN_env * z); 10 | 11 | extern int french_ISO_8859_1_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_german.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * german_ISO_8859_1_create_env(void); 9 | extern void german_ISO_8859_1_close_env(struct SN_env * z); 10 | 11 | extern int german_ISO_8859_1_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_porter.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * porter_ISO_8859_1_create_env(void); 9 | extern void porter_ISO_8859_1_close_env(struct SN_env * z); 10 | 11 | extern int porter_ISO_8859_1_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/compat_informix-test_informix.stdout: -------------------------------------------------------------------------------- 1 | doSQLprint: Error: duplicate key value violates unique constraint "test_pkey" on line 32 2 | INSERT: -239=duplicate key value violates unique constraint "test_pkey" on line 32 3 | doSQLprint: Error: more than one row returned by a subquery used as an expression on line 40 4 | SELECT: 0= 5 | 0 6 | 7 0 "test" 7 | 14 1 "a" 8 | DELETE: 100 9 | Exists: 0 10 | Does not exist: 100 11 | -------------------------------------------------------------------------------- /contrib/cube/cubedata.h: -------------------------------------------------------------------------------- 1 | /* contrib/cube/cubedata.h */ 2 | 3 | #define CUBE_MAX_DIM (100) 4 | 5 | typedef struct NDBOX 6 | { 7 | int32 vl_len_; /* varlena header (do not touch directly!) */ 8 | unsigned int dim; 9 | double x[1]; 10 | } NDBOX; 11 | 12 | #define DatumGetNDBOX(x) ((NDBOX*)DatumGetPointer(x)) 13 | #define PG_GETARG_NDBOX(x) DatumGetNDBOX( PG_DETOAST_DATUM(PG_GETARG_DATUM(x)) ) 14 | #define PG_RETURN_NDBOX(x) PG_RETURN_POINTER(x) 15 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_english.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * english_ISO_8859_1_create_env(void); 9 | extern void english_ISO_8859_1_close_env(struct SN_env * z); 10 | 11 | extern int english_ISO_8859_1_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_finnish.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * finnish_ISO_8859_1_create_env(void); 9 | extern void finnish_ISO_8859_1_close_env(struct SN_env * z); 10 | 11 | extern int finnish_ISO_8859_1_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_italian.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * italian_ISO_8859_1_create_env(void); 9 | extern void italian_ISO_8859_1_close_env(struct SN_env * z); 10 | 11 | extern int italian_ISO_8859_1_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_spanish.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * spanish_ISO_8859_1_create_env(void); 9 | extern void spanish_ISO_8859_1_close_env(struct SN_env * z); 10 | 11 | extern int spanish_ISO_8859_1_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_swedish.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * swedish_ISO_8859_1_create_env(void); 9 | extern void swedish_ISO_8859_1_close_env(struct SN_env * z); 10 | 11 | extern int swedish_ISO_8859_1_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/pl/plpython/plpythonu--unpackaged--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/pl/plpython/plpythonu--unpackaged--1.0.sql */ 2 | 3 | ALTER EXTENSION plpythonu ADD PROCEDURAL LANGUAGE plpythonu; 4 | -- ALTER ADD LANGUAGE doesn't pick up the support functions, so we have to. 5 | ALTER EXTENSION plpythonu ADD FUNCTION plpython_call_handler(); 6 | ALTER EXTENSION plpythonu ADD FUNCTION plpython_inline_handler(internal); 7 | ALTER EXTENSION plpythonu ADD FUNCTION plpython_validator(oid); 8 | -------------------------------------------------------------------------------- /src/port/rint.c: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * rint.c 4 | * rint() implementation 5 | * 6 | * IDENTIFICATION 7 | * src/port/rint.c 8 | * 9 | *------------------------------------------------------------------------- 10 | */ 11 | #include "c.h" 12 | 13 | #include 14 | 15 | double 16 | rint(double x) 17 | { 18 | return (x >= 0.0) ? floor(x + 0.5) : ceil(x - 0.5); 19 | } 20 | -------------------------------------------------------------------------------- /src/gtm/test/regress.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cat /dev/null>regress.log 4 | 5 | ./test_serialize | tee -a regress.log 2>&1 6 | 7 | ./stop.sh 8 | ./start_a.sh 9 | ./test_connect 2>&1 | tee -a regress.log 10 | ./test_node 2>&1 | tee -a regress.log 11 | ./test_txn 2>&1 | tee -a regress.log 12 | ./test_seq 2>&1 | tee -a regress.log 13 | 14 | echo "" 15 | echo "=========== SUMMARY ============" 16 | date 17 | echo -n "Assert: " 18 | grep -c ASSERT regress.log 19 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_2_romanian.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * romanian_ISO_8859_2_create_env(void); 9 | extern void romanian_ISO_8859_2_close_env(struct SN_env * z); 10 | 11 | extern int romanian_ISO_8859_2_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-describe.stdout: -------------------------------------------------------------------------------- 1 | 1 2 | field_name1 'id' 3 | field_name2 'id' 4 | sqlda1 'id' 5 | sqlda2 'id' 6 | sqlda3 'id' 7 | 2 8 | field_name1 't' 9 | field_name2 't' 10 | sqlda1 't' 11 | sqlda2 't' 12 | sqlda3 't' 13 | 1 14 | field_name1 'id' 15 | field_name2 'id' 16 | sqlda1 'id' 17 | sqlda2 'id' 18 | sqlda3 'id' 19 | 2 20 | field_name1 't' 21 | field_name2 't' 22 | sqlda1 't' 23 | sqlda2 't' 24 | sqlda3 't' 25 | -------------------------------------------------------------------------------- /src/timezone/data/factory: -------------------------------------------------------------------------------- 1 | #
 2 | # This file is in the public domain, so clarified as of
 3 | # 2009-05-17 by Arthur David Olson.
 4 | 
 5 | # For companies who don't want to put time zone specification in
 6 | # their installation procedures.  When users run date, they'll get the message.
 7 | # Also useful for the "comp.sources" version.
 8 | 
 9 | # Zone	NAME	GMTOFF	RULES	FORMAT
10 | Zone	Factory	0	- "Local time zone must be set--see zic manual page"
11 | 


--------------------------------------------------------------------------------
/contrib/pgcrypto/sql/crypt-des.sql:
--------------------------------------------------------------------------------
 1 | --
 2 | -- crypt() and gen_salt(): crypt-des
 3 | --
 4 | 
 5 | SELECT crypt('', 'NB');
 6 | 
 7 | SELECT crypt('foox', 'NB');
 8 | 
 9 | CREATE TABLE ctest (data text, res text, salt text);
10 | INSERT INTO ctest VALUES ('password', '', '');
11 | 
12 | UPDATE ctest SET salt = gen_salt('des');
13 | UPDATE ctest SET res = crypt(data, salt);
14 | SELECT res = crypt(data, res) AS "worked"
15 | FROM ctest;
16 | 
17 | DROP TABLE ctest;
18 | 


--------------------------------------------------------------------------------
/src/include/snowball/libstemmer/stem_ISO_8859_1_hungarian.h:
--------------------------------------------------------------------------------
 1 | 
 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */
 3 | 
 4 | #ifdef __cplusplus
 5 | extern "C" {
 6 | #endif
 7 | 
 8 | extern struct SN_env * hungarian_ISO_8859_1_create_env(void);
 9 | extern void hungarian_ISO_8859_1_close_env(struct SN_env * z);
10 | 
11 | extern int hungarian_ISO_8859_1_stem(struct SN_env * z);
12 | 
13 | #ifdef __cplusplus
14 | }
15 | #endif
16 | 
17 | 


--------------------------------------------------------------------------------
/src/include/snowball/libstemmer/stem_ISO_8859_1_norwegian.h:
--------------------------------------------------------------------------------
 1 | 
 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */
 3 | 
 4 | #ifdef __cplusplus
 5 | extern "C" {
 6 | #endif
 7 | 
 8 | extern struct SN_env * norwegian_ISO_8859_1_create_env(void);
 9 | extern void norwegian_ISO_8859_1_close_env(struct SN_env * z);
10 | 
11 | extern int norwegian_ISO_8859_1_stem(struct SN_env * z);
12 | 
13 | #ifdef __cplusplus
14 | }
15 | #endif
16 | 
17 | 


--------------------------------------------------------------------------------
/src/include/snowball/libstemmer/stem_ISO_8859_1_portuguese.h:
--------------------------------------------------------------------------------
 1 | 
 2 | /* This file was generated automatically by the Snowball to ANSI C compiler */
 3 | 
 4 | #ifdef __cplusplus
 5 | extern "C" {
 6 | #endif
 7 | 
 8 | extern struct SN_env * portuguese_ISO_8859_1_create_env(void);
 9 | extern void portuguese_ISO_8859_1_close_env(struct SN_env * z);
10 | 
11 | extern int portuguese_ISO_8859_1_stem(struct SN_env * z);
12 | 
13 | #ifdef __cplusplus
14 | }
15 | #endif
16 | 
17 | 


--------------------------------------------------------------------------------
/src/pl/plpython/plpython2u--unpackaged--1.0.sql:
--------------------------------------------------------------------------------
1 | /* src/pl/plpython/plpython2u--unpackaged--1.0.sql */
2 | 
3 | ALTER EXTENSION plpython2u ADD PROCEDURAL LANGUAGE plpython2u;
4 | -- ALTER ADD LANGUAGE doesn't pick up the support functions, so we have to.
5 | ALTER EXTENSION plpython2u ADD FUNCTION plpython2_call_handler();
6 | ALTER EXTENSION plpython2u ADD FUNCTION plpython2_inline_handler(internal);
7 | ALTER EXTENSION plpython2u ADD FUNCTION plpython2_validator(oid);
8 | 


--------------------------------------------------------------------------------
/src/pl/plpython/plpython3u--unpackaged--1.0.sql:
--------------------------------------------------------------------------------
1 | /* src/pl/plpython/plpython3u--unpackaged--1.0.sql */
2 | 
3 | ALTER EXTENSION plpython3u ADD PROCEDURAL LANGUAGE plpython3u;
4 | -- ALTER ADD LANGUAGE doesn't pick up the support functions, so we have to.
5 | ALTER EXTENSION plpython3u ADD FUNCTION plpython3_call_handler();
6 | ALTER EXTENSION plpython3u ADD FUNCTION plpython3_inline_handler(internal);
7 | ALTER EXTENSION plpython3u ADD FUNCTION plpython3_validator(oid);
8 | 


--------------------------------------------------------------------------------
/src/interfaces/ecpg/test/expected/preproc-array_of_struct.stdout:
--------------------------------------------------------------------------------
 1 | custs1:
 2 | name  - John Doe
 3 | phone - 12345
 4 | name  - Jane Doe
 5 | phone - 67890
 6 | 
 7 | custs2:
 8 | name  - John Doe
 9 | phone - 12345
10 | name  - Jane Doe
11 | phone - 67890
12 | 
13 | custs3:
14 | name  - John Doe
15 | phone - 12345
16 | name  - Jane Doe
17 | phone - 67890
18 | 
19 | custs4:
20 | name  - John Doe
21 | phone - 12345
22 | 
23 | name:
24 | name  - John Doe
25 | name  - Jane Doe
26 | 


--------------------------------------------------------------------------------
/src/test/isolation/specs/fk-contention.spec:
--------------------------------------------------------------------------------
 1 | setup
 2 | {
 3 |   CREATE TABLE foo (a int PRIMARY KEY, b text);
 4 |   CREATE TABLE bar (a int NOT NULL REFERENCES foo);
 5 |   INSERT INTO foo VALUES (42);
 6 | }
 7 | 
 8 | teardown
 9 | {
10 |   DROP TABLE foo, bar;
11 | }
12 | 
13 | session "s1"
14 | setup		{ BEGIN; }
15 | step "ins"	{ INSERT INTO bar VALUES (42); }
16 | step "com"	{ COMMIT; }
17 | 
18 | session "s2"
19 | step "upd"	{ UPDATE foo SET b = 'Hello World'; }
20 | 


--------------------------------------------------------------------------------
/contrib/pgcrypto/sql/crypt-md5.sql:
--------------------------------------------------------------------------------
 1 | --
 2 | -- crypt() and gen_salt(): md5
 3 | --
 4 | 
 5 | SELECT crypt('', '$1$Szzz0yzz');
 6 | 
 7 | SELECT crypt('foox', '$1$Szzz0yzz');
 8 | 
 9 | CREATE TABLE ctest (data text, res text, salt text);
10 | INSERT INTO ctest VALUES ('password', '', '');
11 | 
12 | UPDATE ctest SET salt = gen_salt('md5');
13 | UPDATE ctest SET res = crypt(data, salt);
14 | SELECT res = crypt(data, res) AS "worked"
15 | FROM ctest;
16 | 
17 | DROP TABLE ctest;
18 | 


--------------------------------------------------------------------------------
/contrib/seg/sort-segments.pl:
--------------------------------------------------------------------------------
 1 | #!/usr/bin/perl
 2 | 
 3 | # this script will sort any table with the segment data type in its last column
 4 | 
 5 | while (<>)
 6 | {
 7 | 	chomp;
 8 | 	push @rows, $_;
 9 | }
10 | 
11 | foreach (
12 | 	sort {
13 | 		@ar = split("\t", $a);
14 | 		$valA = pop @ar;
15 | 		$valA =~ s/[~<> ]+//g;
16 | 		@ar = split("\t", $b);
17 | 		$valB = pop @ar;
18 | 		$valB =~ s/[~<> ]+//g;
19 | 		$valA <=> $valB
20 | 	} @rows)
21 | {
22 | 	print "$_\n";
23 | }
24 | 


--------------------------------------------------------------------------------
/src/interfaces/ecpg/test/expected/compat_informix-describe.stdout:
--------------------------------------------------------------------------------
 1 | 1
 2 | 	field_name1 'id'
 3 | 	field_name2 'id'
 4 | 	sqlda1 'id'
 5 | 	sqlda2 'id'
 6 | 	sqlda3 'id'
 7 | 2
 8 | 	field_name1 't'
 9 | 	field_name2 't'
10 | 	sqlda1 't'
11 | 	sqlda2 't'
12 | 	sqlda3 't'
13 | 1
14 | 	field_name1 'id'
15 | 	field_name2 'id'
16 | 	sqlda1 'id'
17 | 	sqlda2 'id'
18 | 	sqlda3 'id'
19 | 2
20 | 	field_name1 't'
21 | 	field_name2 't'
22 | 	sqlda1 't'
23 | 	sqlda2 't'
24 | 	sqlda3 't'
25 | 


--------------------------------------------------------------------------------
/contrib/citext/Makefile:
--------------------------------------------------------------------------------
 1 | # contrib/citext/Makefile
 2 | 
 3 | MODULES = citext
 4 | 
 5 | EXTENSION = citext
 6 | DATA = citext--1.0.sql citext--unpackaged--1.0.sql
 7 | 
 8 | REGRESS = citext
 9 | 
10 | ifdef USE_PGXS
11 | PG_CONFIG = pg_config
12 | PGXS := $(shell $(PG_CONFIG) --pgxs)
13 | include $(PGXS)
14 | else
15 | subdir = contrib/citext
16 | top_builddir = ../..
17 | include $(top_builddir)/src/Makefile.global
18 | include $(top_srcdir)/contrib/contrib-global.mk
19 | endif
20 | 


--------------------------------------------------------------------------------
/src/test/Makefile:
--------------------------------------------------------------------------------
 1 | #-------------------------------------------------------------------------
 2 | #
 3 | # Makefile for src/test
 4 | #
 5 | # Copyright (c) 1994, Regents of the University of California
 6 | #
 7 | # src/test/Makefile
 8 | #
 9 | #-------------------------------------------------------------------------
10 | 
11 | subdir = src/test
12 | top_builddir = ../..
13 | include $(top_builddir)/src/Makefile.global
14 | 
15 | SUBDIRS = regress isolation
16 | 
17 | $(recurse)
18 | 


--------------------------------------------------------------------------------
/src/test/locale/sort-test.py:
--------------------------------------------------------------------------------
 1 | #! /usr/bin/env python
 2 | 
 3 | import sys, string, locale
 4 | locale.setlocale(locale.LC_ALL, "")
 5 | 
 6 | if len(sys.argv) <> 2:
 7 |    sys.stderr.write("Usage: sort.py filename\n")
 8 |    sys.exit(1)
 9 | 
10 | infile = open(sys.argv[1], 'r')
11 | list = infile.readlines()
12 | infile.close()
13 | 
14 | for i in range(0, len(list)):
15 |    list[i] = list[i][:-1] # chop!
16 | 
17 | list.sort(locale.strcoll)
18 | print string.join(list, '\n')
19 | 


--------------------------------------------------------------------------------
/contrib/start-scripts/osx/install.sh:
--------------------------------------------------------------------------------
 1 | sudo sh -c 'echo "POSTGRESQL=-YES-" >> /etc/hostconfig'
 2 | sudo mkdir /Library/StartupItems/PostgreSQL
 3 | sudo cp PostgreSQL /Library/StartupItems/PostgreSQL
 4 | sudo cp StartupParameters.plist /Library/StartupItems/PostgreSQL
 5 | if [ -e /Library/StartupItems/PostgreSQL/PostgreSQL ]
 6 | then
 7 |   echo "Startup Item Installed Successfully . . . "
 8 |   echo "Starting PostgreSQL Server . . . "
 9 |   SystemStarter restart PostgreSQL
10 | fi
11 | 


--------------------------------------------------------------------------------
/src/pgxc/Makefile:
--------------------------------------------------------------------------------
 1 | #----------------------------------------------------------------------------
 2 | #
 3 | # Postgres-XC documentation tool makefile
 4 | #
 5 | # Copyright (c) 2010-2012 Postgres-XC Development Group
 6 | #
 7 | # doc-xc/Makefile
 8 | #
 9 | #----------------------------------------------------------------------------
10 | 
11 | subdir = src/pgxc
12 | top_builddir = ../..
13 | include $(top_builddir)/src/Makefile.global
14 | 
15 | SUBDIRS = tools
16 | 
17 | $(recurse)
18 | 


--------------------------------------------------------------------------------
/src/pl/plpython/plpy_plpymodule.h:
--------------------------------------------------------------------------------
 1 | /*
 2 |  * src/pl/plpython/plpy_plpymodule.h
 3 |  */
 4 | 
 5 | #ifndef PLPY_PLPYMODULE_H
 6 | #define PLPY_PLPYMODULE_H
 7 | 
 8 | #include "utils/hsearch.h"
 9 | 
10 | /* A hash table mapping sqlstates to exceptions, for speedy lookup */
11 | extern HTAB *PLy_spi_exceptions;
12 | 
13 | 
14 | #if PY_MAJOR_VERSION >= 3
15 | PyMODINIT_FUNC PyInit_plpy(void);
16 | #endif
17 | extern void PLy_init_plpy(void);
18 | 
19 | #endif   /* PLPY_PLPYMODULE_H */
20 | 


--------------------------------------------------------------------------------
/src/template/darwin:
--------------------------------------------------------------------------------
 1 | # src/template/darwin
 2 | 
 3 | # Select appropriate semaphore support.  Darwin 6.0 (Mac OS X 10.2) and up
 4 | # support System V semaphores; before that we have to use POSIX semaphores,
 5 | # which are less good for our purposes because they eat a file descriptor
 6 | # per backend per max_connection slot.
 7 | case $host_os in
 8 |   darwin[015].*)
 9 |     USE_NAMED_POSIX_SEMAPHORES=1
10 |     ;;
11 |   *)
12 |     USE_SYSV_SEMAPHORES=1
13 |     ;;
14 | esac
15 | 


--------------------------------------------------------------------------------
/src/test/locale/Makefile:
--------------------------------------------------------------------------------
 1 | # src/test/locale/Makefile
 2 | 
 3 | subdir = src/test/locale
 4 | top_builddir = ../../..
 5 | include $(top_builddir)/src/Makefile.global
 6 | 
 7 | 
 8 | PROGS = test-ctype
 9 | DIRS = de_DE.ISO8859-1 gr_GR.ISO8859-7 koi8-r koi8-to-win1251
10 | 
11 | all: $(PROGS)
12 | 
13 | clean:
14 | 	rm -f $(PROGS)
15 | 	for d in $(DIRS); do \
16 | 		$(MAKE) -C $$d clean || exit; \
17 | 	done
18 | 
19 | check-%: all
20 | 	@$(MAKE) -C `echo $@ | sed 's/^check-//'` test
21 | 


--------------------------------------------------------------------------------
/contrib/pgcrypto/sql/crypt-xdes.sql:
--------------------------------------------------------------------------------
 1 | --
 2 | -- crypt() and gen_salt(): extended des
 3 | --
 4 | 
 5 | SELECT crypt('', '_J9..j2zz');
 6 | 
 7 | SELECT crypt('foox', '_J9..j2zz');
 8 | 
 9 | CREATE TABLE ctest (data text, res text, salt text);
10 | INSERT INTO ctest VALUES ('password', '', '');
11 | 
12 | UPDATE ctest SET salt = gen_salt('xdes', 1001);
13 | UPDATE ctest SET res = crypt(data, salt);
14 | SELECT res = crypt(data, res) AS "worked"
15 | FROM ctest;
16 | 
17 | DROP TABLE ctest;
18 | 


--------------------------------------------------------------------------------
/contrib/pgstattuple/pgstattuple--1.0--1.1.sql:
--------------------------------------------------------------------------------
 1 | /* contrib/pgstattuple/pgstattuple--1.0--1.1.sql */
 2 | 
 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION
 4 | \echo Use "ALTER EXTENSION pgstattuple UPDATE TO '1.1'" to load this file. \quit
 5 | 
 6 | CREATE FUNCTION pgstatginindex(IN relname regclass,
 7 |     OUT version INT4,
 8 |     OUT pending_pages INT4,
 9 |     OUT pending_tuples BIGINT)
10 | AS 'MODULE_PATHNAME', 'pgstatginindex'
11 | LANGUAGE C STRICT;
12 | 


--------------------------------------------------------------------------------
/src/makefiles/Makefile.irix:
--------------------------------------------------------------------------------
 1 | AROPT = crs
 2 | rpath = -Wl,-rpath,'$(rpathdir)'
 3 | 
 4 | DLSUFFIX = .so
 5 | # PIC is default
 6 | CFLAGS_SL =
 7 | 
 8 | override CPPFLAGS += -U_NO_XOPEN4
 9 | 
10 | ifneq ($(GCC), yes)
11 |   CFLAGS += -woff 1164,1171,1185,1195,1552
12 | endif
13 | LDFLAGS += -Wl,-woff,15 -Wl,-woff,84
14 | 
15 | # Rule for building a shared library from a single .o file
16 | %.so: %.o
17 | 	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $<
18 | 
19 | sqlmansect = 5sql
20 | 


--------------------------------------------------------------------------------
/contrib/tsearch2/Makefile:
--------------------------------------------------------------------------------
 1 | # contrib/tsearch2/Makefile
 2 | 
 3 | MODULES = tsearch2
 4 | 
 5 | EXTENSION = tsearch2
 6 | DATA = tsearch2--1.0.sql tsearch2--unpackaged--1.0.sql
 7 | 
 8 | REGRESS = tsearch2
 9 | 
10 | ifdef USE_PGXS
11 | PG_CONFIG = pg_config
12 | PGXS := $(shell $(PG_CONFIG) --pgxs)
13 | include $(PGXS)
14 | else
15 | subdir = contrib/tsearch2
16 | top_builddir = ../..
17 | include $(top_builddir)/src/Makefile.global
18 | include $(top_srcdir)/contrib/contrib-global.mk
19 | endif
20 | 


--------------------------------------------------------------------------------
/src/backend/main/Makefile:
--------------------------------------------------------------------------------
 1 | #-------------------------------------------------------------------------
 2 | #
 3 | # Makefile--
 4 | #    Makefile for main
 5 | #
 6 | # IDENTIFICATION
 7 | #    src/backend/main/Makefile
 8 | #
 9 | #-------------------------------------------------------------------------
10 | 
11 | subdir = src/backend/main
12 | top_builddir = ../../..
13 | include $(top_builddir)/src/Makefile.global
14 | 
15 | OBJS = main.o
16 | 
17 | include $(top_srcdir)/src/backend/common.mk
18 | 


--------------------------------------------------------------------------------
/contrib/pg_upgrade_support/Makefile:
--------------------------------------------------------------------------------
 1 | # contrib/pg_upgrade_support/Makefile
 2 | 
 3 | PGFILEDESC = "pg_upgrade_support - server-side functions for pg_upgrade"
 4 | 
 5 | MODULES = pg_upgrade_support
 6 | 
 7 | ifdef USE_PGXS
 8 | PG_CONFIG = pg_config
 9 | PGXS := $(shell $(PG_CONFIG) --pgxs)
10 | include $(PGXS)
11 | else
12 | subdir = contrib/pg_upgrade_support
13 | top_builddir = ../..
14 | include $(top_builddir)/src/Makefile.global
15 | include $(top_srcdir)/contrib/contrib-global.mk
16 | endif
17 | 


--------------------------------------------------------------------------------
/contrib/pg_xlogdump/rmgrdesc.h:
--------------------------------------------------------------------------------
 1 | /*
 2 |  * rmgrdesc.h
 3 |  *
 4 |  * pg_xlogdump resource managers declaration
 5 |  *
 6 |  * contrib/pg_xlogdump/rmgrdesc.h
 7 |  */
 8 | #ifndef RMGRDESC_H
 9 | #define RMGRDESC_H
10 | 
11 | #include "lib/stringinfo.h"
12 | 
13 | typedef struct RmgrDescData
14 | {
15 | 	const char *rm_name;
16 | 	void		(*rm_desc) (StringInfo buf, uint8 xl_info, char *rec);
17 | } RmgrDescData;
18 | 
19 | extern const RmgrDescData RmgrDescTable[];
20 | 
21 | #endif   /* RMGRDESC_H */
22 | 


--------------------------------------------------------------------------------
/contrib/pgcrypto/sql/init.sql:
--------------------------------------------------------------------------------
 1 | --
 2 | -- init pgcrypto
 3 | --
 4 | 
 5 | CREATE EXTENSION pgcrypto;
 6 | 
 7 | -- ensure consistent test output regardless of the default bytea format
 8 | SET bytea_output TO escape;
 9 | 
10 | -- check for encoding fn's
11 | SELECT encode('foo', 'hex');
12 | SELECT decode('666f6f', 'hex');
13 | 
14 | -- check error handling
15 | select gen_salt('foo');
16 | select digest('foo', 'foo');
17 | select hmac('foo', 'foo', 'foo');
18 | select encrypt('foo', 'foo', 'foo');
19 | 


--------------------------------------------------------------------------------
/contrib/adminpack/Makefile:
--------------------------------------------------------------------------------
 1 | # contrib/adminpack/Makefile
 2 | 
 3 | MODULE_big = adminpack
 4 | OBJS = adminpack.o
 5 | PG_CPPFLAGS = -I$(libpq_srcdir)
 6 | 
 7 | EXTENSION = adminpack
 8 | DATA = adminpack--1.0.sql
 9 | 
10 | ifdef USE_PGXS
11 | PG_CONFIG = pg_config
12 | PGXS := $(shell $(PG_CONFIG) --pgxs)
13 | include $(PGXS)
14 | else
15 | subdir = contrib/adminpack
16 | top_builddir = ../..
17 | include $(top_builddir)/src/Makefile.global
18 | include $(top_srcdir)/contrib/contrib-global.mk
19 | endif
20 | 


--------------------------------------------------------------------------------
/contrib/pg_standby/Makefile:
--------------------------------------------------------------------------------
 1 | # contrib/pg_standby/Makefile
 2 | 
 3 | PGFILEDESC = "pg_standby - supports creation of a warm standby"
 4 | PGAPPICON = win32
 5 | 
 6 | PROGRAM = pg_standby
 7 | OBJS	= pg_standby.o
 8 | 
 9 | ifdef USE_PGXS
10 | PG_CONFIG = pg_config
11 | PGXS := $(shell $(PG_CONFIG) --pgxs)
12 | include $(PGXS)
13 | else
14 | subdir = contrib/pg_standby
15 | top_builddir = ../..
16 | include $(top_builddir)/src/Makefile.global
17 | include $(top_srcdir)/contrib/contrib-global.mk
18 | endif
19 | 


--------------------------------------------------------------------------------
/contrib/btree_gin/sql/oid.sql:
--------------------------------------------------------------------------------
 1 | set enable_seqscan=off;
 2 | 
 3 | CREATE TABLE test_oid (
 4 | 	i oid
 5 | );
 6 | 
 7 | INSERT INTO test_oid VALUES (0),(1),(2),(3),(4),(5);
 8 | 
 9 | CREATE INDEX idx_oid ON test_oid USING gin (i);
10 | 
11 | SELECT * FROM test_oid WHERE i<3::oid ORDER BY i;
12 | SELECT * FROM test_oid WHERE i<=3::oid ORDER BY i;
13 | SELECT * FROM test_oid WHERE i=3::oid ORDER BY i;
14 | SELECT * FROM test_oid WHERE i>=3::oid ORDER BY i;
15 | SELECT * FROM test_oid WHERE i>3::oid ORDER BY i;
16 | 


--------------------------------------------------------------------------------
/src/backend/foreign/Makefile:
--------------------------------------------------------------------------------
 1 | #-------------------------------------------------------------------------
 2 | #
 3 | # Makefile--
 4 | #    Makefile for foreign
 5 | #
 6 | # IDENTIFICATION
 7 | #    src/backend/foreign/Makefile
 8 | #
 9 | #-------------------------------------------------------------------------
10 | 
11 | subdir = src/backend/foreign
12 | top_builddir = ../../..
13 | include $(top_builddir)/src/Makefile.global
14 | 
15 | OBJS= foreign.o
16 | 
17 | include $(top_srcdir)/src/backend/common.mk
18 | 


--------------------------------------------------------------------------------
/contrib/dblink/dblink--1.0--1.1.sql:
--------------------------------------------------------------------------------
 1 | /* contrib/dblink/dblink--1.0--1.1.sql */
 2 | 
 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION
 4 | \echo Use "ALTER EXTENSION dblink UPDATE TO '1.1'" to load this file. \quit
 5 | 
 6 | CREATE FUNCTION dblink_fdw_validator(
 7 |     options text[],
 8 |     catalog oid
 9 | )
10 | RETURNS void
11 | AS 'MODULE_PATHNAME', 'dblink_fdw_validator'
12 | LANGUAGE C STRICT;
13 | 
14 | CREATE FOREIGN DATA WRAPPER dblink_fdw VALIDATOR dblink_fdw_validator;
15 | 


--------------------------------------------------------------------------------
/contrib/pg_test_timing/Makefile:
--------------------------------------------------------------------------------
 1 | # contrib/pg_test_timing/Makefile
 2 | 
 3 | PGFILEDESC = "pg_test_timing - test timing overhead"
 4 | PGAPPICON = win32
 5 | 
 6 | PROGRAM  = pg_test_timing
 7 | OBJS = pg_test_timing.o
 8 | 
 9 | ifdef USE_PGXS
10 | PG_CONFIG = pg_config
11 | PGXS := $(shell $(PG_CONFIG) --pgxs)
12 | include $(PGXS)
13 | else
14 | subdir = contrib/pg_test_timing
15 | top_builddir = ../..
16 | include $(top_builddir)/src/Makefile.global
17 | include $(top_srcdir)/contrib/contrib-global.mk
18 | endif
19 | 


--------------------------------------------------------------------------------
/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile:
--------------------------------------------------------------------------------
 1 | #-------------------------------------------------------------------------
 2 | #
 3 | # src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile
 4 | #
 5 | #-------------------------------------------------------------------------
 6 | subdir = src/backend/utils/mb/conversion_procs/utf8_and_gbk
 7 | top_builddir = ../../../../../..
 8 | include $(top_builddir)/src/Makefile.global
 9 | 
10 | NAME		= utf8_and_gbk
11 | 
12 | include $(srcdir)/../proc.mk
13 | 


--------------------------------------------------------------------------------
/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile:
--------------------------------------------------------------------------------
 1 | #-------------------------------------------------------------------------
 2 | #
 3 | # src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile
 4 | #
 5 | #-------------------------------------------------------------------------
 6 | subdir = src/backend/utils/mb/conversion_procs/utf8_and_uhc
 7 | top_builddir = ../../../../../..
 8 | include $(top_builddir)/src/Makefile.global
 9 | 
10 | NAME		= utf8_and_uhc
11 | 
12 | include $(srcdir)/../proc.mk
13 | 


--------------------------------------------------------------------------------
/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile:
--------------------------------------------------------------------------------
 1 | #-------------------------------------------------------------------------
 2 | #
 3 | # src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile
 4 | #
 5 | #-------------------------------------------------------------------------
 6 | subdir = src/backend/utils/mb/conversion_procs/utf8_and_win
 7 | top_builddir = ../../../../../..
 8 | include $(top_builddir)/src/Makefile.global
 9 | 
10 | NAME		= utf8_and_win
11 | 
12 | include $(srcdir)/../proc.mk
13 | 


--------------------------------------------------------------------------------
/src/bin/scripts/nls.mk:
--------------------------------------------------------------------------------
 1 | # src/bin/scripts/nls.mk
 2 | CATALOG_NAME     = pgscripts
 3 | AVAIL_LANGUAGES  = cs de es fr it ja ko pl pt_BR ro ru sv ta tr zh_CN zh_TW
 4 | GETTEXT_FILES    = createdb.c createlang.c createuser.c \
 5 |                    dropdb.c droplang.c dropuser.c \
 6 |                    clusterdb.c vacuumdb.c reindexdb.c \
 7 |                    pg_isready.c \
 8 |                    common.c \
 9 |                    ../../common/fe_memutils.c
10 | GETTEXT_TRIGGERS = simple_prompt yesno_prompt
11 | 


--------------------------------------------------------------------------------
/src/test/examples/Makefile:
--------------------------------------------------------------------------------
 1 | #
 2 | # Makefile for example programs
 3 | #
 4 | 
 5 | subdir = src/test/examples
 6 | top_builddir = ../../..
 7 | include $(top_builddir)/src/Makefile.global
 8 | 
 9 | ifeq ($(PORTNAME), win32)
10 | LDLIBS += -lws2_32
11 | endif
12 | 
13 | override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
14 | override LDLIBS := $(libpq_pgport) $(LDLIBS)
15 | 
16 | 
17 | PROGS = testlibpq testlibpq2 testlibpq3 testlibpq4 testlo testlo64
18 | 
19 | all: $(PROGS)
20 | 
21 | clean:
22 | 	rm -f $(PROGS)
23 | 


--------------------------------------------------------------------------------
/contrib/dict_int/Makefile:
--------------------------------------------------------------------------------
 1 | # contrib/dict_int/Makefile
 2 | 
 3 | MODULE_big = dict_int
 4 | OBJS = dict_int.o
 5 | 
 6 | EXTENSION = dict_int
 7 | DATA = dict_int--1.0.sql dict_int--unpackaged--1.0.sql
 8 | 
 9 | REGRESS = dict_int
10 | 
11 | ifdef USE_PGXS
12 | PG_CONFIG = pg_config
13 | PGXS := $(shell $(PG_CONFIG) --pgxs)
14 | include $(PGXS)
15 | else
16 | subdir = contrib/dict_int
17 | top_builddir = ../..
18 | include $(top_builddir)/src/Makefile.global
19 | include $(top_srcdir)/contrib/contrib-global.mk
20 | endif
21 | 


--------------------------------------------------------------------------------
/contrib/pg_stat_statements/pg_stat_statements--unpackaged--1.0.sql:
--------------------------------------------------------------------------------
1 | /* contrib/pg_stat_statements/pg_stat_statements--unpackaged--1.0.sql */
2 | 
3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION
4 | \echo Use "CREATE EXTENSION pg_stat_statements" to load this file. \quit
5 | 
6 | ALTER EXTENSION pg_stat_statements ADD function pg_stat_statements_reset();
7 | ALTER EXTENSION pg_stat_statements ADD function pg_stat_statements();
8 | ALTER EXTENSION pg_stat_statements ADD view pg_stat_statements;
9 | 


--------------------------------------------------------------------------------
/contrib/pg_test_fsync/Makefile:
--------------------------------------------------------------------------------
 1 | # contrib/pg_test_fsync/Makefile
 2 | 
 3 | PGFILEDESC = "pg_test_fsync - test various disk sync methods"
 4 | PGAPPICON = win32
 5 | 
 6 | PROGRAM  = pg_test_fsync
 7 | OBJS = pg_test_fsync.o
 8 | 
 9 | ifdef USE_PGXS
10 | PG_CONFIG = pg_config
11 | PGXS := $(shell $(PG_CONFIG) --pgxs)
12 | include $(PGXS)
13 | else
14 | subdir = contrib/pg_test_fsync
15 | top_builddir = ../..
16 | include $(top_builddir)/src/Makefile.global
17 | include $(top_srcdir)/contrib/contrib-global.mk
18 | endif
19 | 


--------------------------------------------------------------------------------
/contrib/pgcrypto/sql/crypt-blowfish.sql:
--------------------------------------------------------------------------------
 1 | --
 2 | -- crypt() and gen_salt(): bcrypt
 3 | --
 4 | 
 5 | SELECT crypt('', '$2a$06$RQiOJ.3ELirrXwxIZY8q0O');
 6 | 
 7 | SELECT crypt('foox', '$2a$06$RQiOJ.3ELirrXwxIZY8q0O');
 8 | 
 9 | CREATE TABLE ctest (data text, res text, salt text);
10 | INSERT INTO ctest VALUES ('password', '', '');
11 | 
12 | UPDATE ctest SET salt = gen_salt('bf', 8);
13 | UPDATE ctest SET res = crypt(data, salt);
14 | SELECT res = crypt(data, res) AS "worked"
15 | FROM ctest;
16 | 
17 | DROP TABLE ctest;
18 | 


--------------------------------------------------------------------------------
/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile:
--------------------------------------------------------------------------------
 1 | #-------------------------------------------------------------------------
 2 | #
 3 | # src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile
 4 | #
 5 | #-------------------------------------------------------------------------
 6 | subdir = src/backend/utils/mb/conversion_procs/ascii_and_mic
 7 | top_builddir = ../../../../../..
 8 | include $(top_builddir)/src/Makefile.global
 9 | 
10 | NAME		= ascii_and_mic
11 | 
12 | include $(srcdir)/../proc.mk
13 | 


--------------------------------------------------------------------------------
/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile:
--------------------------------------------------------------------------------
 1 | #-------------------------------------------------------------------------
 2 | #
 3 | # src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile
 4 | #
 5 | #-------------------------------------------------------------------------
 6 | subdir = src/backend/utils/mb/conversion_procs/euc_cn_and_mic
 7 | top_builddir = ../../../../../..
 8 | include $(top_builddir)/src/Makefile.global
 9 | 
10 | NAME		= euc_cn_and_mic
11 | 
12 | include $(srcdir)/../proc.mk
13 | 


--------------------------------------------------------------------------------
/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile:
--------------------------------------------------------------------------------
 1 | #-------------------------------------------------------------------------
 2 | #
 3 | # src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile
 4 | #
 5 | #-------------------------------------------------------------------------
 6 | subdir = src/backend/utils/mb/conversion_procs/euc_kr_and_mic
 7 | top_builddir = ../../../../../..
 8 | include $(top_builddir)/src/Makefile.global
 9 | 
10 | NAME		= euc_kr_and_mic
11 | 
12 | include $(srcdir)/../proc.mk
13 | 


--------------------------------------------------------------------------------
/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile:
--------------------------------------------------------------------------------
 1 | #-------------------------------------------------------------------------
 2 | #
 3 | # src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile
 4 | #
 5 | #-------------------------------------------------------------------------
 6 | subdir = src/backend/utils/mb/conversion_procs/latin_and_mic
 7 | top_builddir = ../../../../../..
 8 | include $(top_builddir)/src/Makefile.global
 9 | 
10 | NAME		= latin_and_mic
11 | 
12 | include $(srcdir)/../proc.mk
13 | 


--------------------------------------------------------------------------------
/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile:
--------------------------------------------------------------------------------
 1 | #-------------------------------------------------------------------------
 2 | #
 3 | # src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile
 4 | #
 5 | #-------------------------------------------------------------------------
 6 | subdir = src/backend/utils/mb/conversion_procs/utf8_and_ascii
 7 | top_builddir = ../../../../../..
 8 | include $(top_builddir)/src/Makefile.global
 9 | 
10 | NAME		= utf8_and_ascii
11 | 
12 | include $(srcdir)/../proc.mk
13 | 


--------------------------------------------------------------------------------
/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile:
--------------------------------------------------------------------------------
 1 | #-------------------------------------------------------------------------
 2 | #
 3 | # src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile
 4 | #
 5 | #-------------------------------------------------------------------------
 6 | subdir = src/backend/utils/mb/conversion_procs/utf8_and_big5
 7 | top_builddir = ../../../../../..
 8 | include $(top_builddir)/src/Makefile.global
 9 | 
10 | NAME		= utf8_and_big5
11 | 
12 | include $(srcdir)/../proc.mk
13 | 


--------------------------------------------------------------------------------
/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile:
--------------------------------------------------------------------------------
 1 | #-------------------------------------------------------------------------
 2 | #
 3 | # src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile
 4 | #
 5 | #-------------------------------------------------------------------------
 6 | subdir = src/backend/utils/mb/conversion_procs/utf8_and_johab
 7 | top_builddir = ../../../../../..
 8 | include $(top_builddir)/src/Makefile.global
 9 | 
10 | NAME		= utf8_and_johab
11 | 
12 | include $(srcdir)/../proc.mk
13 | 


--------------------------------------------------------------------------------
/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile:
--------------------------------------------------------------------------------
 1 | #-------------------------------------------------------------------------
 2 | #
 3 | # src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile
 4 | #
 5 | #-------------------------------------------------------------------------
 6 | subdir = src/backend/utils/mb/conversion_procs/utf8_and_sjis
 7 | top_builddir = ../../../../../..
 8 | include $(top_builddir)/src/Makefile.global
 9 | 
10 | NAME		= utf8_and_sjis
11 | 
12 | include $(srcdir)/../proc.mk
13 | 


--------------------------------------------------------------------------------
/src/bin/psql/large_obj.h:
--------------------------------------------------------------------------------
 1 | /*
 2 |  * psql - the PostgreSQL interactive terminal
 3 |  *
 4 |  * Copyright (c) 2000-2013, PostgreSQL Global Development Group
 5 |  *
 6 |  * src/bin/psql/large_obj.h
 7 |  */
 8 | #ifndef LARGE_OBJ_H
 9 | #define LARGE_OBJ_H
10 | 
11 | bool		do_lo_export(const char *loid_arg, const char *filename_arg);
12 | bool		do_lo_import(const char *filename_arg, const char *comment_arg);
13 | bool		do_lo_unlink(const char *loid_arg);
14 | bool		do_lo_list(void);
15 | 
16 | #endif   /* LARGE_OBJ_H */
17 | 


--------------------------------------------------------------------------------
/src/pl/plperl/README:
--------------------------------------------------------------------------------
 1 | src/pl/plperl/README
 2 | 
 3 | PL/Perl allows you to write PostgreSQL functions and procedures in
 4 | Perl.  To include PL/Perl in the build use './configure --with-perl'.
 5 | To build from this directory use 'gmake all; gmake install'.  libperl
 6 | must have been built as a shared library, which is usually not the
 7 | case in standard installations.
 8 | 
 9 | Consult the PostgreSQL User's Guide and the INSTALL file in the
10 | top-level directory of the source distribution for more information.
11 | 


--------------------------------------------------------------------------------
/contrib/btree_gin/sql/int2.sql:
--------------------------------------------------------------------------------
 1 | set enable_seqscan=off;
 2 | 
 3 | CREATE TABLE test_int2 (
 4 | 	i int2
 5 | );
 6 | 
 7 | INSERT INTO test_int2 VALUES (-2),(-1),(0),(1),(2),(3);
 8 | 
 9 | CREATE INDEX idx_int2 ON test_int2 USING gin (i);
10 | 
11 | SELECT * FROM test_int2 WHERE i<1::int2 ORDER BY i;
12 | SELECT * FROM test_int2 WHERE i<=1::int2 ORDER BY i;
13 | SELECT * FROM test_int2 WHERE i=1::int2 ORDER BY i;
14 | SELECT * FROM test_int2 WHERE i>=1::int2 ORDER BY i;
15 | SELECT * FROM test_int2 WHERE i>1::int2 ORDER BY i;
16 | 


--------------------------------------------------------------------------------
/contrib/btree_gin/sql/int4.sql:
--------------------------------------------------------------------------------
 1 | set enable_seqscan=off;
 2 | 
 3 | CREATE TABLE test_int4 (
 4 | 	i int4
 5 | );
 6 | 
 7 | INSERT INTO test_int4 VALUES (-2),(-1),(0),(1),(2),(3);
 8 | 
 9 | CREATE INDEX idx_int4 ON test_int4 USING gin (i);
10 | 
11 | SELECT * FROM test_int4 WHERE i<1::int4 ORDER BY i;
12 | SELECT * FROM test_int4 WHERE i<=1::int4 ORDER BY i;
13 | SELECT * FROM test_int4 WHERE i=1::int4 ORDER BY i;
14 | SELECT * FROM test_int4 WHERE i>=1::int4 ORDER BY i;
15 | SELECT * FROM test_int4 WHERE i>1::int4 ORDER BY i;
16 | 


--------------------------------------------------------------------------------