├── src ├── template │ ├── openbsd │ ├── netbsd │ ├── freebsd │ ├── win32 │ └── cygwin ├── backend │ ├── port │ │ ├── tas │ │ │ └── dummy.s │ │ └── .gitignore │ ├── utils │ │ ├── misc │ │ │ └── .gitignore │ │ ├── sort │ │ │ └── .gitignore │ │ ├── .gitignore │ │ └── mb │ │ │ └── conversion_procs │ │ │ ├── README.euc_jp │ │ │ └── proc.mk │ ├── snowball │ │ └── .gitignore │ ├── bootstrap │ │ └── .gitignore │ ├── parser │ │ └── .gitignore │ ├── .gitignore │ ├── storage │ │ ├── lmgr │ │ │ └── .gitignore │ │ └── Makefile │ ├── replication │ │ └── .gitignore │ ├── tsearch │ │ └── dicts │ │ │ ├── synonym_sample.syn │ │ │ ├── ispell_sample.dict │ │ │ ├── hunspell_sample_long.dict │ │ │ ├── hunspell_sample_num.dict │ │ │ └── hunspell_sample.affix │ ├── catalog │ │ └── .gitignore │ ├── optimizer │ │ └── Makefile │ └── access │ │ └── Makefile ├── common │ ├── .gitignore │ └── unicode │ │ └── .gitignore ├── fe_utils │ └── .gitignore ├── include │ ├── parser │ │ └── .gitignore │ ├── storage │ │ └── .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 │ │ ├── darwin.h │ │ ├── cygwin.h │ │ └── aix.h │ ├── catalog │ │ └── .gitignore │ ├── .gitignore │ ├── utils │ │ └── .gitignore │ ├── pg_config_ext.h.in │ ├── pg_config_ext.h.win32 │ ├── pg_trace.h │ ├── common │ │ └── username.h │ ├── lib │ │ └── knapsack.h │ └── snowball │ │ └── libstemmer │ │ ├── stem_UTF_8_dutch.h │ │ ├── stem_UTF_8_irish.h │ │ ├── stem_UTF_8_tamil.h │ │ ├── stem_UTF_8_arabic.h │ │ ├── stem_UTF_8_danish.h │ │ ├── stem_UTF_8_french.h │ │ ├── stem_UTF_8_german.h │ │ ├── stem_UTF_8_nepali.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_hungarian.h │ │ ├── stem_UTF_8_norwegian.h │ │ ├── stem_UTF_8_romanian.h │ │ ├── stem_ISO_8859_1_dutch.h │ │ ├── stem_ISO_8859_1_irish.h │ │ ├── stem_UTF_8_indonesian.h │ │ ├── stem_UTF_8_lithuanian.h │ │ └── stem_UTF_8_portuguese.h ├── test │ ├── locale │ │ ├── .gitignore │ │ ├── koi8-r │ │ │ ├── Makefile │ │ │ ├── test-koi8.sql.in │ │ │ ├── test-koi8-sort.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.sql.in │ │ │ ├── test-de-sort.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 │ │ │ ├── test-de-upper.sql.in │ │ │ └── README │ │ ├── gr_GR.ISO8859-7 │ │ │ ├── Makefile │ │ │ ├── test-gr.sql.in │ │ │ ├── test-gr-sort.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-text.sql.out │ │ │ │ ├── test-koi8-select.sql.out │ │ │ │ └── test-koi8-varchar.sql.out │ │ │ └── README │ │ └── sort-test.pl │ ├── thread │ │ └── .gitignore │ ├── modules │ │ ├── snapshot_too_old │ │ │ ├── .gitignore │ │ │ └── sto.conf │ │ ├── test_ddl_deparse │ │ │ ├── expected │ │ │ │ ├── alter_extension.out │ │ │ │ ├── create_function.out │ │ │ │ ├── create_operator.out │ │ │ │ ├── create_extension.out │ │ │ │ ├── create_conversion.out │ │ │ │ ├── defprivs.out │ │ │ │ ├── create_sequence_1.out │ │ │ │ ├── alter_type_enum.out │ │ │ │ ├── matviews.out │ │ │ │ ├── create_domain.out │ │ │ │ └── alter_ts_config.out │ │ │ ├── .gitignore │ │ │ ├── sql │ │ │ │ ├── create_extension.sql │ │ │ │ ├── defprivs.sql │ │ │ │ ├── alter_type_enum.sql │ │ │ │ ├── create_conversion.sql │ │ │ │ ├── create_sequence_1.sql │ │ │ │ ├── matviews.sql │ │ │ │ ├── alter_ts_config.sql │ │ │ │ ├── create_domain.sql │ │ │ │ ├── alter_sequence.sql │ │ │ │ ├── create_trigger.sql │ │ │ │ ├── create_schema.sql │ │ │ │ └── create_view.sql │ │ │ └── test_ddl_deparse.control │ │ ├── commit_ts │ │ │ ├── commit_ts.conf │ │ │ └── .gitignore │ │ ├── test_rls_hooks │ │ │ ├── rls_hooks.conf │ │ │ ├── .gitignore │ │ │ └── test_rls_hooks.control │ │ ├── brin │ │ │ └── .gitignore │ │ ├── test_extensions │ │ │ ├── test_ext6--1.0.sql │ │ │ ├── .gitignore │ │ │ ├── test_ext3.control │ │ │ ├── test_ext5.control │ │ │ ├── test_ext7.control │ │ │ ├── test_ext8.control │ │ │ ├── test_ext4.control │ │ │ ├── test_ext2.control │ │ │ ├── test_ext6.control │ │ │ ├── test_ext_cyclic1.control │ │ │ ├── test_ext_cyclic2.control │ │ │ ├── test_ext1.control │ │ │ ├── test_ext1--1.0.sql │ │ │ ├── test_ext2--1.0.sql │ │ │ ├── test_ext4--1.0.sql │ │ │ ├── test_ext5--1.0.sql │ │ │ ├── test_ext_cyclic1--1.0.sql │ │ │ ├── test_ext_cyclic2--1.0.sql │ │ │ ├── test_ext7--1.0--2.0.sql │ │ │ └── test_ext3--1.0.sql │ │ ├── dummy_seclabel │ │ │ ├── .gitignore │ │ │ ├── dummy_seclabel.control │ │ │ └── dummy_seclabel--1.0.sql │ │ ├── test_parser │ │ │ ├── .gitignore │ │ │ └── test_parser.control │ │ ├── test_pg_dump │ │ │ ├── .gitignore │ │ │ ├── README │ │ │ └── test_pg_dump.control │ │ ├── test_predtest │ │ │ ├── .gitignore │ │ │ └── test_predtest.control │ │ ├── test_rbtree │ │ │ ├── .gitignore │ │ │ ├── test_rbtree.control │ │ │ ├── sql │ │ │ │ └── test_rbtree.sql │ │ │ ├── test_rbtree--1.0.sql │ │ │ └── expected │ │ │ │ └── test_rbtree.out │ │ ├── test_shm_mq │ │ │ ├── .gitignore │ │ │ └── test_shm_mq.control │ │ ├── test_bloomfilter │ │ │ ├── .gitignore │ │ │ └── test_bloomfilter.control │ │ └── worker_spi │ │ │ ├── worker_spi.control │ │ │ └── worker_spi--1.0.sql │ ├── regress │ │ ├── data │ │ │ ├── dept.data │ │ │ ├── constro.data │ │ │ ├── constrf.data │ │ │ ├── agg.data │ │ │ ├── emp.data │ │ │ ├── student.data │ │ │ ├── stud_emp.data │ │ │ └── real_city.data │ │ ├── README │ │ ├── sql │ │ │ ├── .gitignore │ │ │ └── init_privs.sql │ │ ├── expected │ │ │ └── .gitignore │ │ ├── .gitignore │ │ └── resultmap │ ├── ldap │ │ └── .gitignore │ ├── kerberos │ │ └── .gitignore │ ├── recovery │ │ └── .gitignore │ ├── subscription │ │ └── .gitignore │ ├── authentication │ │ └── .gitignore │ ├── ssl │ │ ├── ssl │ │ │ └── .gitignore │ │ ├── .gitignore │ │ ├── server-cn-only.config │ │ ├── client.config │ │ └── root_ca.config │ ├── mb │ │ ├── sql │ │ │ ├── big5.sql │ │ │ ├── sjis.sql │ │ │ ├── euc_cn.sql │ │ │ ├── euc_jp.sql │ │ │ ├── euc_kr.sql │ │ │ ├── euc_tw.sql │ │ │ ├── gb18030.sql │ │ │ └── mule_internal.sql │ │ ├── expected │ │ │ ├── big5.out │ │ │ ├── sjis.out │ │ │ ├── euc_cn.out │ │ │ ├── euc_jp.out │ │ │ ├── euc_kr.out │ │ │ ├── euc_tw.out │ │ │ ├── gb18030.out │ │ │ └── mule_internal.out │ │ └── README │ ├── examples │ │ ├── .gitignore │ │ ├── testlibpq2.sql │ │ └── testlibpq3.sql │ └── isolation │ │ ├── .gitignore │ │ ├── expected │ │ └── read-write-unique-3.out │ │ └── specs │ │ └── fk-contention.spec ├── tools │ ├── ifaddrs │ │ ├── .gitignore │ │ └── README │ ├── findoidjoins │ │ └── .gitignore │ ├── msvc │ │ ├── dummylib │ │ │ ├── Win32.pm │ │ │ └── Win32 │ │ │ │ └── Registry.pm │ │ ├── .gitignore │ │ ├── build.bat │ │ ├── install.bat │ │ ├── vcregress.bat │ │ ├── pgflex.bat │ │ └── pgbison.bat │ ├── ccsym │ ├── FAQ2txt │ ├── make_diff │ │ ├── rmorig │ │ ├── cporig │ │ └── difforig │ ├── codelines │ ├── pgindent │ │ ├── exclude_file_patterns │ │ └── pgperltidy │ ├── make_mkid │ └── make_etags ├── bin │ ├── pg_ctl │ │ ├── .gitignore │ │ └── nls.mk │ ├── pg_test_fsync │ │ ├── .gitignore │ │ └── nls.mk │ ├── pg_test_timing │ │ ├── .gitignore │ │ └── nls.mk │ ├── pg_config │ │ ├── .gitignore │ │ ├── po │ │ │ └── nb.po │ │ └── nls.mk │ ├── pg_resetwal │ │ ├── .gitignore │ │ └── nls.mk │ ├── pgevent │ │ ├── MSG00001.bin │ │ ├── exports.txt │ │ ├── pgmsgevent.rc │ │ ├── pgmsgevent.mc │ │ └── pgevent.def │ ├── pg_controldata │ │ ├── .gitignore │ │ └── nls.mk │ ├── pg_archivecleanup │ │ ├── .gitignore │ │ └── nls.mk │ ├── pg_verify_checksums │ │ ├── .gitignore │ │ ├── nls.mk │ │ └── t │ │ │ └── 001_basic.pl │ ├── pgbench │ │ └── .gitignore │ ├── pg_dump │ │ └── .gitignore │ ├── psql │ │ ├── .gitignore │ │ ├── psqlrc.sample │ │ ├── mainloop.h │ │ └── tab-complete.h │ ├── initdb │ │ ├── .gitignore │ │ └── nls.mk │ ├── pg_basebackup │ │ ├── .gitignore │ │ └── nls.mk │ ├── pg_waldump │ │ ├── .gitignore │ │ └── nls.mk │ ├── pg_rewind │ │ ├── .gitignore │ │ └── t │ │ │ └── 005_same_timeline.pl │ ├── scripts │ │ ├── .gitignore │ │ └── t │ │ │ ├── 101_vacuumdb_all.pl │ │ │ └── 091_reindexdb_all.pl │ └── pg_upgrade │ │ └── .gitignore ├── interfaces │ ├── ecpg │ │ ├── test │ │ │ ├── expected │ │ │ │ ├── sql-code100.stdout │ │ │ │ ├── sql-twophase.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 │ │ │ │ ├── preproc-whenever_do_continue.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 │ │ │ │ ├── preproc-variable.stdout │ │ │ │ ├── preproc-outofscope.stdout │ │ │ │ ├── sql-dynalloc.stdout │ │ │ │ ├── preproc-cursor.stdout │ │ │ │ ├── compat_informix-charfuncs.stdout │ │ │ │ ├── compat_oracle-char_array.stdout │ │ │ │ ├── preproc-autoprep.stdout │ │ │ │ ├── compat_informix-rnull.stdout │ │ │ │ ├── preproc-comment.stderr │ │ │ │ ├── pgtypeslib-nan_test.stdout │ │ │ │ ├── connect-test4.stderr │ │ │ │ ├── compat_informix-test_informix.stdout │ │ │ │ ├── sql-describe.stdout │ │ │ │ ├── preproc-array_of_struct.stdout │ │ │ │ ├── compat_informix-describe.stdout │ │ │ │ └── preproc-pointer_to_struct.stdout │ │ │ ├── compat_oracle │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ ├── .gitignore │ │ │ ├── preproc │ │ │ │ ├── strings.h │ │ │ │ └── struct.h │ │ │ ├── connect │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ ├── test4.pgc │ │ │ │ └── README │ │ │ ├── thread │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ ├── pgtypeslib │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ ├── regression.h │ │ │ └── compat_informix │ │ │ │ └── .gitignore │ │ ├── include │ │ │ ├── .gitignore │ │ │ ├── pgtypes.h │ │ │ ├── decimal.h │ │ │ ├── datetime.h │ │ │ └── sqlda.h │ │ ├── ecpglib │ │ │ ├── .gitignore │ │ │ └── nls.mk │ │ ├── pgtypeslib │ │ │ └── .gitignore │ │ ├── compatlib │ │ │ └── .gitignore │ │ └── preproc │ │ │ ├── .gitignore │ │ │ └── nls.mk │ └── libpq │ │ ├── test │ │ ├── .gitignore │ │ └── README │ │ ├── README │ │ ├── .gitignore │ │ └── nls.mk ├── timezone │ ├── .gitignore │ └── tznames │ │ └── Europe.txt ├── .gitignore ├── port │ ├── win32.ico │ └── .gitignore ├── pl │ ├── tcl │ │ ├── .gitignore │ │ ├── pltcl.control │ │ ├── pltclu.control │ │ ├── pltcl--unpackaged--1.0.sql │ │ ├── nls.mk │ │ ├── pltclu--unpackaged--1.0.sql │ │ ├── pltcl--1.0.sql │ │ └── pltclu--1.0.sql │ ├── plpython │ │ ├── .gitignore │ │ ├── sql │ │ │ ├── plpython_do.sql │ │ │ └── plpython_drop.sql │ │ ├── plpython2u.control │ │ ├── plpython3u.control │ │ ├── plpythonu.control │ │ ├── expected │ │ │ └── plpython_drop.out │ │ ├── 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 │ ├── plperl │ │ ├── .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 │ └── plpgsql │ │ └── src │ │ ├── .gitignore │ │ ├── plpgsql.control │ │ ├── nls.mk │ │ ├── plpgsql--1.0.sql │ │ └── plpgsql--unpackaged--1.0.sql ├── DEVELOPERS └── makefiles │ ├── Makefile.darwin │ ├── Makefile │ └── Makefile.linux ├── contrib ├── dblink │ ├── sql │ │ └── .gitignore │ ├── expected │ │ └── .gitignore │ ├── .gitignore │ ├── dblink.control │ └── pg_service.conf ├── pg_standby │ └── .gitignore ├── file_fdw │ ├── data │ │ ├── list1.csv │ │ ├── list2.bad │ │ ├── list2.csv │ │ ├── agg.bad │ │ ├── agg.data │ │ ├── agg.csv │ │ └── text.csv │ ├── sql │ │ └── .gitignore │ ├── expected │ │ └── .gitignore │ ├── .gitignore │ └── file_fdw.control ├── amcheck │ ├── sql │ │ └── check.sql │ ├── expected │ │ └── check.out │ ├── .gitignore │ └── amcheck.control ├── oid2name │ ├── .gitignore │ └── t │ │ └── 001_basic.pl ├── vacuumlo │ ├── .gitignore │ └── t │ │ └── 001_basic.pl ├── pgcrypto │ ├── sql │ │ ├── pgp-zlib-DISABLED.sql │ │ └── crypt-md5.sql │ ├── expected │ │ └── pgp-zlib-DISABLED.out │ ├── .gitignore │ ├── pgcrypto.control │ └── pgcrypto--1.0--1.1.sql ├── test_decoding │ ├── logical.conf │ └── .gitignore ├── isn │ ├── .gitignore │ └── isn.control ├── lo │ ├── .gitignore │ ├── lo.control │ ├── lo--1.0--1.1.sql │ └── lo--unpackaged--1.0.sql ├── bloom │ ├── .gitignore │ └── bloom.control ├── citext │ ├── .gitignore │ ├── citext.control │ └── citext--1.2--1.3.sql ├── dict_int │ ├── .gitignore │ └── dict_int.control ├── hstore │ ├── .gitignore │ ├── hstore.control │ └── hstore--1.0--1.1.sql ├── intarray │ ├── .gitignore │ └── intarray.control ├── ltree │ ├── .gitignore │ ├── ltree.control │ └── crc32.h ├── pg_trgm │ ├── .gitignore │ └── pg_trgm.control ├── unaccent │ ├── .gitignore │ └── unaccent.control ├── xml2 │ ├── .gitignore │ └── xml2.control ├── adminpack │ ├── .gitignore │ ├── adminpack.control │ └── adminpack--1.0--1.1.sql ├── btree_gin │ ├── .gitignore │ ├── btree_gin.control │ ├── sql │ │ └── install_btree_gin.sql │ └── expected │ │ └── install_btree_gin.out ├── btree_gist │ ├── .gitignore │ ├── btree_gist.control │ ├── sql │ │ └── init.sql │ └── expected │ │ └── init.out ├── dict_xsyn │ ├── .gitignore │ ├── xsyn_sample.rules │ └── dict_xsyn.control ├── earthdistance │ ├── .gitignore │ └── earthdistance.control ├── fuzzystrmatch │ ├── .gitignore │ └── fuzzystrmatch.control ├── hstore_plperl │ ├── .gitignore │ ├── hstore_plperl.control │ └── hstore_plperlu.control ├── jsonb_plperl │ ├── .gitignore │ ├── jsonb_plperl.control │ └── jsonb_plperlu.control ├── pageinspect │ ├── .gitignore │ └── pageinspect.control ├── passwordcheck │ └── .gitignore ├── pg_stat_statements │ ├── pg_stat_statements.conf │ ├── .gitignore │ ├── pg_stat_statements.control │ ├── pg_stat_statements--1.4--1.5.sql │ ├── pg_stat_statements--1.3--1.4.sql │ └── pg_stat_statements--1.5--1.6.sql ├── pg_visibility │ ├── .gitignore │ └── pg_visibility.control ├── pgstattuple │ ├── .gitignore │ └── pgstattuple.control ├── postgres_fdw │ ├── .gitignore │ └── postgres_fdw.control ├── tablefunc │ ├── .gitignore │ ├── data │ │ ├── connectby_int.data │ │ └── connectby_text.data │ └── tablefunc.control ├── tsm_system_rows │ ├── .gitignore │ ├── tsm_system_rows.control │ └── tsm_system_rows--1.0.sql ├── tsm_system_time │ ├── .gitignore │ ├── tsm_system_time.control │ └── tsm_system_time--1.0.sql ├── uuid-ossp │ ├── .gitignore │ └── uuid-ossp.control ├── contrib-global.mk ├── cube │ ├── .gitignore │ ├── cube.control │ └── cube--1.2--1.3.sql ├── seg │ ├── .gitignore │ ├── seg.control │ └── seg--1.1--1.2.sql ├── hstore_plpython │ ├── .gitignore │ ├── hstore_plpythonu.control │ ├── hstore_plpython2u.control │ └── hstore_plpython3u.control ├── jsonb_plpython │ ├── .gitignore │ ├── jsonb_plpythonu.control │ ├── jsonb_plpython2u.control │ └── jsonb_plpython3u.control ├── ltree_plpython │ ├── .gitignore │ ├── ltree_plpython2u.control │ ├── ltree_plpython3u.control │ └── ltree_plpythonu.control ├── intagg │ ├── intagg.control │ └── Makefile ├── sepgsql │ └── .gitignore ├── tcn │ ├── tcn.control │ ├── tcn--1.0.sql │ └── Makefile ├── pg_prewarm │ ├── pg_prewarm.control │ └── pg_prewarm--1.0--1.1.sql ├── spi │ ├── autoinc.control │ ├── moddatetime.control │ ├── refint.control │ ├── insert_username.control │ ├── autoinc--unpackaged--1.0.sql │ ├── autoinc--1.0.sql │ ├── moddatetime--unpackaged--1.0.sql │ ├── moddatetime--1.0.sql │ ├── insert_username--1.0.sql │ ├── insert_username--unpackaged--1.0.sql │ ├── refint--unpackaged--1.0.sql │ └── refint--1.0.sql ├── sslinfo │ ├── sslinfo.control │ └── sslinfo--1.0--1.1.sql ├── pgrowlocks │ ├── pgrowlocks.control │ ├── pgrowlocks--1.1--1.2.sql │ └── pgrowlocks--unpackaged--1.0.sql ├── pg_buffercache │ ├── pg_buffercache.control │ ├── pg_buffercache--1.1--1.2.sql │ ├── pg_buffercache--1.2--1.3.sql │ └── pg_buffercache--unpackaged--1.0.sql ├── pg_freespacemap │ ├── pg_freespacemap.control │ ├── pg_freespacemap--1.0--1.1.sql │ ├── pg_freespacemap--1.1--1.2.sql │ └── pg_freespacemap--unpackaged--1.0.sql └── auth_delay │ └── Makefile ├── doc ├── TODO ├── KNOWN_BUGS ├── MISSING_FEATURES └── src │ ├── Makefile │ └── sgml │ └── release-12.sgml └── HISTORY /src/template/openbsd: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/backend/port/tas/dummy.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/common/.gitignore: -------------------------------------------------------------------------------- 1 | /kwlist_d.h 2 | -------------------------------------------------------------------------------- /src/fe_utils/.gitignore: -------------------------------------------------------------------------------- 1 | /psqlscan.c 2 | -------------------------------------------------------------------------------- /src/include/parser/.gitignore: -------------------------------------------------------------------------------- 1 | /gram.h 2 | -------------------------------------------------------------------------------- /src/test/locale/.gitignore: -------------------------------------------------------------------------------- 1 | /test-ctype 2 | -------------------------------------------------------------------------------- /src/test/thread/.gitignore: -------------------------------------------------------------------------------- 1 | /thread_test 2 | -------------------------------------------------------------------------------- /contrib/dblink/sql/.gitignore: -------------------------------------------------------------------------------- 1 | /paths.sql 2 | -------------------------------------------------------------------------------- /contrib/pg_standby/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_standby 2 | -------------------------------------------------------------------------------- /src/tools/ifaddrs/.gitignore: -------------------------------------------------------------------------------- 1 | /test_ifaddrs 2 | -------------------------------------------------------------------------------- /contrib/dblink/expected/.gitignore: -------------------------------------------------------------------------------- 1 | /paths.out 2 | -------------------------------------------------------------------------------- /contrib/file_fdw/data/list1.csv: -------------------------------------------------------------------------------- 1 | 1,foo 2 | 1,bar 3 | -------------------------------------------------------------------------------- /contrib/file_fdw/data/list2.bad: -------------------------------------------------------------------------------- 1 | 2,baz 2 | 1,qux 3 | -------------------------------------------------------------------------------- /contrib/file_fdw/data/list2.csv: -------------------------------------------------------------------------------- 1 | 2,baz 2 | 2,qux 3 | -------------------------------------------------------------------------------- /contrib/file_fdw/sql/.gitignore: -------------------------------------------------------------------------------- 1 | /file_fdw.sql 2 | -------------------------------------------------------------------------------- /src/backend/utils/misc/.gitignore: -------------------------------------------------------------------------------- 1 | /guc-file.c 2 | -------------------------------------------------------------------------------- /src/backend/utils/sort/.gitignore: -------------------------------------------------------------------------------- 1 | /qsort_tuple.c 2 | -------------------------------------------------------------------------------- /src/bin/pg_ctl/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_ctl 2 | /tmp_check/ 3 | -------------------------------------------------------------------------------- /src/bin/pg_test_fsync/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_test_fsync 2 | -------------------------------------------------------------------------------- /src/bin/pg_test_timing/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_test_timing 2 | -------------------------------------------------------------------------------- /src/include/storage/.gitignore: -------------------------------------------------------------------------------- 1 | /lwlocknames.h 2 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-code100.stdout: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-twophase.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 | -------------------------------------------------------------------------------- /src/tools/findoidjoins/.gitignore: -------------------------------------------------------------------------------- 1 | /findoidjoins 2 | -------------------------------------------------------------------------------- /contrib/file_fdw/expected/.gitignore: -------------------------------------------------------------------------------- 1 | /file_fdw.out 2 | -------------------------------------------------------------------------------- /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/amcheck/sql/check.sql: -------------------------------------------------------------------------------- 1 | CREATE EXTENSION amcheck; 2 | -------------------------------------------------------------------------------- /contrib/oid2name/.gitignore: -------------------------------------------------------------------------------- 1 | /oid2name 2 | 3 | /tmp_check/ 4 | -------------------------------------------------------------------------------- /contrib/vacuumlo/.gitignore: -------------------------------------------------------------------------------- 1 | /vacuumlo 2 | 3 | /tmp_check/ 4 | -------------------------------------------------------------------------------- /src/bin/pg_config/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_config 2 | /tmp_check/ 3 | -------------------------------------------------------------------------------- /src/bin/pg_resetwal/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_resetwal 2 | /tmp_check/ 3 | -------------------------------------------------------------------------------- /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/modules/snapshot_too_old/.gitignore: -------------------------------------------------------------------------------- 1 | /output_iso/ 2 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/expected/alter_extension.out: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/expected/create_function.out: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/expected/create_operator.out: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/test/regress/data/dept.data: -------------------------------------------------------------------------------- 1 | toy sharon 2 | shoe bob 3 | -------------------------------------------------------------------------------- /contrib/amcheck/expected/check.out: -------------------------------------------------------------------------------- 1 | CREATE EXTENSION amcheck; 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/regress/data/constro.data: -------------------------------------------------------------------------------- 1 | 4 !check failed 5 2 | 6 OK 4 3 | -------------------------------------------------------------------------------- /contrib/pgcrypto/expected/pgp-zlib-DISABLED.out: -------------------------------------------------------------------------------- 1 | -- zlib is disabled 2 | -------------------------------------------------------------------------------- /src/backend/.gitignore: -------------------------------------------------------------------------------- 1 | /postgres 2 | /postgres.def 3 | /postgres.imp 4 | -------------------------------------------------------------------------------- /src/backend/port/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_sema.c 2 | /pg_shmem.c 3 | /tas.s 4 | -------------------------------------------------------------------------------- /src/backend/storage/lmgr/.gitignore: -------------------------------------------------------------------------------- 1 | /lwlocknames.c 2 | /lwlocknames.h 3 | -------------------------------------------------------------------------------- /src/bin/pg_controldata/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_controldata 2 | /tmp_check/ 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 | -------------------------------------------------------------------------------- /src/test/ldap/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by test suite 2 | /tmp_check/ 3 | -------------------------------------------------------------------------------- /src/test/modules/commit_ts/commit_ts.conf: -------------------------------------------------------------------------------- 1 | track_commit_timestamp = on 2 | -------------------------------------------------------------------------------- /src/.gitignore: -------------------------------------------------------------------------------- 1 | /Makefile.global 2 | /Makefile.port 3 | /Makefile.custom 4 | -------------------------------------------------------------------------------- /src/include/catalog/.gitignore: -------------------------------------------------------------------------------- 1 | /schemapg.h 2 | /pg_*_d.h 3 | /header-stamp 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/test/kerberos/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by test suite 2 | /tmp_check/ 3 | -------------------------------------------------------------------------------- /src/test/recovery/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by test suite 2 | /tmp_check/ 3 | -------------------------------------------------------------------------------- /src/test/regress/data/constrf.data: -------------------------------------------------------------------------------- 1 | 5 !check failed 6 2 | 7 check failed 6 3 | -------------------------------------------------------------------------------- /src/test/subscription/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by test suite 2 | /tmp_check/ 3 | -------------------------------------------------------------------------------- /src/bin/pg_archivecleanup/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_archivecleanup 2 | 3 | /tmp_check/ 4 | -------------------------------------------------------------------------------- /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/compat_oracle/.gitignore: -------------------------------------------------------------------------------- 1 | /char_array 2 | /char_array.c 3 | -------------------------------------------------------------------------------- /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/test/authentication/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by test suite 2 | /tmp_check/ 3 | -------------------------------------------------------------------------------- /src/test/ssl/ssl/.gitignore: -------------------------------------------------------------------------------- 1 | /*.old 2 | /new_certs_dir/ 3 | /client*_tmp.key 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contrib/test_decoding/logical.conf: -------------------------------------------------------------------------------- 1 | wal_level = logical 2 | max_replication_slots = 4 3 | -------------------------------------------------------------------------------- /src/bin/pg_verify_checksums/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_verify_checksums 2 | 3 | /tmp_check/ 4 | -------------------------------------------------------------------------------- /src/bin/pgbench/.gitignore: -------------------------------------------------------------------------------- 1 | /exprparse.c 2 | /exprscan.c 3 | /pgbench 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /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/interfaces/libpq/test/.gitignore: -------------------------------------------------------------------------------- 1 | /uri-regress 2 | /regress.diff 3 | /regress.out 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 | -------------------------------------------------------------------------------- /contrib/isn/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/lo/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/bin/pg_dump/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_dump 2 | /pg_dumpall 3 | /pg_restore 4 | 5 | /tmp_check/ 6 | -------------------------------------------------------------------------------- /src/bin/psql/.gitignore: -------------------------------------------------------------------------------- 1 | /psqlscanslash.c 2 | /sql_help.h 3 | /sql_help.c 4 | 5 | /psql 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/test/modules/test_rls_hooks/rls_hooks.conf: -------------------------------------------------------------------------------- 1 | shared_preload_libraries = test_rls_hooks 2 | -------------------------------------------------------------------------------- /src/test/ssl/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by regression tests 2 | /client-log 3 | /tmp_check/ 4 | -------------------------------------------------------------------------------- /src/tools/msvc/dummylib/Win32.pm: -------------------------------------------------------------------------------- 1 | package Win32; 2 | use strict; 3 | use warnings; 4 | 1; 5 | -------------------------------------------------------------------------------- /contrib/amcheck/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/bloom/.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/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/TODO: -------------------------------------------------------------------------------- 1 | The TODO list is now maintained at: 2 | 3 | https://wiki.postgresql.org/wiki/Todo 4 | -------------------------------------------------------------------------------- /src/bin/initdb/.gitignore: -------------------------------------------------------------------------------- 1 | /encnames.c 2 | /localtime.c 3 | 4 | /initdb 5 | 6 | /tmp_check/ 7 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/ecpglib/.gitignore: -------------------------------------------------------------------------------- 1 | /ecpglib.def 2 | /blibecpgdll.def 3 | /exports.list 4 | -------------------------------------------------------------------------------- /src/port/win32.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/port/win32.ico -------------------------------------------------------------------------------- /src/test/modules/brin/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /output_iso/ 3 | /tmp_check/ 4 | -------------------------------------------------------------------------------- /src/test/modules/snapshot_too_old/sto.conf: -------------------------------------------------------------------------------- 1 | autovacuum = off 2 | old_snapshot_threshold = 0 3 | -------------------------------------------------------------------------------- /contrib/adminpack/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /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/fuzzystrmatch/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/hstore_plperl/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/jsonb_plperl/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/pageinspect/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/passwordcheck/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/pg_stat_statements/pg_stat_statements.conf: -------------------------------------------------------------------------------- 1 | shared_preload_libraries = 'pg_stat_statements' 2 | -------------------------------------------------------------------------------- /contrib/pg_visibility/.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 | -------------------------------------------------------------------------------- /src/bin/pgevent/exports.txt: -------------------------------------------------------------------------------- 1 | DllUnregisterServer@0 ; 2 | DllRegisterServer@0 ; 3 | DllInstall ; 4 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/pgtypeslib/.gitignore: -------------------------------------------------------------------------------- 1 | /pgtypeslib.def 2 | /blibpgtypesdll.def 3 | /exports.list 4 | -------------------------------------------------------------------------------- /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/port/.gitignore: -------------------------------------------------------------------------------- 1 | /libpgport.a 2 | /libpgport_shlib.a 3 | /libpgport_srv.a 4 | /pg_config_paths.h 5 | -------------------------------------------------------------------------------- /src/test/locale/koi8-r/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | 3 | test: 4 | ./runall 5 | 6 | clean: 7 | rm -f *.out 8 | -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext6--1.0.sql: -------------------------------------------------------------------------------- 1 | grant usage on schema @extschema@ to public; 2 | -------------------------------------------------------------------------------- /contrib/pg_stat_statements/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/tsm_system_rows/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/tsm_system_time/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/bin/pgevent/pgmsgevent.rc: -------------------------------------------------------------------------------- 1 | LANGUAGE 0x9,0x1 2 | 1 11 MSG00001.bin 3 | 4 | #include "win32ver.rc" 5 | -------------------------------------------------------------------------------- /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/test/mb/sql/big5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/sql/big5.sql -------------------------------------------------------------------------------- /src/test/mb/sql/sjis.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/sql/sjis.sql -------------------------------------------------------------------------------- /src/test/modules/commit_ts/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/tools/msvc/.gitignore: -------------------------------------------------------------------------------- 1 | # Custom configuration files for MSVC build 2 | /config.pl 3 | /buildenv.pl 4 | -------------------------------------------------------------------------------- /src/bin/pg_basebackup/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_basebackup 2 | /pg_receivewal 3 | /pg_recvlogical 4 | 5 | /tmp_check/ 6 | -------------------------------------------------------------------------------- /src/bin/pg_config/po/nb.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/bin/pg_config/po/nb.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 | -------------------------------------------------------------------------------- /src/include/port/win32/arpa/inet.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32/arpa/inet.h */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /src/include/utils/.gitignore: -------------------------------------------------------------------------------- 1 | /fmgroids.h 2 | /fmgrprotos.h 3 | /probes.h 4 | /errcodes.h 5 | /header-stamp 6 | -------------------------------------------------------------------------------- /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/euc_cn.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/sql/euc_cn.sql -------------------------------------------------------------------------------- /src/test/mb/sql/euc_jp.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/sql/euc_jp.sql -------------------------------------------------------------------------------- /src/test/mb/sql/euc_kr.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/sql/euc_kr.sql -------------------------------------------------------------------------------- /src/test/mb/sql/euc_tw.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/sql/euc_tw.sql -------------------------------------------------------------------------------- /src/test/modules/dummy_seclabel/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/test/modules/test_parser/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/test/modules/test_pg_dump/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/test/modules/test_predtest/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/test/modules/test_rbtree/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/test/modules/test_rls_hooks/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/test/modules/test_shm_mq/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/tools/ccsym: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # display gcc predefined preprocessor macros 4 | gcc -dM -E - < /dev/null 5 | -------------------------------------------------------------------------------- /src/backend/replication/.gitignore: -------------------------------------------------------------------------------- 1 | /repl_gram.c 2 | /repl_scanner.c 3 | /syncrep_gram.c 4 | /syncrep_scanner.c 5 | -------------------------------------------------------------------------------- /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/tcl/.gitignore: -------------------------------------------------------------------------------- 1 | /pltclerrcodes.h 2 | 3 | # Generated subdirectories 4 | /log/ 5 | /results/ 6 | /tmp_check/ 7 | -------------------------------------------------------------------------------- /src/test/examples/.gitignore: -------------------------------------------------------------------------------- 1 | /testlibpq 2 | /testlibpq2 3 | /testlibpq3 4 | /testlibpq4 5 | /testlo 6 | /testlo64 7 | -------------------------------------------------------------------------------- /src/test/mb/expected/big5.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/expected/big5.out -------------------------------------------------------------------------------- /src/test/mb/expected/sjis.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/expected/sjis.out -------------------------------------------------------------------------------- /src/test/mb/sql/gb18030.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/sql/gb18030.sql -------------------------------------------------------------------------------- /src/test/modules/test_bloomfilter/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/test/modules/test_extensions/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/uuid-ossp/.gitignore: -------------------------------------------------------------------------------- 1 | /md5.c 2 | /sha1.c 3 | # Generated subdirectories 4 | /log/ 5 | /results/ 6 | /tmp_check/ 7 | -------------------------------------------------------------------------------- /src/backend/utils/.gitignore: -------------------------------------------------------------------------------- 1 | /fmgrtab.c 2 | /fmgroids.h 3 | /fmgrprotos.h 4 | /fmgr-stamp 5 | /probes.h 6 | /errcodes.h 7 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_regress 2 | # Exclude subdirectories 3 | /log/ 4 | /results/ 5 | /tmp_check/ 6 | -------------------------------------------------------------------------------- /src/test/mb/expected/euc_cn.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/expected/euc_cn.out -------------------------------------------------------------------------------- /src/test/mb/expected/euc_jp.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/expected/euc_jp.out -------------------------------------------------------------------------------- /src/test/mb/expected/euc_kr.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/expected/euc_kr.out -------------------------------------------------------------------------------- /src/test/mb/expected/euc_tw.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/expected/euc_tw.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 | -------------------------------------------------------------------------------- /src/timezone/tznames/Europe.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/timezone/tznames/Europe.txt -------------------------------------------------------------------------------- /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/interfaces/ecpg/test/expected/preproc-whenever_do_continue.stdout: -------------------------------------------------------------------------------- 1 | Ram 111100.00 21.00 2 | josh 10000.00 10.00 3 | -------------------------------------------------------------------------------- /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/test/mb/expected/gb18030.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/expected/gb18030.out -------------------------------------------------------------------------------- /src/test/mb/sql/mule_internal.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/sql/mule_internal.sql -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/preproc/strings.h: -------------------------------------------------------------------------------- 1 | char *s1, 2 | *s2, 3 | *s3, 4 | *s4, 5 | *s5, 6 | *s6; 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contrib/file_fdw/data/text.csv: -------------------------------------------------------------------------------- 1 | AAA,aaa,123,"" 2 | XYZ,xyz,"",321 3 | NULL,NULL,NULL,NULL 4 | NULL,NULL,"NULL",NULL 5 | ABC,abc,"","" 6 | -------------------------------------------------------------------------------- /src/backend/tsearch/dicts/synonym_sample.syn: -------------------------------------------------------------------------------- 1 | postgres pgsql 2 | postgresql pgsql 3 | postgre pgsql 4 | gogle googl 5 | indices index* 6 | -------------------------------------------------------------------------------- /src/bin/pg_waldump/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_waldump 2 | # Source files copied from src/backend/access/rmgrdesc/ 3 | /*desc.c 4 | /xlogreader.c 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/test/locale/koi8-r/test-koi8.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/koi8-r/test-koi8.sql.in -------------------------------------------------------------------------------- /src/test/mb/expected/mule_internal.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/mb/expected/mule_internal.out -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext3.control: -------------------------------------------------------------------------------- 1 | comment = 'Test extension 3' 2 | default_version = '1.0' 3 | relocatable = true 4 | -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext5.control: -------------------------------------------------------------------------------- 1 | comment = 'Test extension 5' 2 | default_version = '1.0' 3 | relocatable = true 4 | -------------------------------------------------------------------------------- /contrib/test_decoding/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /output_iso/ 5 | /tmp_check/ 6 | /tmp_check_iso/ 7 | -------------------------------------------------------------------------------- /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/StephenGrider/postgres/master/src/test/locale/koi8-r/test-koi8-sort.in -------------------------------------------------------------------------------- /src/test/modules/test_pg_dump/README: -------------------------------------------------------------------------------- 1 | test_pg_dump is an extension explicitly to test pg_dump when 2 | extensions are present in the system. 3 | -------------------------------------------------------------------------------- /contrib/hstore_plpython/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /expected/python3/ 3 | /log/ 4 | /results/ 5 | /sql/python3/ 6 | /tmp_check/ 7 | -------------------------------------------------------------------------------- /contrib/jsonb_plpython/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /expected/python3/ 3 | /log/ 4 | /results/ 5 | /sql/python3/ 6 | /tmp_check/ 7 | -------------------------------------------------------------------------------- /contrib/ltree_plpython/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /expected/python3/ 3 | /log/ 4 | /results/ 5 | /sql/python3/ 6 | /tmp_check/ 7 | -------------------------------------------------------------------------------- /src/backend/catalog/.gitignore: -------------------------------------------------------------------------------- 1 | /postgres.bki 2 | /postgres.description 3 | /postgres.shdescription 4 | /schemapg.h 5 | /pg_*_d.h 6 | /bki-stamp 7 | -------------------------------------------------------------------------------- /src/bin/pg_rewind/.gitignore: -------------------------------------------------------------------------------- 1 | # Files generated during build 2 | /xlogreader.c 3 | /pg_rewind 4 | 5 | # Generated by test suite 6 | /tmp_check/ 7 | -------------------------------------------------------------------------------- /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/test/modules/test_ddl_deparse/sql/create_extension.sql: -------------------------------------------------------------------------------- 1 | --- 2 | --- CREATE_EXTENSION 3 | --- 4 | 5 | CREATE EXTENSION pg_stat_statements; 6 | -------------------------------------------------------------------------------- /src/test/modules/test_pg_dump/test_pg_dump.control: -------------------------------------------------------------------------------- 1 | comment = 'Test pg_dump with an extension' 2 | default_version = '1.0' 3 | relocatable = true 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/test-de.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/de_DE.ISO8859-1/test-de.sql.in -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/test-gr.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/gr_GR.ISO8859-7/test-gr.sql.in -------------------------------------------------------------------------------- /src/test/locale/koi8-r/expected/koi8-ctype.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/koi8-r/expected/koi8-ctype.out -------------------------------------------------------------------------------- /src/test/locale/koi8-r/test-koi8-select.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/koi8-r/test-koi8-select.sql.in -------------------------------------------------------------------------------- /src/backend/tsearch/dicts/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/test/locale/de_DE.ISO8859-1/test-de-sort.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/de_DE.ISO8859-1/test-de-sort.in -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/test-gr-sort.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/gr_GR.ISO8859-7/test-gr-sort.in -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/test-koi8-sort.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/koi8-to-win1251/test-koi8-sort.in -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/test-koi8.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/koi8-to-win1251/test-koi8.sql.in -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext7.control: -------------------------------------------------------------------------------- 1 | comment = 'Test extension 7' 2 | default_version = '1.0' 3 | schema = 'public' 4 | relocatable = false 5 | -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext8.control: -------------------------------------------------------------------------------- 1 | comment = 'Test extension 8' 2 | default_version = '1.0' 3 | schema = 'public' 4 | relocatable = false 5 | -------------------------------------------------------------------------------- /src/backend/utils/mb/conversion_procs/README.euc_jp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/backend/utils/mb/conversion_procs/README.euc_jp -------------------------------------------------------------------------------- /src/interfaces/ecpg/preproc/.gitignore: -------------------------------------------------------------------------------- 1 | /preproc.y 2 | /preproc.c 3 | /preproc.h 4 | /pgc.c 5 | /c_kwlist_d.h 6 | /ecpg_kwlist_d.h 7 | /typename.c 8 | /ecpg 9 | -------------------------------------------------------------------------------- /src/interfaces/libpq/.gitignore: -------------------------------------------------------------------------------- 1 | /exports.list 2 | /libpq.rc 3 | /libpq-dist.rc 4 | # .c files that are symlinked in from elsewhere 5 | /encnames.c 6 | /wchar.c 7 | -------------------------------------------------------------------------------- /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/StephenGrider/postgres/master/src/test/locale/koi8-r/expected/test-koi8-sort.out -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext4.control: -------------------------------------------------------------------------------- 1 | comment = 'Test extension 4' 2 | default_version = '1.0' 3 | relocatable = true 4 | requires = 'test_ext5' 5 | -------------------------------------------------------------------------------- /contrib/intagg/intagg.control: -------------------------------------------------------------------------------- 1 | # intagg extension 2 | comment = 'integer aggregator and enumerator (obsolete)' 3 | default_version = '1.1' 4 | relocatable = true 5 | -------------------------------------------------------------------------------- /contrib/lo/lo.control: -------------------------------------------------------------------------------- 1 | # lo extension 2 | comment = 'Large Object maintenance' 3 | default_version = '1.1' 4 | module_pathname = '$libdir/lo' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /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/expected/de-ctype.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/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/StephenGrider/postgres/master/src/test/locale/de_DE.ISO8859-1/test-de-select.sql.in -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/test-de-upper.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/de_DE.ISO8859-1/test-de-upper.sql.in -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/expected/gr-ctype.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/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/StephenGrider/postgres/master/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/StephenGrider/postgres/master/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/StephenGrider/postgres/master/src/test/locale/koi8-r/expected/test-koi8-text.sql.out -------------------------------------------------------------------------------- /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/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/koi8-r/expected/test-koi8-select.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/koi8-r/expected/test-koi8-select.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/test-koi8-select.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/koi8-to-win1251/test-koi8-select.sql.in -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext2.control: -------------------------------------------------------------------------------- 1 | comment = 'Test extension 2' 2 | default_version = '1.0' 3 | relocatable = true 4 | requires = 'test_ext3,test_ext5' 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/bin/scripts/.gitignore: -------------------------------------------------------------------------------- 1 | /clusterdb 2 | /createdb 3 | /createuser 4 | /dropdb 5 | /dropuser 6 | /reindexdb 7 | /vacuumdb 8 | /pg_isready 9 | 10 | /tmp_check/ 11 | -------------------------------------------------------------------------------- /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/pl/plpgsql/src/.gitignore: -------------------------------------------------------------------------------- 1 | /pl_gram.c 2 | /pl_gram.h 3 | /pl_reserved_kwlist_d.h 4 | /pl_unreserved_kwlist_d.h 5 | /plerrcodes.h 6 | /log/ 7 | /results/ 8 | /tmp_check/ 9 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/test-de-sort.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/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/StephenGrider/postgres/master/src/test/locale/gr_GR.ISO8859-7/expected/test-gr-sort.out -------------------------------------------------------------------------------- /src/test/locale/koi8-r/expected/test-koi8-varchar.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/koi8-r/expected/test-koi8-varchar.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/expected/test-koi8-sort.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/koi8-to-win1251/expected/test-koi8-sort.out -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext6.control: -------------------------------------------------------------------------------- 1 | comment = 'test_ext6' 2 | default_version = '1.0' 3 | relocatable = false 4 | superuser = true 5 | schema = 'test_ext6' 6 | -------------------------------------------------------------------------------- /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/de_DE.ISO8859-1/expected/test-de-char.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/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/StephenGrider/postgres/master/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/StephenGrider/postgres/master/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/StephenGrider/postgres/master/src/test/locale/gr_GR.ISO8859-7/expected/test-gr-text.sql.out -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext_cyclic1.control: -------------------------------------------------------------------------------- 1 | comment = 'Test extension cyclic 1' 2 | default_version = '1.0' 3 | relocatable = true 4 | requires = 'test_ext_cyclic2' 5 | -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext_cyclic2.control: -------------------------------------------------------------------------------- 1 | comment = 'Test extension cyclic 2' 2 | default_version = '1.0' 3 | relocatable = true 4 | requires = 'test_ext_cyclic1' 5 | -------------------------------------------------------------------------------- /contrib/cube/cube.control: -------------------------------------------------------------------------------- 1 | # cube extension 2 | comment = 'data type for multidimensional cubes' 3 | default_version = '1.4' 4 | module_pathname = '$libdir/cube' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /src/bin/pg_verify_checksums/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_verify_checksums/nls.mk 2 | CATALOG_NAME = pg_verify_checksums 3 | AVAIL_LANGUAGES = 4 | GETTEXT_FILES = pg_verify_checksums.c 5 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/test-de-select.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/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/StephenGrider/postgres/master/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/StephenGrider/postgres/master/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/StephenGrider/postgres/master/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/StephenGrider/postgres/master/src/test/locale/koi8-to-win1251/expected/test-koi8-char.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/expected/test-koi8-text.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/koi8-to-win1251/expected/test-koi8-text.sql.out -------------------------------------------------------------------------------- /contrib/pgcrypto/pgcrypto.control: -------------------------------------------------------------------------------- 1 | # pgcrypto extension 2 | comment = 'cryptographic functions' 3 | default_version = '1.3' 4 | module_pathname = '$libdir/pgcrypto' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /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/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/koi8-to-win1251/expected/test-koi8-select.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/koi8-to-win1251/expected/test-koi8-select.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/expected/test-koi8-varchar.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/koi8-to-win1251/expected/test-koi8-varchar.sql.out -------------------------------------------------------------------------------- /src/test/modules/test_rls_hooks/test_rls_hooks.control: -------------------------------------------------------------------------------- 1 | comment = 'Test code for RLS hooks' 2 | default_version = '1.0' 3 | module_pathname = '$libdir/test_rls_hooks' 4 | relocatable = true 5 | -------------------------------------------------------------------------------- /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/pg_prewarm/pg_prewarm.control: -------------------------------------------------------------------------------- 1 | # pg_prewarm extension 2 | comment = 'prewarm relation data' 3 | default_version = '1.2' 4 | module_pathname = '$libdir/pg_prewarm' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /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.2' 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/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/bin/pg_test_timing/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_test_timing/nls.mk 2 | CATALOG_NAME = pg_test_timing 3 | AVAIL_LANGUAGES =de es fr ja ko pl ru sv tr vi 4 | GETTEXT_FILES = pg_test_timing.c 5 | -------------------------------------------------------------------------------- /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/StephenGrider/postgres/master/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/StephenGrider/postgres/master/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/modules/test_ddl_deparse/sql/defprivs.sql: -------------------------------------------------------------------------------- 1 | -- 2 | -- ALTER DEFAULT PRIVILEGES 3 | -- 4 | 5 | ALTER DEFAULT PRIVILEGES IN SCHEMA public 6 | REVOKE ALL PRIVILEGES ON TABLES FROM public; 7 | -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext1.control: -------------------------------------------------------------------------------- 1 | comment = 'Test extension 1' 2 | default_version = '1.0' 3 | schema = 'test_ext1' 4 | relocatable = false 5 | requires = 'test_ext2,test_ext4' 6 | -------------------------------------------------------------------------------- /src/test/modules/test_rbtree/test_rbtree.control: -------------------------------------------------------------------------------- 1 | comment = 'Test code for red-black tree library' 2 | default_version = '1.0' 3 | module_pathname = '$libdir/test_rbtree' 4 | relocatable = true 5 | -------------------------------------------------------------------------------- /src/test/regress/README: -------------------------------------------------------------------------------- 1 | Documentation concerning how to run these regression tests and interpret 2 | the results can be found in the PostgreSQL manual, in the chapter 3 | "Regression Tests". 4 | -------------------------------------------------------------------------------- /contrib/bloom/bloom.control: -------------------------------------------------------------------------------- 1 | # bloom extension 2 | comment = 'bloom access method - signature file based index' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/bloom' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/isn/isn.control: -------------------------------------------------------------------------------- 1 | # isn extension 2 | comment = 'data types for international product numbering standards' 3 | default_version = '1.2' 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.1' 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/locale/de_DE.ISO8859-1/expected/test-de-upper-varchar.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGrider/postgres/master/src/test/locale/de_DE.ISO8859-1/expected/test-de-upper-varchar.sql.out -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/expected/create_extension.out: -------------------------------------------------------------------------------- 1 | --- 2 | --- CREATE_EXTENSION 3 | --- 4 | CREATE EXTENSION pg_stat_statements; 5 | NOTICE: DDL test: type simple, tag CREATE EXTENSION 6 | -------------------------------------------------------------------------------- /src/test/modules/test_shm_mq/test_shm_mq.control: -------------------------------------------------------------------------------- 1 | comment = 'Test code for shared memory message queues' 2 | default_version = '1.0' 3 | module_pathname = '$libdir/test_shm_mq' 4 | relocatable = true 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/amcheck/amcheck.control: -------------------------------------------------------------------------------- 1 | # amcheck extension 2 | comment = 'functions for verifying relation integrity' 3 | default_version = '1.1' 4 | module_pathname = '$libdir/amcheck' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/citext/citext.control: -------------------------------------------------------------------------------- 1 | # citext extension 2 | comment = 'data type for case-insensitive character strings' 3 | default_version = '1.6' 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.6' 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.5' 4 | module_pathname = '$libdir/pgstattuple' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /src/backend/tsearch/dicts/hunspell_sample_long.dict: -------------------------------------------------------------------------------- 1 | book/3 2 | book/11 3 | booking/4 4 | footballklubber 5 | foot/5 6 | football/1 7 | ball/6 8 | klubber/1 9 | sky/7 10 | ex-/8 11 | machina/9 12 | -------------------------------------------------------------------------------- /src/bin/pg_archivecleanup/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_archivecleanup/nls.mk 2 | CATALOG_NAME = pg_archivecleanup 3 | AVAIL_LANGUAGES =de es fr ja ko pl ru sv tr vi 4 | GETTEXT_FILES = pg_archivecleanup.c 5 | -------------------------------------------------------------------------------- /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/modules/dummy_seclabel/dummy_seclabel.control: -------------------------------------------------------------------------------- 1 | comment = 'Test code for SECURITY LABEL feature' 2 | default_version = '1.0' 3 | module_pathname = '$libdir/dummy_seclabel' 4 | relocatable = true 5 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/test_ddl_deparse.control: -------------------------------------------------------------------------------- 1 | comment = 'Test code for DDL deparse feature' 2 | default_version = '1.0' 3 | module_pathname = '$libdir/test_ddl_deparse' 4 | relocatable = true 5 | -------------------------------------------------------------------------------- /src/test/modules/test_predtest/test_predtest.control: -------------------------------------------------------------------------------- 1 | comment = 'Test code for optimizer/util/predtest.c' 2 | default_version = '1.0' 3 | module_pathname = '$libdir/test_predtest' 4 | relocatable = true 5 | -------------------------------------------------------------------------------- /src/test/modules/worker_spi/worker_spi.control: -------------------------------------------------------------------------------- 1 | # worker_spi extension 2 | comment = 'Sample background worker' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/worker_spi' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /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.2' 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.1' 4 | module_pathname = '$libdir/unaccent' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /src/common/unicode/.gitignore: -------------------------------------------------------------------------------- 1 | /norm_test 2 | /norm_test_table.h 3 | 4 | # Files downloaded from the Unicode Character Database 5 | /CompositionExclusions.txt 6 | /NormalizationTest.txt 7 | /UnicodeData.txt 8 | -------------------------------------------------------------------------------- /src/test/modules/test_bloomfilter/test_bloomfilter.control: -------------------------------------------------------------------------------- 1 | comment = 'Test code for Bloom filter library' 2 | default_version = '1.0' 3 | module_pathname = '$libdir/test_bloomfilter' 4 | relocatable = true 5 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/sql/alter_type_enum.sql: -------------------------------------------------------------------------------- 1 | --- 2 | --- ALTER_TYPE_ENUM 3 | --- 4 | 5 | ALTER TYPE enum_test ADD VALUE 'zzz' AFTER 'baz'; 6 | ALTER TYPE enum_test ADD VALUE 'aaa' BEFORE 'foo'; 7 | -------------------------------------------------------------------------------- /contrib/btree_gin/btree_gin.control: -------------------------------------------------------------------------------- 1 | # btree_gin extension 2 | comment = 'support for indexing common datatypes in GIN' 3 | default_version = '1.3' 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.3' 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.1' 4 | module_pathname = '$libdir/uuid-ossp' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /src/bin/pg_test_fsync/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_test_fsync/nls.mk 2 | CATALOG_NAME = pg_test_fsync 3 | AVAIL_LANGUAGES =de es fr ja ko pl ru sv tr vi 4 | GETTEXT_FILES = pg_test_fsync.c 5 | GETTEXT_TRIGGERS = die 6 | -------------------------------------------------------------------------------- /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 macOS 10.3 */ 6 | #define HAVE_FSYNC_WRITETHROUGH 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /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.3307e+06 6 | to long(0) = 20000000 14 7 | -------------------------------------------------------------------------------- /contrib/btree_gist/btree_gist.control: -------------------------------------------------------------------------------- 1 | # btree_gist extension 2 | comment = 'support for indexing common datatypes in GiST' 3 | default_version = '1.5' 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.2' 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.3' 4 | module_pathname = '$libdir/pg_buffercache' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contrib/pg_freespacemap/pg_freespacemap.control: -------------------------------------------------------------------------------- 1 | # pg_freespacemap extension 2 | comment = 'examine the free space map (FSM)' 3 | default_version = '1.2' 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.4' 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 | -------------------------------------------------------------------------------- /src/backend/tsearch/dicts/hunspell_sample_num.dict: -------------------------------------------------------------------------------- 1 | book/302,301,202,303 2 | book/306 3 | booking/303,201 4 | footballklubber 5 | foot/101,303 6 | football/101 7 | ball/303,101,305 8 | klubber/101 9 | sky/304,307 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/sql/create_conversion.sql: -------------------------------------------------------------------------------- 1 | --- 2 | --- CREATE_CONVERSION 3 | --- 4 | 5 | -- Simple test should suffice for this 6 | CREATE CONVERSION myconv FOR 'LATIN1' TO 'UTF8' FROM iso8859_1_to_utf8; 7 | -------------------------------------------------------------------------------- /contrib/intarray/intarray.control: -------------------------------------------------------------------------------- 1 | # intarray extension 2 | comment = 'functions, operators, and index support for 1-D arrays of integers' 3 | default_version = '1.2' 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.7' 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/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/bin/pg_resetwal/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_resetwal/nls.mk 2 | CATALOG_NAME = pg_resetwal 3 | AVAIL_LANGUAGES = cs de es fr it ja ko pl pt_BR ru sv tr zh_CN 4 | GETTEXT_FILES = pg_resetwal.c ../../common/restricted_token.c 5 | -------------------------------------------------------------------------------- /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/template/freebsd: -------------------------------------------------------------------------------- 1 | # src/template/freebsd 2 | 3 | # Prefer unnamed POSIX semaphores if available, unless user overrides choice 4 | if test x"$PREFERRED_SEMAPHORES" = x"" ; then 5 | PREFERRED_SEMAPHORES=UNNAMED_POSIX 6 | fi 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 = '2.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.1' 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/test/modules/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 | -------------------------------------------------------------------------------- /src/test/regress/expected/.gitignore: -------------------------------------------------------------------------------- 1 | /constraints.out 2 | /copy.out 3 | /create_function_1.out 4 | /create_function_2.out 5 | /largeobject.out 6 | /largeobject_1.out 7 | /misc.out 8 | /security_label.out 9 | /tablespace.out 10 | -------------------------------------------------------------------------------- /contrib/jsonb_plperl/jsonb_plperl.control: -------------------------------------------------------------------------------- 1 | # jsonb_plperl extension 2 | comment = 'transform between jsonb and plperl' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/jsonb_plperl' 5 | relocatable = true 6 | requires = 'plperl' 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contrib/jsonb_plperl/jsonb_plperlu.control: -------------------------------------------------------------------------------- 1 | # jsonb_plperl extension 2 | comment = 'transform between jsonb and plperlu' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/jsonb_plperl' 5 | relocatable = true 6 | requires = 'plperlu' 7 | -------------------------------------------------------------------------------- /contrib/vacuumlo/t/001_basic.pl: -------------------------------------------------------------------------------- 1 | use strict; 2 | use warnings; 3 | 4 | use TestLib; 5 | use Test::More tests => 8; 6 | 7 | program_help_ok('vacuumlo'); 8 | program_version_ok('vacuumlo'); 9 | program_options_handling_ok('vacuumlo'); 10 | -------------------------------------------------------------------------------- /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 ru sv tr vi zh_CN 4 | GETTEXT_FILES = pg_controldata.c ../../common/controldata_utils.c 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/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 $$ raise Exception("error test") $$ LANGUAGE plpythonu; 6 | -------------------------------------------------------------------------------- /contrib/hstore_plperl/hstore_plperl.control: -------------------------------------------------------------------------------- 1 | # hstore_plperl extension 2 | comment = 'transform between hstore and plperl' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/hstore_plperl' 5 | relocatable = true 6 | requires = 'hstore,plperl' 7 | -------------------------------------------------------------------------------- /contrib/pg_visibility/pg_visibility.control: -------------------------------------------------------------------------------- 1 | # pg_visibility extension 2 | comment = 'examine the visibility map (VM) and page-level visibility info' 3 | default_version = '1.2' 4 | module_pathname = '$libdir/pg_visibility' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/tsm_system_rows/tsm_system_rows.control: -------------------------------------------------------------------------------- 1 | # tsm_system_rows extension 2 | comment = 'TABLESAMPLE method which accepts number of rows as a limit' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/tsm_system_rows' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/regression.h: -------------------------------------------------------------------------------- 1 | exec sql define REGRESSDB1 ecpg1_regression; 2 | exec sql define REGRESSDB2 ecpg2_regression; 3 | 4 | exec sql define REGRESSUSER1 regress_ecpg_user1; 5 | exec sql define REGRESSUSER2 regress_ecpg_user2; 6 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/sql/create_sequence_1.sql: -------------------------------------------------------------------------------- 1 | -- 2 | -- CREATE_SEQUENCE 3 | -- 4 | 5 | CREATE SEQUENCE fkey_table_seq 6 | INCREMENT BY 1 7 | MINVALUE 0 8 | MAXVALUE 1000000 9 | START 10 10 | CACHE 10 11 | CYCLE; 12 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/sql/matviews.sql: -------------------------------------------------------------------------------- 1 | -- 2 | -- Materialized views 3 | -- 4 | 5 | CREATE MATERIALIZED VIEW ddl_deparse_mv AS 6 | SELECT * FROM datatype_table LIMIT 1 WITH NO DATA; 7 | 8 | REFRESH MATERIALIZED VIEW ddl_deparse_mv; 9 | -------------------------------------------------------------------------------- /contrib/hstore_plperl/hstore_plperlu.control: -------------------------------------------------------------------------------- 1 | # hstore_plperlu extension 2 | comment = 'transform between hstore and plperlu' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/hstore_plperl' 5 | relocatable = true 6 | requires = 'hstore,plperlu' 7 | -------------------------------------------------------------------------------- /contrib/jsonb_plpython/jsonb_plpythonu.control: -------------------------------------------------------------------------------- 1 | # jsonb_plpythonu extension 2 | comment = 'transform between jsonb and plpythonu' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/jsonb_plpython2' 5 | relocatable = true 6 | requires = 'plpythonu' 7 | -------------------------------------------------------------------------------- /contrib/xml2/xml2.control: -------------------------------------------------------------------------------- 1 | # xml2 extension 2 | comment = 'XPath querying and XSLT' 3 | default_version = '1.1' 4 | module_pathname = '$libdir/pgxml' 5 | # non-relocatable because xml2--unpackaged--1.0.sql needs to use @extschema@ 6 | relocatable = false 7 | -------------------------------------------------------------------------------- /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: 8 | $(MAKE) -C sgml $@ 9 | -------------------------------------------------------------------------------- /src/bin/pg_waldump/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_waldump/nls.mk 2 | CATALOG_NAME = pg_waldump 3 | AVAIL_LANGUAGES = de es fr ja ko ru sv tr vi 4 | GETTEXT_FILES = pg_waldump.c 5 | GETTEXT_TRIGGERS = fatal_error 6 | GETTEXT_FLAGS = fatal_error:1:c-format 7 | -------------------------------------------------------------------------------- /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/test/examples/testlibpq2.sql: -------------------------------------------------------------------------------- 1 | CREATE SCHEMA TESTLIBPQ2; 2 | SET search_path = TESTLIBPQ2; 3 | CREATE TABLE TBL1 (i int4); 4 | CREATE TABLE TBL2 (i int4); 5 | CREATE RULE r1 AS ON INSERT TO TBL1 DO 6 | (INSERT INTO TBL2 VALUES (new.i); NOTIFY TBL2); 7 | -------------------------------------------------------------------------------- /contrib/jsonb_plpython/jsonb_plpython2u.control: -------------------------------------------------------------------------------- 1 | # jsonb_plpython2u extension 2 | comment = 'transform between jsonb and plpython2u' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/jsonb_plpython2' 5 | relocatable = true 6 | requires = 'plpython2u' 7 | -------------------------------------------------------------------------------- /contrib/jsonb_plpython/jsonb_plpython3u.control: -------------------------------------------------------------------------------- 1 | # jsonb_plpython3u extension 2 | comment = 'transform between jsonb and plpython3u' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/jsonb_plpython3' 5 | relocatable = true 6 | requires = 'plpython3u' 7 | -------------------------------------------------------------------------------- /contrib/tsm_system_time/tsm_system_time.control: -------------------------------------------------------------------------------- 1 | # tsm_system_time extension 2 | comment = 'TABLESAMPLE method which accepts time in milliseconds as a limit' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/tsm_system_time' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /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 he it ja ko nb pl pt_BR ro ru sv ta tr vi zh_CN zh_TW 4 | GETTEXT_FILES = pg_config.c ../../common/config_info.c ../../common/exec.c 5 | -------------------------------------------------------------------------------- /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/modules/test_extensions/test_ext1--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/test/modules/test_extensions/test_ext1--1.0.sql */ 2 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 3 | \echo Use "CREATE EXTENSION test_ext1" to load this file. \quit 4 | -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext2--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/test/modules/test_extensions/test_ext2--1.0.sql */ 2 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 3 | \echo Use "CREATE EXTENSION test_ext2" to load this file. \quit 4 | -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext4--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/test/modules/test_extensions/test_ext4--1.0.sql */ 2 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 3 | \echo Use "CREATE EXTENSION test_ext4" to load this file. \quit 4 | -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext5--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/test/modules/test_extensions/test_ext5--1.0.sql */ 2 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 3 | \echo Use "CREATE EXTENSION test_ext5" to load this file. \quit 4 | -------------------------------------------------------------------------------- /contrib/ltree_plpython/ltree_plpython2u.control: -------------------------------------------------------------------------------- 1 | # ltree_plpython2u extension 2 | comment = 'transform between ltree and plpython2u' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/ltree_plpython2' 5 | relocatable = true 6 | requires = 'ltree,plpython2u' 7 | -------------------------------------------------------------------------------- /contrib/ltree_plpython/ltree_plpython3u.control: -------------------------------------------------------------------------------- 1 | # ltree_plpython3u extension 2 | comment = 'transform between ltree and plpython3u' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/ltree_plpython3' 5 | relocatable = true 6 | requires = 'ltree,plpython3u' 7 | -------------------------------------------------------------------------------- /contrib/ltree_plpython/ltree_plpythonu.control: -------------------------------------------------------------------------------- 1 | # ltree_plpythonu extension 2 | comment = 'transform between ltree and plpythonu' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/ltree_plpython2' 5 | relocatable = true 6 | requires = 'ltree,plpythonu' 7 | -------------------------------------------------------------------------------- /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.7' 4 | module_pathname = '$libdir/pg_stat_statements' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contrib/earthdistance/earthdistance.control: -------------------------------------------------------------------------------- 1 | # earthdistance extension 2 | comment = 'calculate great-circle distances on the surface of the Earth' 3 | default_version = '1.1' 4 | module_pathname = '$libdir/earthdistance' 5 | relocatable = true 6 | requires = 'cube' 7 | -------------------------------------------------------------------------------- /contrib/hstore_plpython/hstore_plpythonu.control: -------------------------------------------------------------------------------- 1 | # hstore_plpythonu extension 2 | comment = 'transform between hstore and plpythonu' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/hstore_plpython2' 5 | relocatable = true 6 | requires = 'hstore,plpythonu' 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 he it ja ko pl pt_BR ru sv tr zh_CN 4 | GETTEXT_FILES = pg_ctl.c ../../common/exec.c ../../common/fe_memutils.c ../../common/wait_error.c ../../port/path.c 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | /output_iso/ 12 | /tmp_check_iso/ 13 | -------------------------------------------------------------------------------- /contrib/btree_gist/sql/init.sql: -------------------------------------------------------------------------------- 1 | CREATE EXTENSION btree_gist; 2 | 3 | -- Check whether any of our opclasses fail amvalidate 4 | SELECT amname, opcname 5 | FROM pg_opclass opc LEFT JOIN pg_am am ON am.oid = opcmethod 6 | WHERE opc.oid >= 16384 AND NOT amvalidate(opc.oid); 7 | -------------------------------------------------------------------------------- /contrib/hstore_plpython/hstore_plpython2u.control: -------------------------------------------------------------------------------- 1 | # hstore_plpython2u extension 2 | comment = 'transform between hstore and plpython2u' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/hstore_plpython2' 5 | relocatable = true 6 | requires = 'hstore,plpython2u' 7 | -------------------------------------------------------------------------------- /contrib/hstore_plpython/hstore_plpython3u.control: -------------------------------------------------------------------------------- 1 | # hstore_plpython3u extension 2 | comment = 'transform between hstore and plpython3u' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/hstore_plpython3' 5 | relocatable = true 6 | requires = 'hstore,plpython3u' 7 | -------------------------------------------------------------------------------- /contrib/lo/lo--1.0--1.1.sql: -------------------------------------------------------------------------------- 1 | /* contrib/lo/lo--1.0--1.1.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION lo UPDATE TO '1.1'" to load this file. \quit 5 | 6 | ALTER FUNCTION lo_oid(lo) PARALLEL SAFE; 7 | -------------------------------------------------------------------------------- /src/bin/pg_verify_checksums/t/001_basic.pl: -------------------------------------------------------------------------------- 1 | use strict; 2 | use warnings; 3 | use TestLib; 4 | use Test::More tests => 8; 5 | 6 | program_help_ok('pg_verify_checksums'); 7 | program_version_ok('pg_verify_checksums'); 8 | program_options_handling_ok('pg_verify_checksums'); 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/test/modules/test_ddl_deparse/sql/alter_ts_config.sql: -------------------------------------------------------------------------------- 1 | -- 2 | -- ALTER TEXT SEARCH CONFIGURATION 3 | -- 4 | 5 | CREATE TEXT SEARCH CONFIGURATION en (copy=english); 6 | 7 | ALTER TEXT SEARCH CONFIGURATION en 8 | ALTER MAPPING FOR host, email, url, sfloat WITH simple; 9 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/sql/create_domain.sql: -------------------------------------------------------------------------------- 1 | --- 2 | --- CREATE_DOMAIN 3 | --- 4 | CREATE DOMAIN domainvarchar VARCHAR(5); 5 | 6 | CREATE DOMAIN japanese_postal_code AS TEXT 7 | CHECK( 8 | VALUE ~ '^\d{3}$' 9 | OR VALUE ~ '^\d{3}-\d{4}$' 10 | ); 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 | -------------------------------------------------------------------------------- /src/test/locale/sort-test.pl: -------------------------------------------------------------------------------- 1 | #! /usr/bin/perl 2 | 3 | use strict; 4 | use locale; 5 | 6 | open(my $in_fh, '<', $ARGV[0]) || die; 7 | chop(my (@words) = <$in_fh>); 8 | close($in_fh); 9 | 10 | $" = "\n"; 11 | my (@result) = sort @words; 12 | 13 | print "@result\n"; 14 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/expected/create_conversion.out: -------------------------------------------------------------------------------- 1 | --- 2 | --- CREATE_CONVERSION 3 | --- 4 | -- Simple test should suffice for this 5 | CREATE CONVERSION myconv FOR 'LATIN1' TO 'UTF8' FROM iso8859_1_to_utf8; 6 | NOTICE: DDL test: type simple, tag CREATE CONVERSION 7 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/expected/defprivs.out: -------------------------------------------------------------------------------- 1 | -- 2 | -- ALTER DEFAULT PRIVILEGES 3 | -- 4 | ALTER DEFAULT PRIVILEGES IN SCHEMA public 5 | REVOKE ALL PRIVILEGES ON TABLES FROM public; 6 | NOTICE: DDL test: type alter default privileges, tag ALTER DEFAULT PRIVILEGES 7 | -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext_cyclic1--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/test/modules/test_extensions/test_ext_cyclic1--1.0.sql */ 2 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 3 | \echo Use "CREATE EXTENSION test_ext_cyclic1" to load this file. \quit 4 | -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext_cyclic2--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/test/modules/test_extensions/test_ext_cyclic2--1.0.sql */ 2 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 3 | \echo Use "CREATE EXTENSION test_ext_cyclic2" to load this file. \quit 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contrib/btree_gin/sql/install_btree_gin.sql: -------------------------------------------------------------------------------- 1 | CREATE EXTENSION btree_gin; 2 | 3 | -- Check whether any of our opclasses fail amvalidate 4 | SELECT amname, opcname 5 | FROM pg_opclass opc LEFT JOIN pg_am am ON am.oid = opcmethod 6 | WHERE opc.oid >= 16384 AND NOT amvalidate(opc.oid); 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/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 | -------------------------------------------------------------------------------- /src/test/regress/.gitignore: -------------------------------------------------------------------------------- 1 | # Local binaries 2 | /pg_regress 3 | 4 | # Generated subdirectories 5 | /tmp_check/ 6 | /results/ 7 | /log/ 8 | 9 | # Note: regreesion.* are only left behind on a failure; that's why they're not ignored 10 | #/regression.diffs 11 | #/regression.out 12 | -------------------------------------------------------------------------------- /src/tools/msvc/install.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | REM src/tools/msvc/install.bat 3 | REM all the logic for this now belongs in install.pl. This file really 4 | REM only exists so you don't have to type "perl install.pl" 5 | REM Resist any temptation to add any logic here. 6 | @perl install.pl %* 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/nls.mk: -------------------------------------------------------------------------------- 1 | # src/pl/tcl/nls.mk 2 | CATALOG_NAME = pltcl 3 | AVAIL_LANGUAGES = cs de es fr it ja ko pl pt_BR ro ru sv tr vi 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/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 | -------------------------------------------------------------------------------- /src/tools/msvc/dummylib/Win32/Registry.pm: -------------------------------------------------------------------------------- 1 | package Win32::Registry; 2 | 3 | use strict; 4 | use warnings; 5 | 6 | use vars qw($HKEY_LOCAL_MACHINE); 7 | 8 | use Exporter (); 9 | our (@EXPORT, @ISA); 10 | @ISA = qw(Exporter); 11 | @EXPORT = qw($HKEY_LOCAL_MACHINE); 12 | 13 | 1; 14 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/compat_oracle-char_array.stdout: -------------------------------------------------------------------------------- 1 | Full Str. : Short Ind. 2 | " ": " " -1 3 | "AB ": "AB " 0 4 | "ABCD ": "ABCD" 0 5 | "ABCDE ": "ABCD" 5 6 | "ABCDEF ": "ABCD" 6 7 | "ABCDEFGHIJ": "ABCD" 10 8 | 9 | GOOD-BYE!! 10 | 11 | -------------------------------------------------------------------------------- /src/test/examples/testlibpq3.sql: -------------------------------------------------------------------------------- 1 | CREATE SCHEMA testlibpq3; 2 | SET search_path = testlibpq3; 3 | CREATE TABLE test1 (i int4, t text, b bytea); 4 | INSERT INTO test1 values (1, 'joe''s place', '\\000\\001\\002\\003\\004'); 5 | INSERT INTO test1 values (2, 'ho there', '\\004\\003\\002\\001\\000'); 6 | -------------------------------------------------------------------------------- /src/test/regress/resultmap: -------------------------------------------------------------------------------- 1 | float8:out:i.86-.*-freebsd=float8-small-is-zero.out 2 | float8:out:i.86-.*-openbsd=float8-small-is-zero.out 3 | float8:out:i.86-.*-netbsd=float8-small-is-zero.out 4 | float8:out:m68k-.*-netbsd=float8-small-is-zero.out 5 | float8:out:i.86-pc-cygwin=float8-small-is-zero.out 6 | -------------------------------------------------------------------------------- /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/bin/pg_upgrade/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_upgrade 2 | # Generated by test suite 3 | /pg_upgrade_internal.log 4 | /analyze_new_cluster.sh 5 | /delete_old_cluster.sh 6 | /analyze_new_cluster.bat 7 | /delete_old_cluster.bat 8 | /reindex_hash.sql 9 | /loadable_libraries.txt 10 | /log/ 11 | /tmp_check/ 12 | -------------------------------------------------------------------------------- /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/pl/plperl/nls.mk: -------------------------------------------------------------------------------- 1 | # src/pl/plperl/nls.mk 2 | CATALOG_NAME = plperl 3 | AVAIL_LANGUAGES = cs de es fr it ja ko pl pt_BR ro ru sv tr vi 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/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/test/modules/test_ddl_deparse/expected/create_sequence_1.out: -------------------------------------------------------------------------------- 1 | -- 2 | -- CREATE_SEQUENCE 3 | -- 4 | CREATE SEQUENCE fkey_table_seq 5 | INCREMENT BY 1 6 | MINVALUE 0 7 | MAXVALUE 1000000 8 | START 10 9 | CACHE 10 10 | CYCLE; 11 | NOTICE: DDL test: type simple, tag CREATE SEQUENCE 12 | -------------------------------------------------------------------------------- /HISTORY: -------------------------------------------------------------------------------- 1 | Release notes for all versions of PostgreSQL can be found on-line at 2 | https://www.postgresql.org/docs/current/static/release.html 3 | 4 | Distribution file sets include release notes for their version and preceding 5 | versions. Visit the file doc/src/sgml/html/release.html in an HTML browser. 6 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/expected/alter_type_enum.out: -------------------------------------------------------------------------------- 1 | --- 2 | --- ALTER_TYPE_ENUM 3 | --- 4 | ALTER TYPE enum_test ADD VALUE 'zzz' AFTER 'baz'; 5 | NOTICE: DDL test: type simple, tag ALTER TYPE 6 | ALTER TYPE enum_test ADD VALUE 'aaa' BEFORE 'foo'; 7 | NOTICE: DDL test: type simple, tag ALTER TYPE 8 | -------------------------------------------------------------------------------- /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 FROM unpackaged" to load this file. \quit 5 | 6 | ALTER EXTENSION autoinc ADD function autoinc(); 7 | -------------------------------------------------------------------------------- /contrib/oid2name/t/001_basic.pl: -------------------------------------------------------------------------------- 1 | use strict; 2 | use warnings; 3 | 4 | use TestLib; 5 | use Test::More tests => 8; 6 | 7 | ######################################### 8 | # Basic checks 9 | 10 | program_help_ok('oid2name'); 11 | program_version_ok('oid2name'); 12 | program_options_handling_ok('oid2name'); 13 | -------------------------------------------------------------------------------- /contrib/pgrowlocks/pgrowlocks--1.1--1.2.sql: -------------------------------------------------------------------------------- 1 | /* contrib/pgrowlocks/pgrowlocks--1.1--1.2.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION pgrowlocks UPDATE TO '1.2'" to load this file. \quit 5 | 6 | ALTER FUNCTION pgrowlocks(text) PARALLEL SAFE; 7 | -------------------------------------------------------------------------------- /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/test/modules/test_rbtree/sql/test_rbtree.sql: -------------------------------------------------------------------------------- 1 | CREATE EXTENSION test_rbtree; 2 | 3 | -- 4 | -- These tests don't produce any interesting output. We're checking that 5 | -- the operations complete without crashing or hanging and that none of their 6 | -- internal sanity tests fail. 7 | -- 8 | SELECT test_rb_tree(10000); 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/tools/pgindent/exclude_file_patterns: -------------------------------------------------------------------------------- 1 | #list of file patterns to exclude from pgindent runs, see notes in README 2 | /storage/s_lock\.h$ 3 | /port/atomics/ 4 | /utils/fmgrtab\.c$ 5 | /ecpg/test/expected/ 6 | /snowball/libstemmer/ 7 | /pl/plperl/ppport\.h$ 8 | /jit/llvmjit\.h$ 9 | /tmp_check/ 10 | /tmp_install/ 11 | -------------------------------------------------------------------------------- /src/template/win32: -------------------------------------------------------------------------------- 1 | # src/template/win32 2 | 3 | # --allow-multiple-definition is required to link pg_dump because it finds 4 | # pg_toupper() etc. in both libpq and pgport 5 | # --disable-auto-import is to ensure we get MSVC-like linking behavior 6 | LDFLAGS="$LDFLAGS -Wl,--allow-multiple-definition -Wl,--disable-auto-import" 7 | -------------------------------------------------------------------------------- /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 FROM unpackaged" to load this file. \quit 5 | 6 | ALTER EXTENSION moddatetime ADD function moddatetime(); 7 | -------------------------------------------------------------------------------- /src/bin/psql/psqlrc.sample: -------------------------------------------------------------------------------- 1 | -- 2 | -- system-wide 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 installation's sysconf directory and rename it psqlrc. 7 | -- The sysconf directory can be identified via "pg_config --sysconfdir". 8 | -- 9 | -------------------------------------------------------------------------------- /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 ko pl pt_BR ru sv tr vi 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/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 | -------------------------------------------------------------------------------- /src/tools/pgindent/pgperltidy: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # src/tools/pgindent/pgperltidy 4 | 5 | set -e 6 | 7 | # set this to override default perltidy program: 8 | PERLTIDY=${PERLTIDY:-perltidy} 9 | 10 | . src/tools/perlcheck/find_perl_files 11 | 12 | find_perl_files | xargs $PERLTIDY --profile=src/tools/pgindent/perltidyrc 13 | -------------------------------------------------------------------------------- /contrib/adminpack/adminpack--1.0--1.1.sql: -------------------------------------------------------------------------------- 1 | /* contrib/adminpack/adminpack--1.0--1.1.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION adminpack UPDATE TO '1.1'" to load this file. \quit 5 | 6 | REVOKE EXECUTE ON FUNCTION pg_catalog.pg_logfile_rotate() FROM PUBLIC; 7 | -------------------------------------------------------------------------------- /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 ALTER 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/pg_buffercache/pg_buffercache--1.1--1.2.sql: -------------------------------------------------------------------------------- 1 | /* contrib/pg_buffercache/pg_buffercache--1.1--1.2.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION pg_buffercache UPDATE TO '1.2'" to load this file. \quit 5 | 6 | ALTER FUNCTION pg_buffercache_pages() PARALLEL SAFE; 7 | -------------------------------------------------------------------------------- /contrib/pg_prewarm/pg_prewarm--1.0--1.1.sql: -------------------------------------------------------------------------------- 1 | /* contrib/pg_prewarm/pg_prewarm--1.0--1.1.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION pg_prewarm UPDATE TO '1.1'" to load this file. \quit 5 | 6 | ALTER FUNCTION pg_prewarm(regclass, text, text, int8, int8) PARALLEL SAFE; 7 | -------------------------------------------------------------------------------- /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 FROM unpackaged" to load this file. \quit 5 | 6 | ALTER EXTENSION pgrowlocks ADD function pgrowlocks(text); 7 | -------------------------------------------------------------------------------- /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/interfaces/ecpg/include/pgtypes.h: -------------------------------------------------------------------------------- 1 | /* src/interfaces/ecpg/include/pgtypes.h */ 2 | 3 | #ifndef PGTYPES_H 4 | #define PGTYPES_H 5 | 6 | #ifdef __cplusplus 7 | extern "C" 8 | { 9 | #endif 10 | 11 | extern void PGTYPESchar_free(char *ptr); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | #endif /* PGTYPES_H */ 18 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contrib/btree_gist/expected/init.out: -------------------------------------------------------------------------------- 1 | CREATE EXTENSION btree_gist; 2 | -- Check whether any of our opclasses fail amvalidate 3 | SELECT amname, opcname 4 | FROM pg_opclass opc LEFT JOIN pg_am am ON am.oid = opcmethod 5 | WHERE opc.oid >= 16384 AND NOT amvalidate(opc.oid); 6 | amname | opcname 7 | --------+--------- 8 | (0 rows) 9 | 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 FROM unpackaged" to load this file. \quit 5 | 6 | ALTER EXTENSION insert_username ADD function insert_username(); 7 | -------------------------------------------------------------------------------- /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/test/modules/test_ddl_deparse/sql/alter_sequence.sql: -------------------------------------------------------------------------------- 1 | -- 2 | -- ALTER_SEQUENCE 3 | -- 4 | 5 | ALTER SEQUENCE fkey_table_seq 6 | MINVALUE 10 7 | START 20 8 | CACHE 1 9 | NO CYCLE; 10 | 11 | ALTER SEQUENCE fkey_table_seq 12 | RENAME TO fkey_table_seq_renamed; 13 | 14 | ALTER SEQUENCE fkey_table_seq_renamed 15 | SET SCHEMA foo; 16 | -------------------------------------------------------------------------------- /contrib/btree_gin/expected/install_btree_gin.out: -------------------------------------------------------------------------------- 1 | CREATE EXTENSION btree_gin; 2 | -- Check whether any of our opclasses fail amvalidate 3 | SELECT amname, opcname 4 | FROM pg_opclass opc LEFT JOIN pg_am am ON am.oid = opcmethod 5 | WHERE opc.oid >= 16384 AND NOT amvalidate(opc.oid); 6 | amname | opcname 7 | --------+--------- 8 | (0 rows) 9 | 10 | -------------------------------------------------------------------------------- /src/bin/scripts/t/101_vacuumdb_all.pl: -------------------------------------------------------------------------------- 1 | use strict; 2 | use warnings; 3 | 4 | use PostgresNode; 5 | use Test::More tests => 2; 6 | 7 | my $node = get_new_node('main'); 8 | $node->init; 9 | $node->start; 10 | 11 | $node->issues_sql_like( 12 | [ 'vacuumdb', '-a' ], 13 | qr/statement: VACUUM.*statement: VACUUM/s, 14 | 'vacuum all databases'); 15 | -------------------------------------------------------------------------------- /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 sv tr vi zh_CN zh_TW 4 | GETTEXT_FILES = descriptor.c ecpg.c pgc.c preproc.c type.c variable.c 5 | GETTEXT_TRIGGERS = mmerror:3 mmfatal:2 6 | GETTEXT_FLAGS = mmerror:3:c-format mmfatal:2:c-format 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contrib/citext/citext--1.2--1.3.sql: -------------------------------------------------------------------------------- 1 | /* contrib/citext/citext--1.2--1.3.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION citext UPDATE TO '1.3'" to load this file. \quit 5 | 6 | UPDATE pg_aggregate SET aggcombinefn = 'citext_smaller' 7 | WHERE aggfnoid = 'min(citext)'::pg_catalog.regprocedure; 8 | -------------------------------------------------------------------------------- /contrib/dblink/pg_service.conf: -------------------------------------------------------------------------------- 1 | # pg_service.conf for minimally exercising libpq use of LDAP. 2 | 3 | # Having failed to reach an LDAP server, libpq essentially ignores the 4 | # "service=test_ldap" in its connection string. Contact the "discard" 5 | # service; the test works whether or not it answers. 6 | [test_ldap] 7 | ldap://127.0.0.1:9/base?attribute?one?filter 8 | -------------------------------------------------------------------------------- /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 ecpg1_regression on port 4 | [NO_PID]: sqlca: code: 0, state: 00000 5 | [NO_PID]: ecpg_finish: connection ecpg1_regression closed 6 | [NO_PID]: sqlca: code: 0, state: 00000 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/expected/matviews.out: -------------------------------------------------------------------------------- 1 | -- 2 | -- Materialized views 3 | -- 4 | CREATE MATERIALIZED VIEW ddl_deparse_mv AS 5 | SELECT * FROM datatype_table LIMIT 1 WITH NO DATA; 6 | NOTICE: DDL test: type simple, tag CREATE MATERIALIZED VIEW 7 | REFRESH MATERIALIZED VIEW ddl_deparse_mv; 8 | NOTICE: DDL test: type simple, tag REFRESH MATERIALIZED VIEW 9 | -------------------------------------------------------------------------------- /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 FROM unpackaged" 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 FROM unpackaged" 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/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/test/modules/test_ddl_deparse/expected/create_domain.out: -------------------------------------------------------------------------------- 1 | --- 2 | --- CREATE_DOMAIN 3 | --- 4 | CREATE DOMAIN domainvarchar VARCHAR(5); 5 | NOTICE: DDL test: type simple, tag CREATE DOMAIN 6 | CREATE DOMAIN japanese_postal_code AS TEXT 7 | CHECK( 8 | VALUE ~ '^\d{3}$' 9 | OR VALUE ~ '^\d{3}-\d{4}$' 10 | ); 11 | NOTICE: DDL test: type simple, tag CREATE DOMAIN 12 | -------------------------------------------------------------------------------- /contrib/pg_stat_statements/pg_stat_statements--1.4--1.5.sql: -------------------------------------------------------------------------------- 1 | /* contrib/pg_stat_statements/pg_stat_statements--1.4--1.5.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION pg_stat_statements UPDATE TO '1.5'" to load this file. \quit 5 | 6 | GRANT EXECUTE ON FUNCTION pg_stat_statements_reset() TO pg_read_all_stats; 7 | -------------------------------------------------------------------------------- /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/bin/pg_basebackup/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_basebackup/nls.mk 2 | CATALOG_NAME = pg_basebackup 3 | AVAIL_LANGUAGES = de es fr he it ja ko pl pt_BR ru sv tr vi zh_CN 4 | GETTEXT_FILES = pg_basebackup.c pg_receivewal.c pg_recvlogical.c receivelog.c streamutil.c walmethods.c ../../common/fe_memutils.c ../../common/file_utils.c 5 | GETTEXT_TRIGGERS = simple_prompt tar_set_error 6 | -------------------------------------------------------------------------------- /contrib/pgcrypto/pgcrypto--1.0--1.1.sql: -------------------------------------------------------------------------------- 1 | /* contrib/pgcrypto/pgcrypto--1.0--1.1.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION pgcrypto UPDATE TO '1.1'" to load this file. \quit 5 | 6 | CREATE FUNCTION gen_random_uuid() 7 | RETURNS uuid 8 | AS 'MODULE_PATHNAME', 'pg_random_uuid' 9 | LANGUAGE C VOLATILE; 10 | -------------------------------------------------------------------------------- /doc/src/sgml/release-12.sgml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Release 12 6 | 7 | JIT is enabled by default in this release. It was disabled by 8 | default in PG 11, so we document is enablement here. 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /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 | /* source created by ecpg which defines this */ 9 | #ifndef _ECPGLIB_H 10 | typedef decimal dec_t; 11 | #endif /* ndef _ECPGLIB_H */ 12 | 13 | #endif /* ndef _ECPG_DECIMAL_H */ 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/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/test/modules/test_extensions/test_ext7--1.0--2.0.sql: -------------------------------------------------------------------------------- 1 | /* src/test/modules/test_extensions/test_ext7--1.0--2.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION test_ext7 UPDATE TO '2.0'" to load this file. \quit 5 | 6 | -- drop some tables with serial columns 7 | drop table ext7_table1; 8 | drop table old_table1; 9 | -------------------------------------------------------------------------------- /src/test/modules/test_rbtree/test_rbtree--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/test/modules/test_rbtree/test_rbtree--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION test_rbtree" to load this file. \quit 5 | 6 | CREATE FUNCTION test_rb_tree(size INTEGER) 7 | RETURNS pg_catalog.void STRICT 8 | AS 'MODULE_PATHNAME' LANGUAGE C; 9 | -------------------------------------------------------------------------------- /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/test/ssl/server-cn-only.config: -------------------------------------------------------------------------------- 1 | # An OpenSSL format CSR config file for creating a server certificate. 2 | # 3 | 4 | [ req ] 5 | distinguished_name = req_distinguished_name 6 | prompt = no 7 | 8 | [ req_distinguished_name ] 9 | CN = common-name.pg-ssltest.test 10 | OU = PostgreSQL test suite 11 | 12 | # For Subject Alternative Names 13 | [ v3_req ] 14 | -------------------------------------------------------------------------------- /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 sv tr vi 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/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/modules/dummy_seclabel/dummy_seclabel--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/test/modules/dummy_seclabel/dummy_seclabel--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION dummy_seclabel" to load this file. \quit 5 | 6 | CREATE FUNCTION dummy_seclabel_dummy() 7 | RETURNS pg_catalog.void 8 | AS 'MODULE_PATHNAME' LANGUAGE C; 9 | -------------------------------------------------------------------------------- /src/test/modules/test_rbtree/expected/test_rbtree.out: -------------------------------------------------------------------------------- 1 | CREATE EXTENSION test_rbtree; 2 | -- 3 | -- These tests don't produce any interesting output. We're checking that 4 | -- the operations complete without crashing or hanging and that none of their 5 | -- internal sanity tests fail. 6 | -- 7 | SELECT test_rb_tree(10000); 8 | test_rb_tree 9 | -------------- 10 | 11 | (1 row) 12 | 13 | -------------------------------------------------------------------------------- /contrib/pg_buffercache/pg_buffercache--1.2--1.3.sql: -------------------------------------------------------------------------------- 1 | /* contrib/pg_buffercache/pg_buffercache--1.2--1.3.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION pg_buffercache UPDATE TO '1.3'" to load this file. \quit 5 | 6 | GRANT EXECUTE ON FUNCTION pg_buffercache_pages() TO pg_monitor; 7 | GRANT SELECT ON pg_buffercache TO pg_monitor; 8 | -------------------------------------------------------------------------------- /src/backend/tsearch/dicts/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 | -------------------------------------------------------------------------------- /src/backend/utils/mb/conversion_procs/proc.mk: -------------------------------------------------------------------------------- 1 | SRCS += $(NAME).c 2 | OBJS += $(NAME).o $(WIN32RES) 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/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/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 ecpg1_regression 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/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 | -------------------------------------------------------------------------------- /src/test/modules/worker_spi/worker_spi--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/test/modules/worker_spi/worker_spi--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION worker_spi" to load this file. \quit 5 | 6 | CREATE FUNCTION worker_spi_launch(pg_catalog.int4) 7 | RETURNS pg_catalog.int4 STRICT 8 | AS 'MODULE_PATHNAME' 9 | LANGUAGE C; 10 | -------------------------------------------------------------------------------- /src/test/ssl/client.config: -------------------------------------------------------------------------------- 1 | # An OpenSSL format CSR config file for creating a client certificate. 2 | # 3 | # The certificate is for user "ssltestuser". 4 | 5 | [ req ] 6 | distinguished_name = req_distinguished_name 7 | prompt = no 8 | 9 | [ req_distinguished_name ] 10 | CN = ssltestuser 11 | 12 | # no extensions in client certs 13 | [ v3_req ] 14 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contrib/pg_freespacemap/pg_freespacemap--1.0--1.1.sql: -------------------------------------------------------------------------------- 1 | /* contrib/pg_freespacemap/pg_freespacemap--1.0--1.1.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION pg_freespacemap UPDATE TO '1.1'" to load this file. \quit 5 | 6 | ALTER FUNCTION pg_freespace(regclass, bigint) PARALLEL SAFE; 7 | ALTER FUNCTION pg_freespace(regclass) PARALLEL SAFE; 8 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/compat_oracle/Makefile: -------------------------------------------------------------------------------- 1 | subdir = src/interfaces/ecpg/test/compat_oracle 2 | top_builddir = ../../../../.. 3 | include $(top_builddir)/src/Makefile.global 4 | include $(top_srcdir)/$(subdir)/../Makefile.regress 5 | 6 | # Use special oracle compatibility switch for all tests in this directory 7 | ECPG += -C ORACLE 8 | 9 | TESTS = char_array char_array.c 10 | 11 | all: $(TESTS) 12 | -------------------------------------------------------------------------------- /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/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/tsm_system_rows/tsm_system_rows--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/tsm_system_rows/tsm_system_rows--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION tsm_system_rows" to load this file. \quit 5 | 6 | CREATE FUNCTION system_rows(internal) 7 | RETURNS tsm_handler 8 | AS 'MODULE_PATHNAME', 'tsm_system_rows_handler' 9 | LANGUAGE C STRICT; 10 | -------------------------------------------------------------------------------- /contrib/tsm_system_time/tsm_system_time--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/tsm_system_time/tsm_system_time--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION tsm_system_time" to load this file. \quit 5 | 6 | CREATE FUNCTION system_time(internal) 7 | RETURNS tsm_handler 8 | AS 'MODULE_PATHNAME', 'tsm_system_time_handler' 9 | LANGUAGE C STRICT; 10 | -------------------------------------------------------------------------------- /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.pl' 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 | -------------------------------------------------------------------------------- /src/pl/plpgsql/src/plpgsql--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/pl/plpgsql/src/plpgsql--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 plpgsql; 10 | 11 | COMMENT ON PROCEDURAL LANGUAGE plpgsql IS 'PL/pgSQL procedural language'; 12 | -------------------------------------------------------------------------------- /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 = brin common gin gist hash heap index nbtree rmgrdesc spgist \ 12 | table tablesample transam 13 | 14 | include $(top_srcdir)/src/backend/common.mk 15 | -------------------------------------------------------------------------------- /src/bin/scripts/t/091_reindexdb_all.pl: -------------------------------------------------------------------------------- 1 | use strict; 2 | use warnings; 3 | 4 | use PostgresNode; 5 | use Test::More tests => 2; 6 | 7 | my $node = get_new_node('main'); 8 | $node->init; 9 | $node->start; 10 | 11 | $ENV{PGOPTIONS} = '--client-min-messages=WARNING'; 12 | 13 | $node->issues_sql_like( 14 | [ 'reindexdb', '-a' ], 15 | qr/statement: REINDEX.*statement: REINDEX/s, 16 | 'reindex all databases'); 17 | -------------------------------------------------------------------------------- /src/include/pg_trace.h: -------------------------------------------------------------------------------- 1 | /* ---------- 2 | * pg_trace.h 3 | * 4 | * Definitions for the PostgreSQL tracing framework 5 | * 6 | * Copyright (c) 2006-2019, 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 | -------------------------------------------------------------------------------- /contrib/pg_stat_statements/pg_stat_statements--1.3--1.4.sql: -------------------------------------------------------------------------------- 1 | /* contrib/pg_stat_statements/pg_stat_statements--1.3--1.4.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION pg_stat_statements UPDATE TO '1.4'" to load this file. \quit 5 | 6 | ALTER FUNCTION pg_stat_statements_reset() PARALLEL SAFE; 7 | ALTER FUNCTION pg_stat_statements(boolean) PARALLEL SAFE; 8 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/sql/create_trigger.sql: -------------------------------------------------------------------------------- 1 | --- 2 | --- CREATE_TRIGGER 3 | --- 4 | 5 | CREATE FUNCTION plpgsql_function_trigger_1() 6 | RETURNS TRIGGER 7 | LANGUAGE plpgsql 8 | AS $$ 9 | BEGIN 10 | RETURN NEW; 11 | END; 12 | $$; 13 | 14 | CREATE TRIGGER trigger_1 15 | BEFORE INSERT OR UPDATE 16 | ON datatype_table 17 | FOR EACH ROW 18 | EXECUTE PROCEDURE plpgsql_function_trigger_1(); 19 | -------------------------------------------------------------------------------- /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 FROM unpackaged" 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/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 | -------------------------------------------------------------------------------- /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() etc. in both libpq and pgport 7 | # we'd prefer to use --disable-auto-import to match MSVC linking behavior, 8 | # but support for it in Cygwin is too haphazard 9 | LDFLAGS="$LDFLAGS -Wl,--allow-multiple-definition -Wl,--enable-auto-import" 10 | -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext3--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/test/modules/test_extensions/test_ext3--1.0.sql */ 2 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 3 | \echo Use "CREATE EXTENSION test_ext3" to load this file. \quit 4 | 5 | CREATE TABLE test_ext3_table (col_old INT); 6 | 7 | ALTER TABLE test_ext3_table RENAME col_old TO col_new; 8 | 9 | UPDATE test_ext3_table SET col_new = 0; 10 | -------------------------------------------------------------------------------- /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/common/username.h: -------------------------------------------------------------------------------- 1 | /* 2 | * username.h 3 | * lookup effective username 4 | * 5 | * Copyright (c) 2003-2019, PostgreSQL Global Development Group 6 | * 7 | * src/include/common/username.h 8 | */ 9 | #ifndef USERNAME_H 10 | #define USERNAME_H 11 | 12 | extern const char *get_user_name(char **errstr); 13 | extern const char *get_user_name_or_exit(const char *progname); 14 | 15 | #endif /* USERNAME_H */ 16 | -------------------------------------------------------------------------------- /src/include/lib/knapsack.h: -------------------------------------------------------------------------------- 1 | /* 2 | * knapsack.h 3 | * 4 | * Copyright (c) 2017-2019, PostgreSQL Global Development Group 5 | * 6 | * src/include/lib/knapsack.h 7 | */ 8 | #ifndef KNAPSACK_H 9 | #define KNAPSACK_H 10 | 11 | #include "nodes/bitmapset.h" 12 | 13 | extern Bitmapset *DiscreteKnapsack(int max_weight, int num_items, 14 | int *item_weights, double *item_values); 15 | 16 | #endif /* KNAPSACK_H */ 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 | /* source created by ecpg which defines these symbols */ 9 | #ifndef _ECPGLIB_H 10 | typedef timestamp dtime_t; 11 | typedef interval intrvl_t; 12 | #endif /* ndef _ECPGLIB_H */ 13 | 14 | #endif /* ndef _ECPG_DATETIME_H */ 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/expected/alter_ts_config.out: -------------------------------------------------------------------------------- 1 | -- 2 | -- ALTER TEXT SEARCH CONFIGURATION 3 | -- 4 | CREATE TEXT SEARCH CONFIGURATION en (copy=english); 5 | NOTICE: DDL test: type simple, tag CREATE TEXT SEARCH CONFIGURATION 6 | ALTER TEXT SEARCH CONFIGURATION en 7 | ALTER MAPPING FOR host, email, url, sfloat WITH simple; 8 | NOTICE: DDL test: type alter text search configuration, tag ALTER TEXT SEARCH CONFIGURATION 9 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/sql/create_schema.sql: -------------------------------------------------------------------------------- 1 | -- 2 | -- CREATE_SCHEMA 3 | -- 4 | 5 | CREATE SCHEMA foo; 6 | 7 | CREATE SCHEMA IF NOT EXISTS bar; 8 | 9 | CREATE SCHEMA baz; 10 | 11 | -- Will not be created, and will not be handled by the 12 | -- event trigger 13 | CREATE SCHEMA IF NOT EXISTS baz; 14 | 15 | CREATE SCHEMA element_test 16 | CREATE TABLE foo (id int) 17 | CREATE VIEW bar AS SELECT * FROM foo; 18 | -------------------------------------------------------------------------------- /src/bin/psql/mainloop.h: -------------------------------------------------------------------------------- 1 | /* 2 | * psql - the PostgreSQL interactive terminal 3 | * 4 | * Copyright (c) 2000-2019, PostgreSQL Global Development Group 5 | * 6 | * src/bin/psql/mainloop.h 7 | */ 8 | #ifndef MAINLOOP_H 9 | #define MAINLOOP_H 10 | 11 | #include "fe_utils/psqlscan.h" 12 | 13 | extern const PsqlScanCallbacks psqlscan_callbacks; 14 | 15 | extern int MainLoop(FILE *source); 16 | 17 | #endif /* MAINLOOP_H */ 18 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /src/test/regress/sql/init_privs.sql: -------------------------------------------------------------------------------- 1 | -- Test initial privileges 2 | 3 | -- There should always be some initial privileges, set up by initdb 4 | SELECT count(*) > 0 FROM pg_init_privs; 5 | 6 | -- Intentionally include some non-initial privs for pg_dump to dump out 7 | GRANT SELECT ON pg_proc TO CURRENT_USER; 8 | GRANT SELECT (prosrc) ON pg_proc TO CURRENT_USER; 9 | 10 | GRANT SELECT (rolname, rolsuper) ON pg_authid TO CURRENT_USER; 11 | -------------------------------------------------------------------------------- /src/test/ssl/root_ca.config: -------------------------------------------------------------------------------- 1 | # A root certificate authority. The server and client CA's certificates 2 | # are signed by this root CA. 3 | 4 | [ req ] 5 | distinguished_name = req_distinguished_name 6 | prompt = no 7 | 8 | [ req_distinguished_name ] 9 | CN = Test root CA for PostgreSQL SSL regression test suite 10 | 11 | # Extensions for CA certs 12 | [ v3_ca ] 13 | basicConstraints = CA:true 14 | -------------------------------------------------------------------------------- /contrib/cube/cube--1.2--1.3.sql: -------------------------------------------------------------------------------- 1 | /* contrib/cube/cube--1.2--1.3.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION cube UPDATE TO '1.3'" to load this file. \quit 5 | 6 | ALTER OPERATOR <= (cube, cube) SET ( 7 | RESTRICT = scalarlesel, JOIN = scalarlejoinsel 8 | ); 9 | 10 | ALTER OPERATOR >= (cube, cube) SET ( 11 | RESTRICT = scalargesel, JOIN = scalargejoinsel 12 | ); 13 | -------------------------------------------------------------------------------- /contrib/intagg/Makefile: -------------------------------------------------------------------------------- 1 | # contrib/intagg/Makefile 2 | 3 | EXTENSION = intagg 4 | DATA = intagg--1.1.sql intagg--1.0--1.1.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/pg_freespacemap/pg_freespacemap--1.1--1.2.sql: -------------------------------------------------------------------------------- 1 | /* contrib/pg_freespacemap/pg_freespacemap--1.1--1.2.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION pg_freespacemap UPDATE TO '1.2'" to load this file. \quit 5 | 6 | GRANT EXECUTE ON FUNCTION pg_freespace(regclass, bigint) TO pg_stat_scan_tables; 7 | GRANT EXECUTE ON FUNCTION pg_freespace(regclass) TO pg_stat_scan_tables; 8 | -------------------------------------------------------------------------------- /src/bin/initdb/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/initdb/nls.mk 2 | CATALOG_NAME = initdb 3 | AVAIL_LANGUAGES = cs de es fr he it ja ko pl pt_BR ru sv tr vi zh_CN 4 | GETTEXT_FILES = findtimezone.c initdb.c ../../common/exec.c ../../common/fe_memutils.c ../../common/file_utils.c ../../common/pgfnames.c ../../common/restricted_token.c ../../common/rmtree.c ../../common/username.c ../../common/wait_error.c ../../port/dirmod.c 5 | GETTEXT_TRIGGERS = simple_prompt 6 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /contrib/auth_delay/Makefile: -------------------------------------------------------------------------------- 1 | # contrib/auth_delay/Makefile 2 | 3 | MODULES = auth_delay 4 | PGFILEDESC = "auth_delay - delay authentication failure reports" 5 | 6 | ifdef USE_PGXS 7 | PG_CONFIG = pg_config 8 | PGXS := $(shell $(PG_CONFIG) --pgxs) 9 | include $(PGXS) 10 | else 11 | subdir = contrib/auth_delay 12 | top_builddir = ../.. 13 | include $(top_builddir)/src/Makefile.global 14 | include $(top_srcdir)/contrib/contrib-global.mk 15 | endif 16 | -------------------------------------------------------------------------------- /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 FROM unpackaged" 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 | -------------------------------------------------------------------------------- /contrib/pg_stat_statements/pg_stat_statements--1.5--1.6.sql: -------------------------------------------------------------------------------- 1 | /* contrib/pg_stat_statements/pg_stat_statements--1.5--1.6.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION pg_stat_statements UPDATE TO '1.6'" to load this file. \quit 5 | 6 | -- Execution is only allowed for superusers, fixing issue with 1.5. 7 | REVOKE EXECUTE ON FUNCTION pg_stat_statements_reset() FROM pg_read_all_stats; 8 | -------------------------------------------------------------------------------- /contrib/seg/seg--1.1--1.2.sql: -------------------------------------------------------------------------------- 1 | /* contrib/seg/seg--1.1--1.2.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION seg UPDATE TO '1.2'" to load this file. \quit 5 | 6 | ALTER OPERATOR <= (seg, seg) SET ( 7 | RESTRICT = scalarlesel, 8 | JOIN = scalarlejoinsel 9 | ); 10 | 11 | ALTER OPERATOR >= (seg, seg) SET ( 12 | RESTRICT = scalargesel, 13 | JOIN = scalargejoinsel 14 | ); 15 | -------------------------------------------------------------------------------- /src/bin/psql/tab-complete.h: -------------------------------------------------------------------------------- 1 | /* 2 | * psql - the PostgreSQL interactive terminal 3 | * 4 | * Copyright (c) 2000-2019, 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 "pqexpbuffer.h" 12 | 13 | extern PQExpBuffer tab_completion_query_buf; 14 | 15 | extern void initialize_readline(void); 16 | 17 | #endif /* TAB_COMPLETE_H */ 18 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/test/modules/test_ddl_deparse/sql/create_view.sql: -------------------------------------------------------------------------------- 1 | -- 2 | -- CREATE_VIEW 3 | -- 4 | 5 | CREATE VIEW static_view AS 6 | SELECT 'foo'::TEXT AS col; 7 | 8 | CREATE OR REPLACE VIEW static_view AS 9 | SELECT 'bar'::TEXT AS col; 10 | 11 | CREATE VIEW datatype_view AS 12 | SELECT * FROM datatype_table; 13 | 14 | CREATE RECURSIVE VIEW nums_1_100 (n) AS 15 | VALUES (1) 16 | UNION ALL 17 | SELECT n+1 FROM nums_1_100 WHERE n < 100; 18 | -------------------------------------------------------------------------------- /src/tools/make_etags: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # src/tools/make_etags 4 | 5 | command -v etags >/dev/null || \ 6 | { echo "'etags' program not found" 1>&2; exit 1; } 7 | 8 | rm -f ./TAGS 9 | 10 | find `pwd`/ -type f -name '*.[chyl]' -print | 11 | xargs etags --append -o TAGS 12 | 13 | find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -type d -print | 14 | while read DIR 15 | do [ "$DIR" != "." ] && ln -f -s `pwd`/TAGS "$DIR" 16 | done 17 | -------------------------------------------------------------------------------- /src/bin/pg_rewind/t/005_same_timeline.pl: -------------------------------------------------------------------------------- 1 | use strict; 2 | use warnings; 3 | use TestLib; 4 | use Test::More tests => 1; 5 | 6 | use RewindTest; 7 | 8 | # Test that running pg_rewind if the two clusters are on the same 9 | # timeline runs successfully. 10 | 11 | RewindTest::setup_cluster(); 12 | RewindTest::start_master(); 13 | RewindTest::create_standby(); 14 | RewindTest::run_pg_rewind('local'); 15 | RewindTest::clean_rewind_test(); 16 | exit(0); 17 | -------------------------------------------------------------------------------- /src/include/port/aix.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/include/port/aix.h 3 | */ 4 | #define CLASS_CONFLICT 5 | #define DISABLE_XOPEN_NLS 6 | 7 | /* 8 | * "IBM XL C/C++ for AIX, V12.1" miscompiles, for 32-bit, some inline 9 | * expansions of ginCompareItemPointers() "long long" arithmetic. To take 10 | * advantage of inlining, build a 64-bit PostgreSQL. 11 | */ 12 | #if defined(__ILP32__) && defined(__IBMC__) 13 | #define PG_FORCE_DISABLE_INLINE 14 | #endif 15 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_dutch.h: -------------------------------------------------------------------------------- 1 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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/include/snowball/libstemmer/stem_UTF_8_irish.h: -------------------------------------------------------------------------------- 1 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * irish_UTF_8_create_env(void); 9 | extern void irish_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int irish_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_tamil.h: -------------------------------------------------------------------------------- 1 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * tamil_UTF_8_create_env(void); 9 | extern void tamil_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int tamil_UTF_8_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 | -------------------------------------------------------------------------------- /contrib/sslinfo/sslinfo--1.0--1.1.sql: -------------------------------------------------------------------------------- 1 | /* contrib/sslinfo/sslinfo--1.0--1.1.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "ALTER EXTENSION sslinfo UPDATE TO '1.1'" to load this file. \quit 5 | 6 | CREATE FUNCTION 7 | ssl_extension_info(OUT name text, 8 | OUT value text, 9 | OUT critical boolean 10 | ) RETURNS SETOF record 11 | AS 'MODULE_PATHNAME', 'ssl_extension_info' 12 | LANGUAGE C STRICT; 13 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_arabic.h: -------------------------------------------------------------------------------- 1 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * arabic_UTF_8_create_env(void); 9 | extern void arabic_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int arabic_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_danish.h: -------------------------------------------------------------------------------- 1 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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_nepali.h: -------------------------------------------------------------------------------- 1 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * nepali_UTF_8_create_env(void); 9 | extern void nepali_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int nepali_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 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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/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/include/snowball/libstemmer/stem_UTF_8_english.h: -------------------------------------------------------------------------------- 1 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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/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/test/isolation/expected/read-write-unique-3.out: -------------------------------------------------------------------------------- 1 | Parsed test spec with 2 sessions 2 | 3 | starting permutation: rw1 rw2 c1 c2 4 | step rw1: SELECT insert_unique(1, '1'); 5 | insert_unique 6 | 7 | 8 | step rw2: SELECT insert_unique(1, '2'); 9 | step c1: COMMIT; 10 | step rw2: <... completed> 11 | error in steps c1 rw2: ERROR: could not serialize access due to read/write dependencies among transactions 12 | step c2: COMMIT; 13 | -------------------------------------------------------------------------------- /contrib/tcn/Makefile: -------------------------------------------------------------------------------- 1 | # contrib/tcn/Makefile 2 | 3 | MODULES = tcn 4 | 5 | EXTENSION = tcn 6 | DATA = tcn--1.0.sql 7 | PGFILEDESC = "tcn - trigger function notifying listeners" 8 | 9 | ifdef USE_PGXS 10 | PG_CONFIG = pg_config 11 | PGXS := $(shell $(PG_CONFIG) --pgxs) 12 | include $(PGXS) 13 | else 14 | subdir = contrib/tcn 15 | top_builddir = ../.. 16 | include $(top_builddir)/src/Makefile.global 17 | include $(top_srcdir)/contrib/contrib-global.mk 18 | endif 19 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_KOI8_R_russian.h: -------------------------------------------------------------------------------- 1 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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_hungarian.h: -------------------------------------------------------------------------------- 1 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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_romanian.h: -------------------------------------------------------------------------------- 1 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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/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 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_dutch.h: -------------------------------------------------------------------------------- 1 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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_ISO_8859_1_irish.h: -------------------------------------------------------------------------------- 1 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * irish_ISO_8859_1_create_env(void); 9 | extern void irish_ISO_8859_1_close_env(struct SN_env * z); 10 | 11 | extern int irish_ISO_8859_1_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_indonesian.h: -------------------------------------------------------------------------------- 1 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * indonesian_UTF_8_create_env(void); 9 | extern void indonesian_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int indonesian_UTF_8_stem(struct SN_env * z); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_lithuanian.h: -------------------------------------------------------------------------------- 1 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern struct SN_env * lithuanian_UTF_8_create_env(void); 9 | extern void lithuanian_UTF_8_close_env(struct SN_env * z); 10 | 11 | extern int lithuanian_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 | /* This file was generated automatically by the Snowball to ISO C compiler */ 2 | /* http://snowballstem.org/ */ 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/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 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/preproc-pointer_to_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/interfaces/libpq/nls.mk: -------------------------------------------------------------------------------- 1 | # src/interfaces/libpq/nls.mk 2 | CATALOG_NAME = libpq 3 | AVAIL_LANGUAGES = cs de es fr he it ja ko pl pt_BR ru sv tr zh_CN zh_TW 4 | GETTEXT_FILES = fe-auth.c fe-auth-scram.c fe-connect.c fe-exec.c fe-lobj.c fe-misc.c fe-protocol2.c fe-protocol3.c fe-secure.c fe-secure-common.c fe-secure-openssl.c win32.c 5 | GETTEXT_TRIGGERS = libpq_gettext pqInternalNotice:2 6 | GETTEXT_FLAGS = libpq_gettext:1:pass-c-format pqInternalNotice:2:c-format 7 | -------------------------------------------------------------------------------- /src/makefiles/Makefile.linux: -------------------------------------------------------------------------------- 1 | AROPT = crs 2 | 3 | export_dynamic = -Wl,-E 4 | # Use --enable-new-dtags to generate DT_RUNPATH instead of DT_RPATH. 5 | # This allows LD_LIBRARY_PATH to still work when needed. 6 | rpath = -Wl,-rpath,'$(rpathdir)',--enable-new-dtags 7 | 8 | DLSUFFIX = .so 9 | 10 | CFLAGS_SL = -fPIC 11 | 12 | 13 | # Rule for building a shared library from a single .o file 14 | %.so: %.o 15 | $(CC) $(CFLAGS) $< $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ 16 | --------------------------------------------------------------------------------