├── src ├── backend │ ├── port │ │ ├── tas │ │ │ └── dummy.s │ │ └── .gitignore │ ├── utils │ │ ├── misc │ │ │ └── .gitignore │ │ ├── adt │ │ │ └── .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 │ │ ├── netbsd.h │ │ ├── openbsd.h │ │ ├── win32 │ │ │ ├── grp.h │ │ │ ├── dlfcn.h │ │ │ ├── netdb.h │ │ │ ├── pwd.h │ │ │ ├── sys │ │ │ │ └── wait.h │ │ │ ├── arpa │ │ │ │ └── inet.h │ │ │ └── netinet │ │ │ │ └── in.h │ │ ├── hpux.h │ │ ├── win32_msvc │ │ │ ├── sys │ │ │ │ ├── file.h │ │ │ │ ├── time.h │ │ │ │ └── param.h │ │ │ ├── utime.h │ │ │ └── unistd.h │ │ ├── darwin.h │ │ └── freebsd.h │ ├── catalog │ │ └── .gitignore │ ├── .gitignore │ ├── utils │ │ └── .gitignore │ ├── pg_config_ext.h.in │ ├── snowball │ │ └── libstemmer │ │ │ ├── stem_UTF_8_dutch.h │ │ │ ├── stem_UTF_8_greek.h │ │ │ ├── stem_UTF_8_hindi.h │ │ │ ├── stem_UTF_8_irish.h │ │ │ ├── stem_UTF_8_tamil.h │ │ │ ├── stem_UTF_8_arabic.h │ │ │ ├── stem_UTF_8_basque.h │ │ │ ├── stem_UTF_8_catalan.h │ │ │ ├── stem_UTF_8_danish.h │ │ │ ├── stem_UTF_8_english.h │ │ │ ├── stem_UTF_8_finnish.h │ │ │ ├── stem_UTF_8_french.h │ │ │ ├── stem_UTF_8_german.h │ │ │ ├── stem_UTF_8_italian.h │ │ │ ├── stem_UTF_8_nepali.h │ │ │ ├── stem_UTF_8_porter.h │ │ │ ├── stem_UTF_8_russian.h │ │ │ ├── stem_UTF_8_serbian.h │ │ │ ├── stem_UTF_8_spanish.h │ │ │ ├── stem_UTF_8_swedish.h │ │ │ ├── stem_UTF_8_turkish.h │ │ │ ├── stem_UTF_8_yiddish.h │ │ │ ├── stem_KOI8_R_russian.h │ │ │ ├── stem_UTF_8_armenian.h │ │ │ ├── stem_UTF_8_romanian.h │ │ │ ├── stem_UTF_8_hungarian.h │ │ │ ├── stem_UTF_8_norwegian.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 │ │ │ ├── stem_ISO_8859_1_basque.h │ │ │ ├── stem_ISO_8859_1_catalan.h │ │ │ ├── stem_ISO_8859_1_danish.h │ │ │ ├── stem_ISO_8859_1_english.h │ │ │ ├── stem_ISO_8859_1_finnish.h │ │ │ ├── stem_ISO_8859_1_french.h │ │ │ ├── stem_ISO_8859_1_german.h │ │ │ ├── stem_ISO_8859_1_italian.h │ │ │ ├── stem_ISO_8859_1_porter.h │ │ │ ├── stem_ISO_8859_1_spanish.h │ │ │ └── stem_ISO_8859_1_swedish.h │ ├── pg_trace.h │ └── common │ │ └── username.h ├── test │ ├── locale │ │ ├── .gitignore │ │ ├── koi8-r │ │ │ ├── Makefile │ │ │ ├── test-koi8-sort.in │ │ │ ├── test-koi8.sql.in │ │ │ ├── expected │ │ │ │ ├── koi8-ctype.out │ │ │ │ ├── test-koi8-sort.out │ │ │ │ ├── test-koi8-char.sql.out │ │ │ │ ├── test-koi8-select.sql.out │ │ │ │ ├── test-koi8-text.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.sql.in │ │ │ ├── test-koi8-sort.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 │ ├── ssl │ │ ├── ssl │ │ │ ├── .gitignore │ │ │ ├── client-der.key │ │ │ └── client-encrypted-der.key │ │ ├── .gitignore │ │ └── conf │ │ │ ├── server-ip-cn-only.config │ │ │ ├── server-cn-only.config │ │ │ └── client.config │ ├── modules │ │ ├── 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 │ │ │ └── test_ddl_deparse.control │ │ ├── ssl_passphrase_callback │ │ │ └── .gitignore │ │ ├── commit_ts │ │ │ ├── commit_ts.conf │ │ │ └── .gitignore │ │ ├── libpq_pipeline │ │ │ ├── README │ │ │ ├── .gitignore │ │ │ └── traces │ │ │ │ ├── disallowed_in_pipeline.trace │ │ │ │ └── simple_pipeline.trace │ │ ├── plsample │ │ │ ├── .gitignore │ │ │ ├── plsample.control │ │ │ └── README │ │ ├── dummy_index_am │ │ │ ├── .gitignore │ │ │ ├── dummy_index_am.control │ │ │ └── README │ │ ├── snapshot_too_old │ │ │ ├── sto.conf │ │ │ └── .gitignore │ │ ├── test_extensions │ │ │ ├── test_ext6--1.0.sql │ │ │ ├── .gitignore │ │ │ ├── test_ext3.control │ │ │ ├── test_ext5.control │ │ │ ├── test_ext7.control │ │ │ ├── test_ext8.control │ │ │ ├── test_ext_evttrig.control │ │ │ ├── test_ext4.control │ │ │ ├── test_ext_cine.control │ │ │ ├── test_ext_cor.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 │ │ ├── test_misc │ │ │ ├── .gitignore │ │ │ ├── README │ │ │ └── Makefile │ │ ├── delay_execution │ │ │ └── .gitignore │ │ ├── dummy_seclabel │ │ │ ├── .gitignore │ │ │ ├── dummy_seclabel.control │ │ │ └── dummy_seclabel--1.0.sql │ │ ├── test_oat_hooks │ │ │ └── .gitignore │ │ ├── test_parser │ │ │ ├── .gitignore │ │ │ └── test_parser.control │ │ ├── test_pg_dump │ │ │ ├── .gitignore │ │ │ ├── test_pg_dump.control │ │ │ └── README │ │ ├── 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_regex │ │ │ ├── .gitignore │ │ │ ├── test_regex.control │ │ │ ├── expected │ │ │ │ └── test_regex_utf8_1.out │ │ │ └── test_regex--1.0.sql │ │ ├── test_rls_hooks │ │ │ └── .gitignore │ │ ├── test_shm_mq │ │ │ ├── .gitignore │ │ │ └── test_shm_mq.control │ │ ├── unsafe_tests │ │ │ ├── .gitignore │ │ │ └── README │ │ ├── worker_spi │ │ │ ├── .gitignore │ │ │ ├── dynamic.conf │ │ │ ├── worker_spi.control │ │ │ └── worker_spi--1.0.sql │ │ ├── brin │ │ │ └── .gitignore │ │ ├── spgist_name_ops │ │ │ ├── .gitignore │ │ │ └── spgist_name_ops.control │ │ ├── test_bloomfilter │ │ │ ├── .gitignore │ │ │ └── test_bloomfilter.control │ │ ├── test_ginpostinglist │ │ │ ├── .gitignore │ │ │ ├── README │ │ │ ├── test_ginpostinglist.control │ │ │ ├── sql │ │ │ │ └── test_ginpostinglist.sql │ │ │ └── test_ginpostinglist--1.0.sql │ │ └── test_integerset │ │ │ ├── .gitignore │ │ │ ├── test_integerset.control │ │ │ ├── sql │ │ │ └── test_integerset.sql │ │ │ ├── test_integerset--1.0.sql │ │ │ └── README │ ├── regress │ │ ├── data │ │ │ ├── dept.data │ │ │ ├── constro.data │ │ │ ├── constrf.data │ │ │ ├── agg.data │ │ │ ├── emp.data │ │ │ ├── student.data │ │ │ ├── stud_emp.data │ │ │ └── real_city.data │ │ ├── expected │ │ │ ├── unicode_1.out │ │ │ ├── collate.icu.utf8_1.out │ │ │ ├── json_encoding_2.out │ │ │ └── jsonpath_encoding_2.out │ │ ├── README │ │ ├── resultmap │ │ └── .gitignore │ ├── icu │ │ └── .gitignore │ ├── ldap │ │ └── .gitignore │ ├── kerberos │ │ └── .gitignore │ ├── recovery │ │ ├── .gitignore │ │ └── t │ │ │ └── cp_history_files │ ├── subscription │ │ └── .gitignore │ ├── authentication │ │ └── .gitignore │ ├── mb │ │ ├── sql │ │ │ ├── big5.sql │ │ │ ├── euc_cn.sql │ │ │ ├── euc_jp.sql │ │ │ ├── euc_kr.sql │ │ │ ├── euc_tw.sql │ │ │ ├── sjis.sql │ │ │ ├── gb18030.sql │ │ │ └── mule_internal.sql │ │ ├── expected │ │ │ ├── big5.out │ │ │ ├── euc_cn.out │ │ │ ├── euc_jp.out │ │ │ ├── euc_kr.out │ │ │ ├── euc_tw.out │ │ │ ├── sjis.out │ │ │ ├── gb18030.out │ │ │ └── mule_internal.out │ │ └── README │ ├── examples │ │ ├── .gitignore │ │ ├── testlibpq2.sql │ │ └── testlibpq3.sql │ └── isolation │ │ └── .gitignore ├── tools │ ├── ifaddrs │ │ └── .gitignore │ ├── msvc │ │ ├── .gitignore │ │ ├── dummylib │ │ │ ├── Win32.pm │ │ │ └── Win32 │ │ │ │ └── Registry.pm │ │ ├── build.bat │ │ ├── install.bat │ │ ├── vcregress.bat │ │ ├── pgflex.bat │ │ └── pgbison.bat │ ├── ccsym │ ├── codelines │ ├── pgindent │ │ └── pgperltidy │ ├── ci │ │ └── windows_build_config.pl │ └── make_mkid ├── bin │ ├── pg_ctl │ │ ├── .gitignore │ │ └── nls.mk │ ├── pg_config │ │ ├── .gitignore │ │ └── nls.mk │ ├── pg_resetwal │ │ ├── .gitignore │ │ └── nls.mk │ ├── pgevent │ │ ├── MSG00001.bin │ │ ├── exports.txt │ │ ├── pgmsgevent.rc │ │ ├── pgmsgevent.mc │ │ └── pgevent.def │ ├── pg_amcheck │ │ ├── .gitignore │ │ └── t │ │ │ └── 001_basic.pl │ ├── pg_checksums │ │ ├── .gitignore │ │ ├── t │ │ │ └── 001_basic.pl │ │ └── nls.mk │ ├── pg_controldata │ │ ├── .gitignore │ │ └── nls.mk │ ├── pg_test_fsync │ │ ├── .gitignore │ │ └── nls.mk │ ├── pg_verifybackup │ │ └── .gitignore │ ├── pg_test_timing │ │ ├── .gitignore │ │ └── nls.mk │ ├── initdb │ │ └── .gitignore │ ├── pg_archivecleanup │ │ ├── .gitignore │ │ └── nls.mk │ ├── pgbench │ │ └── .gitignore │ ├── pg_dump │ │ └── .gitignore │ ├── psql │ │ ├── .gitignore │ │ └── psqlrc.sample │ ├── pg_basebackup │ │ └── .gitignore │ ├── pg_rewind │ │ └── .gitignore │ ├── scripts │ │ └── .gitignore │ ├── pg_upgrade │ │ ├── .gitignore │ │ └── t │ │ │ └── 001_basic.pl │ └── pg_waldump │ │ ├── t │ │ └── 001_basic.pl │ │ └── nls.mk ├── 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 │ │ │ │ ├── sql-prepareas.stderr │ │ │ │ ├── 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 │ │ │ │ ├── sql-createtableas.stdout │ │ │ │ ├── thread-alloc_2.stdout │ │ │ │ ├── thread-thread.stdout │ │ │ │ ├── sql-func.stdout │ │ │ │ ├── thread-thread_implicit.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-strings.stdout │ │ │ │ ├── preproc-define.stdout │ │ │ │ ├── preproc-type.stdout │ │ │ │ ├── sql-desc.stdout │ │ │ │ ├── sql-dynalloc2.stdout │ │ │ │ ├── sql-binary.stdout │ │ │ │ ├── sql-quote.stdout │ │ │ │ ├── preproc-describe.stdout │ │ │ │ ├── sql-show.stdout │ │ │ │ ├── preproc-init.stdout │ │ │ │ ├── preproc-outofscope.stdout │ │ │ │ ├── preproc-variable.stdout │ │ │ │ ├── sql-dynalloc.stdout │ │ │ │ ├── pgtypeslib-num_test.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_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 │ │ ├── ecpglib │ │ │ ├── .gitignore │ │ │ └── nls.mk │ │ ├── pgtypeslib │ │ │ └── .gitignore │ │ ├── compatlib │ │ │ └── .gitignore │ │ └── preproc │ │ │ ├── .gitignore │ │ │ └── nls.mk │ └── libpq │ │ ├── test │ │ └── .gitignore │ │ ├── .gitignore │ │ └── README ├── timezone │ └── .gitignore ├── pl │ ├── plpgsql │ │ └── src │ │ │ ├── data │ │ │ └── copy1.data │ │ │ ├── .gitignore │ │ │ ├── plpgsql.control │ │ │ └── nls.mk │ ├── plpython │ │ ├── .gitignore │ │ ├── expected │ │ │ ├── README │ │ │ ├── plpython_drop.out │ │ │ └── plpython_do.out │ │ ├── sql │ │ │ ├── plpython_do.sql │ │ │ └── plpython_drop.sql │ │ ├── plpython3u.control │ │ └── plpy_exec.h │ ├── tcl │ │ ├── .gitignore │ │ ├── pltclu.control │ │ ├── pltcl.control │ │ ├── nls.mk │ │ └── pltclu--1.0.sql │ └── plperl │ │ ├── .gitignore │ │ ├── plperlu.control │ │ ├── plperl.control │ │ ├── sql │ │ └── plperl_lc.sql │ │ ├── nls.mk │ │ └── expected │ │ ├── plperl_lc.out │ │ └── plperl_lc_1.out ├── .gitignore ├── port │ ├── win32.ico │ ├── .gitignore │ └── qsort_arg.c ├── tutorial │ └── .gitignore ├── template │ ├── openbsd │ └── freebsd ├── DEVELOPERS └── makefiles │ ├── Makefile.netbsd │ ├── Makefile.openbsd │ ├── Makefile │ └── Makefile.linux ├── contrib ├── file_fdw │ ├── data │ │ ├── list1.csv │ │ ├── list2.bad │ │ ├── list2.csv │ │ ├── agg.bad │ │ ├── agg.data │ │ ├── agg.csv │ │ └── text.csv │ ├── .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 ├── pg_freespacemap │ ├── pg_freespacemap.conf │ ├── .gitignore │ ├── pg_freespacemap.control │ └── pg_freespacemap--1.0--1.1.sql ├── pgcrypto │ ├── sql │ │ ├── pgp-zlib-DISABLED.sql │ │ └── init.sql │ ├── expected │ │ └── pgp-zlib-DISABLED.out │ ├── .gitignore │ ├── pgcrypto.control │ └── pgcrypto--1.0--1.1.sql ├── isn │ ├── .gitignore │ └── isn.control ├── lo │ ├── .gitignore │ ├── lo.control │ └── lo--1.0--1.1.sql ├── pg_walinspect │ ├── walinspect.conf │ ├── .gitignore │ └── pg_walinspect.control ├── bloom │ ├── .gitignore │ └── bloom.control ├── citext │ ├── .gitignore │ ├── citext.control │ └── expected │ │ └── citext_utf8_1.out ├── dblink │ ├── .gitignore │ ├── dblink.control │ └── pg_service.conf ├── dict_int │ ├── .gitignore │ └── dict_int.control ├── hstore │ ├── .gitignore │ └── hstore.control ├── intarray │ ├── .gitignore │ ├── intarray.control │ └── intarray--1.4--1.5.sql ├── ltree │ ├── .gitignore │ ├── ltree.control │ └── crc32.h ├── pg_trgm │ ├── .gitignore │ └── pg_trgm.control ├── xml2 │ ├── .gitignore │ └── xml2.control ├── adminpack │ ├── .gitignore │ ├── adminpack.control │ └── adminpack--1.0--1.1.sql ├── auto_explain │ └── .gitignore ├── basic_archive │ ├── .gitignore │ └── basic_archive.conf ├── bool_plperl │ ├── .gitignore │ ├── bool_plperlu.control │ └── bool_plperl.control ├── 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_plperlu.control │ └── jsonb_plperl.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_surgery │ ├── .gitignore │ └── pg_surgery.control ├── 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 ├── uuid-ossp │ ├── .gitignore │ └── uuid-ossp.control ├── hstore_plpython │ ├── .gitignore │ └── hstore_plpython3u.control ├── jsonb_plpython │ ├── .gitignore │ └── jsonb_plpython3u.control ├── ltree_plpython │ ├── .gitignore │ └── ltree_plpython3u.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 ├── basebackup_to_shell │ └── .gitignore ├── contrib-global.mk ├── cube │ ├── .gitignore │ └── cube.control ├── seg │ ├── .gitignore │ ├── seg.control │ └── seg--1.3--1.4.sql ├── test_decoding │ ├── .gitignore │ └── logical.conf ├── unaccent │ ├── .gitignore │ └── unaccent.control ├── intagg │ ├── intagg.control │ └── Makefile ├── sepgsql │ └── .gitignore ├── pg_prewarm │ ├── pg_prewarm.control │ └── pg_prewarm--1.0--1.1.sql ├── spi │ ├── autoinc.control │ ├── moddatetime.control │ ├── refint.control │ ├── insert_username.control │ ├── autoinc--1.0.sql │ ├── moddatetime--1.0.sql │ ├── insert_username--1.0.sql │ └── refint--1.0.sql ├── sslinfo │ └── sslinfo.control ├── tcn │ ├── tcn.control │ └── tcn--1.0.sql ├── pgrowlocks │ ├── pgrowlocks.control │ └── pgrowlocks--1.1--1.2.sql ├── pg_buffercache │ ├── pg_buffercache.control │ ├── pg_buffercache--1.1--1.2.sql │ └── pg_buffercache--1.2--1.3.sql └── old_snapshot │ └── old_snapshot.control ├── doc ├── TODO ├── KNOWN_BUGS ├── MISSING_FEATURES └── src │ ├── Makefile │ └── sgml │ └── keywords │ ├── sql2011-09-reserved.txt │ ├── sql2016-09-reserved.txt │ ├── sql2011-09-nonreserved.txt │ ├── sql2016-09-nonreserved.txt │ ├── sql2011-14-reserved.txt │ ├── sql2016-14-reserved.txt │ ├── sql2016-14-nonreserved.txt │ └── sql2011-14-nonreserved.txt ├── .editorconfig └── HISTORY /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/tools/ifaddrs/.gitignore: -------------------------------------------------------------------------------- 1 | /test_ifaddrs 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 | -------------------------------------------------------------------------------- /src/backend/utils/misc/.gitignore: -------------------------------------------------------------------------------- 1 | /guc-file.c 2 | -------------------------------------------------------------------------------- /src/bin/pg_ctl/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_ctl 2 | /tmp_check/ 3 | -------------------------------------------------------------------------------- /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/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/sql-prepareas.stderr: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /src/test/ssl/ssl/.gitignore: -------------------------------------------------------------------------------- 1 | /*.old 2 | /new_certs_dir/ 3 | -------------------------------------------------------------------------------- /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/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/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/pg_freespacemap/pg_freespacemap.conf: -------------------------------------------------------------------------------- 1 | autovacuum = off 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/bin/pg_amcheck/.gitignore: -------------------------------------------------------------------------------- 1 | pg_amcheck 2 | 3 | /tmp_check/ 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/pl/plpgsql/src/data/copy1.data: -------------------------------------------------------------------------------- 1 | 1 1.1 2 | 2 2.2 3 | 3 3.3 4 | -------------------------------------------------------------------------------- /src/test/modules/ssl_passphrase_callback/.gitignore: -------------------------------------------------------------------------------- 1 | tmp_check 2 | -------------------------------------------------------------------------------- /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/bin/pg_checksums/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_checksums 2 | 3 | /tmp_check/ 4 | -------------------------------------------------------------------------------- /src/bin/pg_controldata/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_controldata 2 | /tmp_check/ 3 | -------------------------------------------------------------------------------- /src/bin/pg_test_fsync/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_test_fsync 2 | 3 | /tmp_check/ 4 | -------------------------------------------------------------------------------- /src/bin/pg_verifybackup/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_verifybackup 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/icu/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by test suite 2 | /tmp_check/ 3 | -------------------------------------------------------------------------------- /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/backend/utils/adt/.gitignore: -------------------------------------------------------------------------------- 1 | /jsonpath_gram.c 2 | /jsonpath_scan.c 3 | -------------------------------------------------------------------------------- /src/bin/pg_test_timing/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_test_timing 2 | 3 | /tmp_check/ 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/ssl/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by regression tests 2 | /tmp_check/ 3 | -------------------------------------------------------------------------------- /src/test/subscription/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by test suite 2 | /tmp_check/ 3 | -------------------------------------------------------------------------------- /src/bin/initdb/.gitignore: -------------------------------------------------------------------------------- 1 | /localtime.c 2 | 3 | /initdb 4 | 5 | /tmp_check/ 6 | -------------------------------------------------------------------------------- /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/interfaces/ecpg/test/compat_oracle/.gitignore: -------------------------------------------------------------------------------- 1 | /char_array 2 | /char_array.c 3 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-createtableas.stdout: -------------------------------------------------------------------------------- 1 | ID = 100 2 | ID = 0 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/interfaces/libpq/test/.gitignore: -------------------------------------------------------------------------------- 1 | /libpq_testclient 2 | /libpq_uri_regress 3 | -------------------------------------------------------------------------------- /src/test/authentication/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by test suite 2 | /tmp_check/ 3 | -------------------------------------------------------------------------------- /src/test/modules/libpq_pipeline/README: -------------------------------------------------------------------------------- 1 | Test programs and libraries for libpq 2 | -------------------------------------------------------------------------------- /contrib/file_fdw/data/agg.bad: -------------------------------------------------------------------------------- 1 | 56;@7.8@ 2 | 100;@99.097@ 3 | 0;@aaa@ 4 | 42;@324.78@ 5 | -------------------------------------------------------------------------------- /contrib/file_fdw/data/agg.data: -------------------------------------------------------------------------------- 1 | 56 7.8 2 | 100 99.097 3 | 0 0.09561 4 | 42 324.78 5 | -------------------------------------------------------------------------------- /src/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/.gitignore: -------------------------------------------------------------------------------- 1 | /exports.list 2 | /libpq-refs-stamp 3 | /tmp_check/ 4 | -------------------------------------------------------------------------------- /src/port/win32.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/port/win32.ico -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contrib/pg_walinspect/walinspect.conf: -------------------------------------------------------------------------------- 1 | wal_level = replica 2 | max_replication_slots = 4 3 | -------------------------------------------------------------------------------- /src/backend/storage/lmgr/.gitignore: -------------------------------------------------------------------------------- 1 | /lwlocknames.c 2 | /lwlocknames.h 3 | /s_lock_test 4 | -------------------------------------------------------------------------------- /src/bin/pg_dump/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_dump 2 | /pg_dumpall 3 | /pg_restore 4 | 5 | /tmp_check/ 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/plsample/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | -------------------------------------------------------------------------------- /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/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/interfaces/ecpg/ecpglib/.gitignore: -------------------------------------------------------------------------------- 1 | /ecpglib.def 2 | /blibecpgdll.def 3 | /exports.list 4 | -------------------------------------------------------------------------------- /src/test/modules/dummy_index_am/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 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/auto_explain/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/basic_archive/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/bool_plperl/.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_surgery/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/pg_visibility/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/pg_walinspect/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/pgstattuple/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/postgres_fdw/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/tablefunc/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/uuid-ossp/.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/bin/psql/.gitignore: -------------------------------------------------------------------------------- 1 | /psqlscanslash.c 2 | /sql_help.h 3 | /sql_help.c 4 | /psql 5 | /tmp_check/ 6 | -------------------------------------------------------------------------------- /src/include/catalog/.gitignore: -------------------------------------------------------------------------------- 1 | /schemapg.h 2 | /system_fk_info.h 3 | /pg_*_d.h 4 | /header-stamp 5 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/pgtypeslib/.gitignore: -------------------------------------------------------------------------------- 1 | /pgtypeslib.def 2 | /blibpgtypesdll.def 3 | /exports.list 4 | -------------------------------------------------------------------------------- /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/mb/sql/big5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/sql/big5.sql -------------------------------------------------------------------------------- /src/test/mb/sql/euc_cn.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/sql/euc_cn.sql -------------------------------------------------------------------------------- /src/test/mb/sql/euc_jp.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/sql/euc_jp.sql -------------------------------------------------------------------------------- /src/test/mb/sql/euc_kr.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/sql/euc_kr.sql -------------------------------------------------------------------------------- /src/test/mb/sql/euc_tw.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/sql/euc_tw.sql -------------------------------------------------------------------------------- /src/test/mb/sql/sjis.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/sql/sjis.sql -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext6--1.0.sql: -------------------------------------------------------------------------------- 1 | grant usage on schema @extschema@ to public; 2 | -------------------------------------------------------------------------------- /contrib/hstore_plpython/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/jsonb_plpython/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/ltree_plpython/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /contrib/pg_freespacemap/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /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/gb18030.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/sql/gb18030.sql -------------------------------------------------------------------------------- /src/test/modules/commit_ts/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/test/modules/test_misc/.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/tutorial/.gitignore: -------------------------------------------------------------------------------- 1 | /advanced.sql 2 | /basics.sql 3 | /complex.sql 4 | /funcs.sql 5 | /syscat.sql 6 | -------------------------------------------------------------------------------- /contrib/basebackup_to_shell/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/bin/pg_basebackup/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_basebackup 2 | /pg_receivewal 3 | /pg_recvlogical 4 | 5 | /tmp_check/ 6 | -------------------------------------------------------------------------------- /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/expected/big5.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/expected/big5.out -------------------------------------------------------------------------------- /src/test/mb/expected/euc_cn.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/expected/euc_cn.out -------------------------------------------------------------------------------- /src/test/mb/expected/euc_jp.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/expected/euc_jp.out -------------------------------------------------------------------------------- /src/test/mb/expected/euc_kr.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/expected/euc_kr.out -------------------------------------------------------------------------------- /src/test/mb/expected/euc_tw.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/expected/euc_tw.out -------------------------------------------------------------------------------- /src/test/mb/expected/sjis.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/expected/sjis.out -------------------------------------------------------------------------------- /src/test/modules/delay_execution/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /output_iso/ 3 | /tmp_check_iso/ 4 | -------------------------------------------------------------------------------- /src/test/modules/dummy_seclabel/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/test/modules/snapshot_too_old/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /output_iso/ 3 | /tmp_check_iso/ 4 | -------------------------------------------------------------------------------- /src/test/modules/test_oat_hooks/.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_regex/.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/test/modules/unsafe_tests/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/test/modules/worker_spi/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/test/ssl/ssl/client-der.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/ssl/ssl/client-der.key -------------------------------------------------------------------------------- /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/plpython/.gitignore: -------------------------------------------------------------------------------- 1 | /spiexceptions.h 2 | # Generated subdirectories 3 | /log/ 4 | /results/ 5 | /tmp_check/ 6 | -------------------------------------------------------------------------------- /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/gb18030.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/expected/gb18030.out -------------------------------------------------------------------------------- /src/test/mb/sql/mule_internal.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/sql/mule_internal.sql -------------------------------------------------------------------------------- /src/test/modules/brin/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /output_iso/ 3 | /tmp_check/ 4 | /tmp_check_iso/ 5 | -------------------------------------------------------------------------------- /src/test/modules/spgist_name_ops/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/test/modules/test_ginpostinglist/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /src/test/modules/test_integerset/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | -------------------------------------------------------------------------------- /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/regress/data/emp.data: -------------------------------------------------------------------------------- 1 | sharon 25 (15,12) 1000 sam 2 | sam 30 (10,5) 2000 bill 3 | bill 20 (11,10) 1000 sharon 4 | -------------------------------------------------------------------------------- /contrib/contrib-global.mk: -------------------------------------------------------------------------------- 1 | # contrib/contrib-global.mk 2 | 3 | NO_PGXS = 1 4 | include $(top_srcdir)/src/makefiles/pgxs.mk 5 | -------------------------------------------------------------------------------- /contrib/cube/.gitignore: -------------------------------------------------------------------------------- 1 | /cubeparse.c 2 | /cubescan.c 3 | # Generated subdirectories 4 | /log/ 5 | /results/ 6 | /tmp_check/ 7 | -------------------------------------------------------------------------------- /contrib/seg/.gitignore: -------------------------------------------------------------------------------- 1 | /segparse.c 2 | /segscan.c 3 | # Generated subdirectories 4 | /log/ 5 | /results/ 6 | /tmp_check/ 7 | -------------------------------------------------------------------------------- /contrib/tablefunc/data/connectby_int.data: -------------------------------------------------------------------------------- 1 | 1 \N 2 | 2 1 3 | 3 1 4 | 4 2 5 | 5 2 6 | 6 4 7 | 7 3 8 | 8 6 9 | 9 5 10 | -------------------------------------------------------------------------------- /src/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/pl/plpython/expected/README: -------------------------------------------------------------------------------- 1 | Guide to alternative expected files: 2 | 3 | plpython_error_5.out Python 3.5 and newer 4 | -------------------------------------------------------------------------------- /src/test/mb/expected/mule_internal.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/mb/expected/mule_internal.out -------------------------------------------------------------------------------- /src/test/modules/worker_spi/dynamic.conf: -------------------------------------------------------------------------------- 1 | shared_preload_libraries = worker_spi 2 | worker_spi.database = contrib_regression 3 | -------------------------------------------------------------------------------- /src/test/locale/koi8-r/test-koi8-sort.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/koi8-r/test-koi8-sort.in -------------------------------------------------------------------------------- /src/test/locale/koi8-r/test-koi8.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/koi8-r/test-koi8.sql.in -------------------------------------------------------------------------------- /src/test/modules/libpq_pipeline/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | /libpq_pipeline 6 | -------------------------------------------------------------------------------- /src/test/regress/data/student.data: -------------------------------------------------------------------------------- 1 | fred 28 (3.1,-1.5) 3.70000000000000020e+00 2 | larry 60 (21.8,4.9) 3.10000000000000010e+00 3 | -------------------------------------------------------------------------------- /src/test/regress/expected/unicode_1.out: -------------------------------------------------------------------------------- 1 | SELECT getdatabaseencoding() <> 'UTF8' AS skip_test \gset 2 | \if :skip_test 3 | \quit 4 | -------------------------------------------------------------------------------- /src/test/ssl/ssl/client-encrypted-der.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/ssl/ssl/client-encrypted-der.key -------------------------------------------------------------------------------- /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/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/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/backend/catalog/.gitignore: -------------------------------------------------------------------------------- 1 | /postgres.bki 2 | /schemapg.h 3 | /system_fk_info.h 4 | /system_constraints.sql 5 | /pg_*_d.h 6 | /bki-stamp 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/interfaces/ecpg/test/expected/preproc-strings.stdout: -------------------------------------------------------------------------------- 1 | abc'd\ef abc'd\ef abc'd\ef data data abc$def 2 | 0010 0000000110011010101111001101 3 | -------------------------------------------------------------------------------- /src/template/openbsd: -------------------------------------------------------------------------------- 1 | # src/template/openbsd 2 | 3 | # Extra CFLAGS for code that will go into a shared library 4 | CFLAGS_SL="-fPIC -DPIC" 5 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/test-de.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/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/cmu-db/postgres/HEAD/src/test/locale/gr_GR.ISO8859-7/test-gr.sql.in -------------------------------------------------------------------------------- /src/test/locale/koi8-r/expected/koi8-ctype.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/koi8-r/expected/koi8-ctype.out -------------------------------------------------------------------------------- /src/test/locale/koi8-r/test-koi8-select.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/koi8-r/test-koi8-select.sql.in -------------------------------------------------------------------------------- /contrib/unaccent/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated subdirectories 2 | /log/ 3 | /results/ 4 | /tmp_check/ 5 | 6 | # Downloaded files 7 | /Latin-ASCII.xml 8 | -------------------------------------------------------------------------------- /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/include/port/win32_msvc/utime.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32_msvc/utime.h */ 2 | 3 | #include /* for non-unicode version */ 4 | -------------------------------------------------------------------------------- /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/locale/de_DE.ISO8859-1/test-de-sort.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/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/cmu-db/postgres/HEAD/src/test/locale/gr_GR.ISO8859-7/test-gr-sort.in -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/test-koi8.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/koi8-to-win1251/test-koi8.sql.in -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contrib/test_decoding/logical.conf: -------------------------------------------------------------------------------- 1 | wal_level = logical 2 | max_replication_slots = 4 3 | logical_decoding_work_mem = 64kB 4 | autovacuum_naptime = 1d 5 | -------------------------------------------------------------------------------- /src/backend/utils/mb/conversion_procs/README.euc_jp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/backend/utils/mb/conversion_procs/README.euc_jp -------------------------------------------------------------------------------- /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/koi8-r/expected/test-koi8-sort.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/koi8-r/expected/test-koi8-sort.out -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/test-koi8-sort.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/koi8-to-win1251/test-koi8-sort.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/interfaces/ecpg/test/preproc/strings.h: -------------------------------------------------------------------------------- 1 | char *s1, 2 | *s2, 3 | *s3, 4 | *s4, 5 | *s5, 6 | *s6, 7 | *s7, 8 | *s8; 9 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/de-ctype.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/de_DE.ISO8859-1/expected/de-ctype.out -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/test-de-select.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/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/cmu-db/postgres/HEAD/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/cmu-db/postgres/HEAD/src/test/locale/gr_GR.ISO8859-7/expected/gr-ctype.out -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/test-gr-select.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/gr_GR.ISO8859-7/test-gr-select.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/test/modules/test_extensions/test_ext_evttrig.control: -------------------------------------------------------------------------------- 1 | comment = 'Test extension - event trigger' 2 | default_version = '1.0' 3 | relocatable = true 4 | -------------------------------------------------------------------------------- /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/test/locale/koi8-r/expected/test-koi8-char.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/koi8-r/expected/test-koi8-char.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-r/expected/test-koi8-select.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/koi8-r/expected/test-koi8-select.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-r/expected/test-koi8-text.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/koi8-r/expected/test-koi8-text.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/test-koi8-select.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/koi8-to-win1251/test-koi8-select.sql.in -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext_cine.control: -------------------------------------------------------------------------------- 1 | comment = 'Test extension using CREATE IF NOT EXISTS' 2 | default_version = '1.0' 3 | relocatable = true 4 | -------------------------------------------------------------------------------- /src/test/modules/test_extensions/test_ext_cor.control: -------------------------------------------------------------------------------- 1 | comment = 'Test extension using CREATE OR REPLACE' 2 | default_version = '1.0' 3 | relocatable = true 4 | -------------------------------------------------------------------------------- /contrib/basic_archive/basic_archive.conf: -------------------------------------------------------------------------------- 1 | archive_mode = on 2 | archive_library = 'basic_archive' 3 | basic_archive.archive_directory = '.' 4 | wal_level = replica 5 | -------------------------------------------------------------------------------- /contrib/intagg/intagg.control: -------------------------------------------------------------------------------- 1 | # intagg extension 2 | comment = 'integer aggregator and enumerator (obsolete)' 3 | default_version = '1.1' 4 | relocatable = true 5 | -------------------------------------------------------------------------------- /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/test-de-sort.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-sort.out -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/expected/test-gr-sort.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/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/cmu-db/postgres/HEAD/src/test/locale/koi8-r/expected/test-koi8-varchar.sql.out -------------------------------------------------------------------------------- /src/test/modules/test_ginpostinglist/README: -------------------------------------------------------------------------------- 1 | test_ginpostinglist contains unit tests for the GIN posting list code in 2 | src/backend/access/gin/ginpostinglist.c. 3 | -------------------------------------------------------------------------------- /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/pl/plpython/sql/plpython_do.sql: -------------------------------------------------------------------------------- 1 | DO $$ plpy.notice("This is plpython3u.") $$ LANGUAGE plpython3u; 2 | 3 | DO $$ raise Exception("error test") $$ LANGUAGE plpython3u; 4 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/test-de-char.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-char.sql.out -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/test-de-text.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-text.sql.out -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/expected/test-gr-char.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/gr_GR.ISO8859-7/expected/test-gr-char.sql.out -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/expected/test-gr-text.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/gr_GR.ISO8859-7/expected/test-gr-text.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/expected/test-koi8-sort.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/koi8-to-win1251/expected/test-koi8-sort.out -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/tools/msvc/dummylib/Win32.pm: -------------------------------------------------------------------------------- 1 | 2 | # Copyright (c) 2021-2022, PostgreSQL Global Development Group 3 | 4 | package Win32; 5 | use strict; 6 | use warnings; 7 | 1; 8 | -------------------------------------------------------------------------------- /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-select.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-select.sql.out -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/expected/test-gr-select.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/gr_GR.ISO8859-7/expected/test-gr-select.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/expected/test-koi8-char.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/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/cmu-db/postgres/HEAD/src/test/locale/koi8-to-win1251/expected/test-koi8-text.sql.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-varchar.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-varchar.sql.out -------------------------------------------------------------------------------- /src/test/locale/gr_GR.ISO8859-7/expected/test-gr-varchar.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/gr_GR.ISO8859-7/expected/test-gr-varchar.sql.out -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/expected/test-koi8-select.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/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/cmu-db/postgres/HEAD/src/test/locale/koi8-to-win1251/expected/test-koi8-varchar.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/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 | trusted = true 7 | -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/test-de-upper-char.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-upper-char.sql.out -------------------------------------------------------------------------------- /src/test/locale/de_DE.ISO8859-1/expected/test-de-upper-text.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-upper-text.sql.out -------------------------------------------------------------------------------- /src/test/modules/test_regex/test_regex.control: -------------------------------------------------------------------------------- 1 | comment = 'Test code for backend/regex/' 2 | default_version = '1.0' 3 | module_pathname = '$libdir/test_regex' 4 | relocatable = true 5 | -------------------------------------------------------------------------------- /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/de_DE.ISO8859-1/expected/test-de-upper-varchar.sql.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmu-db/postgres/HEAD/src/test/locale/de_DE.ISO8859-1/expected/test-de-upper-varchar.sql.out -------------------------------------------------------------------------------- /contrib/dict_xsyn/xsyn_sample.rules: -------------------------------------------------------------------------------- 1 | # Sample rules file for eXtended Synonym (xsyn) dictionary 2 | # format is as follows: 3 | # 4 | # word synonym1 synonym2 ... 5 | # 6 | supernova sn sne 1987a 7 | -------------------------------------------------------------------------------- /contrib/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 | -------------------------------------------------------------------------------- /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 | trusted = true 7 | -------------------------------------------------------------------------------- /doc/MISSING_FEATURES: -------------------------------------------------------------------------------- 1 | PostgreSQL has a single combined bugs, missing features, and todo list 2 | simply called TODO, in this directory. A current copy is always 3 | available on our web site. 4 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/sql-quote.stdout: -------------------------------------------------------------------------------- 1 | Standard conforming strings: off 2 | Standard conforming strings: on 3 | value: 1 a\\b 4 | value: 1 a\\b 5 | value: 2 a\\\\b 6 | value: 2 a\\b 7 | -------------------------------------------------------------------------------- /src/test/locale/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/spgist_name_ops/spgist_name_ops.control: -------------------------------------------------------------------------------- 1 | comment = 'Test opclass for SP-GiST' 2 | default_version = '1.0' 3 | module_pathname = '$libdir/spgist_name_ops' 4 | relocatable = true 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_integerset/test_integerset.control: -------------------------------------------------------------------------------- 1 | comment = 'Test code for integerset' 2 | default_version = '1.0' 3 | module_pathname = '$libdir/test_integerset' 4 | relocatable = true 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/resultmap: -------------------------------------------------------------------------------- 1 | float4:out:.*-.*-cygwin.*=float4-misrounded-input.out 2 | float4:out:.*-.*-mingw.*=float4-misrounded-input.out 3 | float4:out:hppa.*-hp-hpux10.*=float4-misrounded-input.out 4 | -------------------------------------------------------------------------------- /contrib/amcheck/amcheck.control: -------------------------------------------------------------------------------- 1 | # amcheck extension 2 | comment = 'functions for verifying relation integrity' 3 | default_version = '1.3' 4 | module_pathname = '$libdir/amcheck' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /contrib/cube/cube.control: -------------------------------------------------------------------------------- 1 | # cube extension 2 | comment = 'data type for multidimensional cubes' 3 | default_version = '1.5' 4 | module_pathname = '$libdir/cube' 5 | relocatable = true 6 | trusted = true 7 | -------------------------------------------------------------------------------- /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/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_test_timing/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_test_timing/nls.mk 2 | CATALOG_NAME = pg_test_timing 3 | AVAIL_LANGUAGES = de el es fr ja ka pt_BR ru sv uk zh_CN 4 | GETTEXT_FILES = pg_test_timing.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 | -------------------------------------------------------------------------------- /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 | trusted = true 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 plpython3u CASCADE; 6 | -------------------------------------------------------------------------------- /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 plpython3u CASCADE; 7 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /src/bin/pg_upgrade/.gitignore: -------------------------------------------------------------------------------- 1 | /pg_upgrade 2 | # Generated by manual invocation 3 | /delete_old_cluster.sh 4 | /delete_old_cluster.bat 5 | /reindex_hash.sql 6 | # Generated by test suite 7 | /log/ 8 | /tmp_check/ 9 | -------------------------------------------------------------------------------- /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/test/modules/test_ginpostinglist/test_ginpostinglist.control: -------------------------------------------------------------------------------- 1 | comment = 'Test code for ginpostinglist.c' 2 | default_version = '1.0' 3 | module_pathname = '$libdir/test_ginpostinglist' 4 | relocatable = true 5 | -------------------------------------------------------------------------------- /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 | 4 | We also make use of this module to test ALTER EXTENSION ADD/DROP. 5 | -------------------------------------------------------------------------------- /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/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 | trusted = true 7 | -------------------------------------------------------------------------------- /contrib/ltree/ltree.control: -------------------------------------------------------------------------------- 1 | # ltree extension 2 | comment = 'data type for hierarchical tree-like structures' 3 | default_version = '1.2' 4 | module_pathname = '$libdir/ltree' 5 | relocatable = true 6 | trusted = true 7 | -------------------------------------------------------------------------------- /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/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 | trusted = true 7 | -------------------------------------------------------------------------------- /contrib/hstore/hstore.control: -------------------------------------------------------------------------------- 1 | # hstore extension 2 | comment = 'data type for storing sets of (key, value) pairs' 3 | default_version = '1.8' 4 | module_pathname = '$libdir/hstore' 5 | relocatable = true 6 | trusted = true 7 | -------------------------------------------------------------------------------- /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_surgery/pg_surgery.control: -------------------------------------------------------------------------------- 1 | # pg_surgery extension 2 | comment = 'extension to perform surgery on a damaged relation' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/pg_surgery' 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/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/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 | trusted = true 7 | -------------------------------------------------------------------------------- /contrib/old_snapshot/old_snapshot.control: -------------------------------------------------------------------------------- 1 | # old_snapshot extension 2 | comment = 'utilities in support of old_snapshot_threshold' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/old_snapshot' 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.10' 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.1' 4 | module_pathname = '$libdir/postgres_fdw' 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 | trusted = true 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 | # XXX do we still need this to be non-relocatable? 6 | relocatable = false 7 | -------------------------------------------------------------------------------- /contrib/adminpack/adminpack.control: -------------------------------------------------------------------------------- 1 | # adminpack extension 2 | comment = 'administrative functions for PostgreSQL' 3 | default_version = '2.1' 4 | module_pathname = '$libdir/adminpack' 5 | relocatable = false 6 | schema = pg_catalog 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 | trusted = true 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/seg/seg.control: -------------------------------------------------------------------------------- 1 | # seg extension 2 | comment = 'data type for representing line segments or floating-point intervals' 3 | default_version = '1.4' 4 | module_pathname = '$libdir/seg' 5 | relocatable = true 6 | trusted = true 7 | -------------------------------------------------------------------------------- /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 | trusted = true 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contrib/bool_plperl/bool_plperlu.control: -------------------------------------------------------------------------------- 1 | # bool_plperlu extension 2 | comment = 'transform between bool and plperlu' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/bool_plperl' 5 | relocatable = true 6 | requires = 'plperlu' 7 | -------------------------------------------------------------------------------- /contrib/btree_gist/btree_gist.control: -------------------------------------------------------------------------------- 1 | # btree_gist extension 2 | comment = 'support for indexing common datatypes in GiST' 3 | default_version = '1.7' 4 | module_pathname = '$libdir/btree_gist' 5 | relocatable = true 6 | trusted = true 7 | -------------------------------------------------------------------------------- /src/common/unicode/.gitignore: -------------------------------------------------------------------------------- 1 | /norm_test 2 | /norm_test_table.h 3 | 4 | # Downloaded files 5 | /CompositionExclusions.txt 6 | /DerivedNormalizationProps.txt 7 | /EastAsianWidth.txt 8 | /NormalizationTest.txt 9 | /UnicodeData.txt 10 | -------------------------------------------------------------------------------- /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 = true 8 | trusted = true 9 | -------------------------------------------------------------------------------- /contrib/intarray/intarray.control: -------------------------------------------------------------------------------- 1 | # intarray extension 2 | comment = 'functions, operators, and index support for 1-D arrays of integers' 3 | default_version = '1.5' 4 | module_pathname = '$libdir/_int' 5 | relocatable = true 6 | trusted = true 7 | -------------------------------------------------------------------------------- /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/pg_trgm/pg_trgm.control: -------------------------------------------------------------------------------- 1 | # pg_trgm extension 2 | comment = 'text similarity measurement and index searching based on trigrams' 3 | default_version = '1.6' 4 | module_pathname = '$libdir/pg_trgm' 5 | relocatable = true 6 | trusted = true 7 | -------------------------------------------------------------------------------- /contrib/pg_walinspect/pg_walinspect.control: -------------------------------------------------------------------------------- 1 | # pg_walinspect extension 2 | comment = 'functions to inspect contents of PostgreSQL Write-Ahead Log' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/pg_walinspect' 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 | trusted = true 7 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/preproc-outofscope.stdout: -------------------------------------------------------------------------------- 1 | id=1 t='a' d1=1.000000 d2=2.000000 c = 'a ' 2 | id=2 t='' (NULL) d1=0.000000 (NULL) d2=0.000000 (NULL) c = '' (NULL) 3 | id=3 t='b' d1=2.000000 d2=3.000000 c = 'b ' 4 | -------------------------------------------------------------------------------- /src/pl/plperl/plperlu.control: -------------------------------------------------------------------------------- 1 | # plperlu extension 2 | comment = 'PL/PerlU untrusted procedural language' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/plperl' 5 | relocatable = false 6 | schema = pg_catalog 7 | superuser = true 8 | -------------------------------------------------------------------------------- /src/test/modules/dummy_index_am/dummy_index_am.control: -------------------------------------------------------------------------------- 1 | # dummy_index_am extension 2 | comment = 'dummy_index_am - index access method template' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/dummy_index_am' 5 | relocatable = true 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 | -------------------------------------------------------------------------------- /src/bin/pg_config/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_config/nls.mk 2 | CATALOG_NAME = pg_config 3 | AVAIL_LANGUAGES = cs de el es fr he it ja ka ko pl pt_BR ru sv tr uk vi zh_CN 4 | GETTEXT_FILES = pg_config.c ../../common/config_info.c ../../common/exec.c 5 | -------------------------------------------------------------------------------- /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 | 0 0 0 0 0 0 7 | -------------------------------------------------------------------------------- /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/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 = true 8 | trusted = true 9 | -------------------------------------------------------------------------------- /src/test/modules/plsample/plsample.control: -------------------------------------------------------------------------------- 1 | # plsample extension 2 | comment = 'PL/Sample' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/plsample' 5 | relocatable = false 6 | schema = pg_catalog 7 | superuser = false 8 | trusted = true 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/test/modules/test_integerset/sql/test_integerset.sql: -------------------------------------------------------------------------------- 1 | CREATE EXTENSION test_integerset; 2 | 3 | -- 4 | -- All the logic is in the test_integerset() function. It will throw 5 | -- an error if something fails. 6 | -- 7 | SELECT test_integerset(); 8 | -------------------------------------------------------------------------------- /contrib/bool_plperl/bool_plperl.control: -------------------------------------------------------------------------------- 1 | # bool_plperl extension 2 | comment = 'transform between bool and plperl' 3 | default_version = '1.0' 4 | module_pathname = '$libdir/bool_plperl' 5 | relocatable = true 6 | trusted = true 7 | requires = 'plperl' 8 | -------------------------------------------------------------------------------- /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 | trusted = true 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /src/test/modules/libpq_pipeline/traces/disallowed_in_pipeline.trace: -------------------------------------------------------------------------------- 1 | F 13 Query "SELECT 1" 2 | B 33 RowDescription 1 "?column?" NNNN 0 NNNN 4 -1 0 3 | B 11 DataRow 1 1 '1' 4 | B 13 CommandComplete "SELECT 1" 5 | B 5 ReadyForQuery I 6 | F 4 Terminate 7 | -------------------------------------------------------------------------------- /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 | trusted = true 7 | requires = 'plperl' 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 = true 8 | trusted = true 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*.{c,h,l,y,pl,pm}] 4 | indent_style = tab 5 | indent_size = tab 6 | tab_width = 4 7 | 8 | [*.{sgml,xml}] 9 | indent_style = space 10 | indent_size = 1 11 | 12 | [*.xsl] 13 | indent_style = space 14 | indent_size = 2 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/test/modules/test_misc/README: -------------------------------------------------------------------------------- 1 | This directory doesn't actually contain any extension module. 2 | 3 | What it is is a home for otherwise-unclassified TAP tests that exercise core 4 | server features. We might equally well have called it, say, src/test/misc. 5 | -------------------------------------------------------------------------------- /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/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 | trusted = true 7 | -------------------------------------------------------------------------------- /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 | min int = -2147483648 8 | max int = 2147483647 9 | -------------------------------------------------------------------------------- /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/makefiles/Makefile.netbsd: -------------------------------------------------------------------------------- 1 | AROPT = cr 2 | 3 | export_dynamic = -Wl,-E 4 | rpath = -Wl,-R'$(rpathdir)' 5 | 6 | 7 | # Rule for building a shared library from a single .o file 8 | %.so: %.o 9 | $(CC) $(CFLAGS) $< $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ 10 | -------------------------------------------------------------------------------- /src/makefiles/Makefile.openbsd: -------------------------------------------------------------------------------- 1 | AROPT = cr 2 | 3 | export_dynamic = -Wl,-E 4 | rpath = -Wl,-R'$(rpathdir)' 5 | 6 | 7 | # Rule for building a shared library from a single .o file 8 | %.so: %.o 9 | $(CC) $(CFLAGS) $< $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/test/modules/test_ginpostinglist/sql/test_ginpostinglist.sql: -------------------------------------------------------------------------------- 1 | CREATE EXTENSION test_ginpostinglist; 2 | 3 | -- 4 | -- All the logic is in the test_ginpostinglist() function. It will throw 5 | -- a error if something fails. 6 | -- 7 | SELECT test_ginpostinglist(); 8 | -------------------------------------------------------------------------------- /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_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 | -------------------------------------------------------------------------------- /contrib/pg_stat_statements/pg_stat_statements.control: -------------------------------------------------------------------------------- 1 | # pg_stat_statements extension 2 | comment = 'track planning and execution statistics of all SQL statements executed' 3 | default_version = '1.10' 4 | module_pathname = '$libdir/pg_stat_statements' 5 | relocatable = true 6 | -------------------------------------------------------------------------------- /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 | trusted = true 7 | -------------------------------------------------------------------------------- /doc/src/sgml/keywords/sql2011-09-reserved.txt: -------------------------------------------------------------------------------- 1 | DATALINK 2 | DLNEWCOPY 3 | DLPREVIOUSCOPY 4 | DLURLCOMPLETE 5 | DLURLCOMPLETEWRITE 6 | DLURLCOMPLETEONLY 7 | DLURLPATH 8 | DLURLPATHWRITE 9 | DLURLPATHONLY 10 | DLURLSCHEME 11 | DLURLSERVER 12 | DLVALUE 13 | IMPORT 14 | -------------------------------------------------------------------------------- /doc/src/sgml/keywords/sql2016-09-reserved.txt: -------------------------------------------------------------------------------- 1 | DATALINK 2 | DLNEWCOPY 3 | DLPREVIOUSCOPY 4 | DLURLCOMPLETE 5 | DLURLCOMPLETEWRITE 6 | DLURLCOMPLETEONLY 7 | DLURLPATH 8 | DLURLPATHWRITE 9 | DLURLPATHONLY 10 | DLURLSCHEME 11 | DLURLSERVER 12 | DLVALUE 13 | IMPORT 14 | -------------------------------------------------------------------------------- /src/bin/pg_ctl/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_ctl/nls.mk 2 | CATALOG_NAME = pg_ctl 3 | AVAIL_LANGUAGES = cs de el es fr it ja ka ko pt_BR ru sv tr uk 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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contrib/pgcrypto/sql/init.sql: -------------------------------------------------------------------------------- 1 | -- 2 | -- init pgcrypto 3 | -- 4 | 5 | CREATE EXTENSION pgcrypto; 6 | 7 | -- check error handling 8 | select gen_salt('foo'); 9 | select digest('foo', 'foo'); 10 | select hmac('foo', 'foo', 'foo'); 11 | select encrypt('foo', 'foo', 'foo'); 12 | -------------------------------------------------------------------------------- /src/bin/pg_upgrade/t/001_basic.pl: -------------------------------------------------------------------------------- 1 | use strict; 2 | use warnings; 3 | 4 | use PostgreSQL::Test::Utils; 5 | use Test::More; 6 | 7 | program_help_ok('pg_upgrade'); 8 | program_version_ok('pg_upgrade'); 9 | program_options_handling_ok('pg_upgrade'); 10 | 11 | done_testing(); 12 | -------------------------------------------------------------------------------- /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/test/modules/plsample/README: -------------------------------------------------------------------------------- 1 | PL/Sample 2 | ========= 3 | 4 | PL/Sample is an example template of procedural-language handler. It is 5 | a simple implementation, yet demonstrates some of the things that can be done 6 | to build a fully functional procedural-language handler. 7 | -------------------------------------------------------------------------------- /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 %~dp0/build.pl %* 7 | -------------------------------------------------------------------------------- /src/test/regress/.gitignore: -------------------------------------------------------------------------------- 1 | # Local binaries 2 | /pg_regress 3 | 4 | # Generated subdirectories 5 | /tmp_check/ 6 | /results/ 7 | /log/ 8 | 9 | # Note: regression.* are only left behind on a failure; that's why they're not ignored 10 | #/regression.diffs 11 | #/regression.out 12 | -------------------------------------------------------------------------------- /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 el es fr it ja ka ko pl pt_BR ru sv tr uk vi zh_CN 4 | GETTEXT_FILES = pltcl.c 5 | GETTEXT_TRIGGERS = $(BACKEND_COMMON_GETTEXT_TRIGGERS) 6 | GETTEXT_FLAGS = $(BACKEND_COMMON_GETTEXT_FLAGS) 7 | -------------------------------------------------------------------------------- /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 %~dp0/install.pl %* 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /HISTORY: -------------------------------------------------------------------------------- 1 | Release notes for all versions of PostgreSQL can be found on-line at 2 | https://www.postgresql.org/docs/current/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/pl/plperl/nls.mk: -------------------------------------------------------------------------------- 1 | # src/pl/plperl/nls.mk 2 | CATALOG_NAME = plperl 3 | AVAIL_LANGUAGES = cs de el es fr it ja ka ko pl pt_BR ru sv tr uk vi zh_CN 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 | -------------------------------------------------------------------------------- /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 %~dp0/vcregress.pl %* 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/test/modules/test_regex/expected/test_regex_utf8_1.out: -------------------------------------------------------------------------------- 1 | /* 2 | * This test must be run in a database with UTF-8 encoding, 3 | * because other encodings don't support all the characters used. 4 | */ 5 | SELECT getdatabaseencoding() <> 'UTF8' 6 | AS skip_test \gset 7 | \if :skip_test 8 | \quit 9 | -------------------------------------------------------------------------------- /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 %~dp0/pgflex.pl %* 8 | -------------------------------------------------------------------------------- /contrib/citext/expected/citext_utf8_1.out: -------------------------------------------------------------------------------- 1 | /* 2 | * This test must be run in a database with UTF-8 encoding 3 | * and a Unicode-aware locale. 4 | */ 5 | SELECT getdatabaseencoding() <> 'UTF8' OR 6 | current_setting('lc_ctype') = 'C' 7 | AS skip_test \gset 8 | \if :skip_test 9 | \quit 10 | -------------------------------------------------------------------------------- /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 %~dp0/pgbison.pl %* 8 | -------------------------------------------------------------------------------- /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/seg/seg--1.3--1.4.sql: -------------------------------------------------------------------------------- 1 | /* contrib/seg/seg--1.3--1.4.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION seg UPDATE TO '1.4'" to load this file. \quit 5 | 6 | -- Remove @ and ~ 7 | DROP OPERATOR @ (seg, seg); 8 | DROP OPERATOR ~ (seg, seg); 9 | -------------------------------------------------------------------------------- /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/include/port/win32_msvc/unistd.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32_msvc/unistd.h */ 2 | 3 | /* 4 | * MSVC does not define these, nor does _fileno(stdin) etc reliably work 5 | * (returns -1 if stdin/out/err are closed). 6 | */ 7 | #define STDIN_FILENO 0 8 | #define STDOUT_FILENO 1 9 | #define STDERR_FILENO 2 10 | -------------------------------------------------------------------------------- /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/test/recovery/t/cp_history_files: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | use File::Copy; 4 | use strict; 5 | use warnings; 6 | 7 | die "wrong number of arguments" if @ARGV != 2; 8 | my ($source, $target) = @ARGV; 9 | exit if $source !~ /history/; 10 | copy($source, $target) or die "couldn't copy $source to $target: $!"; 11 | -------------------------------------------------------------------------------- /doc/src/sgml/keywords/sql2011-09-nonreserved.txt: -------------------------------------------------------------------------------- 1 | BLOCKED 2 | CONTROL 3 | DB 4 | FILE 5 | FS 6 | INTEGRITY 7 | LIBRARY 8 | LIMIT 9 | LINK 10 | MAPPING 11 | OFF 12 | PASSTHROUGH 13 | PERMISSION 14 | RECOVERY 15 | REQUIRING 16 | RESTORE 17 | SELECTIVE 18 | SERVER 19 | TOKEN 20 | UNLINK 21 | VERSION 22 | WRAPPER 23 | YES 24 | -------------------------------------------------------------------------------- /doc/src/sgml/keywords/sql2016-09-nonreserved.txt: -------------------------------------------------------------------------------- 1 | BLOCKED 2 | CONTROL 3 | DB 4 | FILE 5 | FS 6 | INTEGRITY 7 | LIBRARY 8 | LIMIT 9 | LINK 10 | MAPPING 11 | OFF 12 | PASSTHROUGH 13 | PERMISSION 14 | RECOVERY 15 | REQUIRING 16 | RESTORE 17 | SELECTIVE 18 | SERVER 19 | TOKEN 20 | UNLINK 21 | VERSION 22 | WRAPPER 23 | YES 24 | -------------------------------------------------------------------------------- /src/pl/tcl/pltclu--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/pl/tcl/pltclu--1.0.sql */ 2 | 3 | CREATE FUNCTION pltclu_call_handler() RETURNS language_handler 4 | LANGUAGE c AS 'MODULE_PATHNAME'; 5 | 6 | CREATE LANGUAGE pltclu 7 | HANDLER pltclu_call_handler; 8 | 9 | COMMENT ON LANGUAGE pltclu IS 'PL/TclU untrusted procedural language'; 10 | -------------------------------------------------------------------------------- /src/test/examples/testlibpq3.sql: -------------------------------------------------------------------------------- 1 | CREATE SCHEMA testlibpq3; 2 | SET search_path = testlibpq3; 3 | SET standard_conforming_strings = ON; 4 | CREATE TABLE test1 (i int4, t text, b bytea); 5 | INSERT INTO test1 values (1, 'joe''s place', '\000\001\002\003\004'); 6 | INSERT INTO test1 values (2, 'ho there', '\004\003\002\001\000'); 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/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 | 8 | # Extra CFLAGS for code that will go into a shared library 9 | CFLAGS_SL="-fPIC -DPIC" 10 | -------------------------------------------------------------------------------- /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/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/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/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 | -------------------------------------------------------------------------------- /doc/src/sgml/keywords/sql2011-14-reserved.txt: -------------------------------------------------------------------------------- 1 | XML 2 | XMLAGG 3 | XMLATTRIBUTES 4 | XMLBINARY 5 | XMLCAST 6 | XMLCOMMENT 7 | XMLCONCAT 8 | XMLDOCUMENT 9 | XMLELEMENT 10 | XMLEXISTS 11 | XMLFOREST 12 | XMLITERATE 13 | XMLNAMESPACES 14 | XMLPARSE 15 | XMLPI 16 | XMLQUERY 17 | XMLSERIALIZE 18 | XMLTABLE 19 | XMLTEXT 20 | XMLVALIDATE 21 | -------------------------------------------------------------------------------- /doc/src/sgml/keywords/sql2016-14-reserved.txt: -------------------------------------------------------------------------------- 1 | XML 2 | XMLAGG 3 | XMLATTRIBUTES 4 | XMLBINARY 5 | XMLCAST 6 | XMLCOMMENT 7 | XMLCONCAT 8 | XMLDOCUMENT 9 | XMLELEMENT 10 | XMLEXISTS 11 | XMLFOREST 12 | XMLITERATE 13 | XMLNAMESPACES 14 | XMLPARSE 15 | XMLPI 16 | XMLQUERY 17 | XMLSERIALIZE 18 | XMLTABLE 19 | XMLTEXT 20 | XMLVALIDATE 21 | -------------------------------------------------------------------------------- /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/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 ka pt_BR ru sv uk 4 | GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) pg_test_fsync.c 5 | GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) die 6 | GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS) 7 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/ecpglib/nls.mk: -------------------------------------------------------------------------------- 1 | # src/interfaces/ecpg/ecpglib/nls.mk 2 | CATALOG_NAME = ecpglib 3 | AVAIL_LANGUAGES = cs de el es fr it ja ka ko pl pt_BR ru sv tr uk 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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contrib/intarray/intarray--1.4--1.5.sql: -------------------------------------------------------------------------------- 1 | /* contrib/intarray/intarray--1.4--1.5.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via ALTER EXTENSION 4 | \echo Use "ALTER EXTENSION intarray UPDATE TO '1.5'" to load this file. \quit 5 | 6 | -- Remove @ and ~ 7 | DROP OPERATOR @ (_int4, _int4); 8 | DROP OPERATOR ~ (_int4, _int4); 9 | -------------------------------------------------------------------------------- /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(const 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 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/compat_informix/.gitignore: -------------------------------------------------------------------------------- 1 | /charfuncs 2 | /charfuncs.c 3 | /dec_test 4 | /dec_test.c 5 | /describe 6 | /describe.c 7 | /rfmtdate 8 | /rfmtdate.c 9 | /rfmtlong 10 | /rfmtlong.c 11 | /rnull 12 | /rnull.c 13 | /sqlda 14 | /sqlda.c 15 | /test_informix 16 | /test_informix.c 17 | /test_informix2 18 | /test_informix2.c 19 | -------------------------------------------------------------------------------- /src/test/locale/koi8-to-win1251/README: -------------------------------------------------------------------------------- 1 | src/test/locale/koi8-to-win1251/README 2 | 3 | koi8-to-win1251 test. The database should be created in koi8 (createdb -E koi8), 4 | test uses koi8-to-win1251 converting feature. 5 | Created by Oleg Broytmann . Code for encodings 6 | converting created by Tatsuo Ishii . 7 | -------------------------------------------------------------------------------- /contrib/spi/insert_username--1.0.sql: -------------------------------------------------------------------------------- 1 | /* contrib/spi/insert_username--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION insert_username" to load this file. \quit 5 | 6 | CREATE FUNCTION insert_username() 7 | RETURNS trigger 8 | AS 'MODULE_PATHNAME' 9 | LANGUAGE C; 10 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/preproc-autoprep.stdout: -------------------------------------------------------------------------------- 1 | item[0] = 1 2 | item[1] = 2 3 | item[2] = 2 4 | item[3] = -1 5 | i = 1 6 | item[0] = 1 7 | item[1] = 2 8 | item[2] = 2 9 | item[3] = -1 10 | item[0] = 1 11 | item[1] = 2 12 | item[2] = 2 13 | item[3] = -1 14 | i = 1 15 | item[0] = 1 16 | item[1] = 2 17 | item[2] = 2 18 | item[3] = -1 19 | -------------------------------------------------------------------------------- /src/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 | -------------------------------------------------------------------------------- /src/tools/ci/windows_build_config.pl: -------------------------------------------------------------------------------- 1 | use strict; 2 | use warnings; 3 | 4 | our $config; 5 | 6 | $config->{"tap_tests"} = 1; 7 | $config->{"asserts"} = 1; 8 | 9 | $config->{"openssl"} = "c:/openssl/1.1/"; 10 | $config->{"perl"} = "c:/strawberry/$ENV{DEFAULT_PERL_VERSION}/perl/"; 11 | $config->{"python"} = "c:/python/"; 12 | 13 | 1; 14 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contrib/vacuumlo/t/001_basic.pl: -------------------------------------------------------------------------------- 1 | 2 | # Copyright (c) 2021-2022, PostgreSQL Global Development Group 3 | 4 | use strict; 5 | use warnings; 6 | 7 | use PostgreSQL::Test::Utils; 8 | use Test::More; 9 | 10 | program_help_ok('vacuumlo'); 11 | program_version_ok('vacuumlo'); 12 | program_options_handling_ok('vacuumlo'); 13 | 14 | done_testing(); 15 | -------------------------------------------------------------------------------- /src/bin/pg_waldump/t/001_basic.pl: -------------------------------------------------------------------------------- 1 | 2 | # Copyright (c) 2021-2022, PostgreSQL Global Development Group 3 | 4 | use strict; 5 | use warnings; 6 | use PostgreSQL::Test::Utils; 7 | use Test::More; 8 | 9 | program_help_ok('pg_waldump'); 10 | program_version_ok('pg_waldump'); 11 | program_options_handling_ok('pg_waldump'); 12 | 13 | done_testing(); 14 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/test/expected/compat_informix-rnull.stdout: -------------------------------------------------------------------------------- 1 | first select 2 | null: 0 3 | null: 0 4 | null: 0 5 | null: 0 6 | null: 0 7 | null: 0 8 | null: 0 9 | null: 1 10 | null: 1 11 | null: 1 12 | second select 13 | null: 1 14 | null: 1 15 | null: 1 16 | null: 0 17 | null: 1 18 | null: 1 19 | null: 1 20 | null: 1 21 | null: 1 22 | null: 1 23 | -------------------------------------------------------------------------------- /src/test/ssl/conf/server-ip-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 = 192.0.2.1 10 | OU = PostgreSQL test suite 11 | 12 | # No Subject Alternative Names 13 | -------------------------------------------------------------------------------- /src/bin/pg_amcheck/t/001_basic.pl: -------------------------------------------------------------------------------- 1 | 2 | # Copyright (c) 2021-2022, PostgreSQL Global Development Group 3 | 4 | use strict; 5 | use warnings; 6 | 7 | use PostgreSQL::Test::Utils; 8 | use Test::More; 9 | 10 | program_help_ok('pg_amcheck'); 11 | program_version_ok('pg_amcheck'); 12 | program_options_handling_ok('pg_amcheck'); 13 | 14 | done_testing(); 15 | -------------------------------------------------------------------------------- /src/bin/pg_controldata/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_controldata/nls.mk 2 | CATALOG_NAME = pg_controldata 3 | AVAIL_LANGUAGES = cs de el es fr it ja ka ko pt_BR ru sv tr uk zh_CN 4 | GETTEXT_FILES = pg_controldata.c ../../common/controldata_utils.c 5 | GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) 6 | GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS) 7 | -------------------------------------------------------------------------------- /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/bin/pg_checksums/t/001_basic.pl: -------------------------------------------------------------------------------- 1 | 2 | # Copyright (c) 2021-2022, PostgreSQL Global Development Group 3 | 4 | use strict; 5 | use warnings; 6 | use PostgreSQL::Test::Utils; 7 | use Test::More; 8 | 9 | program_help_ok('pg_checksums'); 10 | program_version_ok('pg_checksums'); 11 | program_options_handling_ok('pg_checksums'); 12 | 13 | done_testing(); 14 | -------------------------------------------------------------------------------- /src/interfaces/ecpg/preproc/nls.mk: -------------------------------------------------------------------------------- 1 | # src/interfaces/ecpg/preproc/nls.mk 2 | CATALOG_NAME = ecpg 3 | AVAIL_LANGUAGES = cs de el es fr it ja ka ko pl pt_BR ru sv tr uk 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/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/test/regress/expected/collate.icu.utf8_1.out: -------------------------------------------------------------------------------- 1 | /* 2 | * This test is for ICU collations. 3 | */ 4 | /* skip test if not UTF8 server encoding or no ICU collations installed */ 5 | SELECT getdatabaseencoding() <> 'UTF8' OR 6 | (SELECT count(*) FROM pg_collation WHERE collprovider = 'i') = 0 7 | AS skip_test \gset 8 | \if :skip_test 9 | \quit 10 | -------------------------------------------------------------------------------- /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/bin/pg_archivecleanup/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_archivecleanup/nls.mk 2 | CATALOG_NAME = pg_archivecleanup 3 | AVAIL_LANGUAGES = cs de el es fr ja ka ko pt_BR ru sv tr uk zh_CN 4 | GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) pg_archivecleanup.c 5 | GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) 6 | GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS) 7 | -------------------------------------------------------------------------------- /src/include/port/freebsd.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/freebsd.h */ 2 | 3 | /* 4 | * Set the default wal_sync_method to fdatasync. xlogdefs.h's normal rules 5 | * would prefer open_datasync on FreeBSD 13+, but that is not a good choice on 6 | * many systems. 7 | */ 8 | #ifdef HAVE_FDATASYNC 9 | #define PLATFORM_DEFAULT_SYNC_METHOD SYNC_METHOD_FDATASYNC 10 | #endif 11 | -------------------------------------------------------------------------------- /src/test/locale/sort-test.pl: -------------------------------------------------------------------------------- 1 | #! /usr/bin/perl 2 | 3 | # Copyright (c) 2021-2022, PostgreSQL Global Development Group 4 | 5 | use strict; 6 | use warnings; 7 | use locale; 8 | 9 | open(my $in_fh, '<', $ARGV[0]) || die; 10 | chop(my (@words) = <$in_fh>); 11 | close($in_fh); 12 | 13 | $" = "\n"; 14 | my (@result) = sort @words; 15 | 16 | print "@result\n"; 17 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/test/regress/expected/json_encoding_2.out: -------------------------------------------------------------------------------- 1 | -- 2 | -- encoding-sensitive tests for json and jsonb 3 | -- 4 | -- We provide expected-results files for UTF8 (json_encoding.out) 5 | -- and for SQL_ASCII (json_encoding_1.out). Skip otherwise. 6 | SELECT getdatabaseencoding() NOT IN ('UTF8', 'SQL_ASCII') 7 | AS skip_test \gset 8 | \if :skip_test 9 | \quit 10 | -------------------------------------------------------------------------------- /src/test/ssl/conf/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 | # No Subject Alternative Names 13 | -------------------------------------------------------------------------------- /src/tools/msvc/dummylib/Win32/Registry.pm: -------------------------------------------------------------------------------- 1 | 2 | # Copyright (c) 2021-2022, PostgreSQL Global Development Group 3 | 4 | package Win32::Registry; 5 | 6 | use strict; 7 | use warnings; 8 | 9 | use vars qw($HKEY_LOCAL_MACHINE); 10 | 11 | use Exporter (); 12 | our (@EXPORT, @ISA); 13 | @ISA = qw(Exporter); 14 | @EXPORT = qw($HKEY_LOCAL_MACHINE); 15 | 16 | 1; 17 | -------------------------------------------------------------------------------- /src/bin/pg_resetwal/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_resetwal/nls.mk 2 | CATALOG_NAME = pg_resetwal 3 | AVAIL_LANGUAGES = cs de el es fr ja ka ko pt_BR ru sv uk zh_CN 4 | GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) pg_resetwal.c ../../common/restricted_token.c 5 | GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) 6 | GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS) 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/test/regress/expected/jsonpath_encoding_2.out: -------------------------------------------------------------------------------- 1 | -- 2 | -- encoding-sensitive tests for jsonpath 3 | -- 4 | -- We provide expected-results files for UTF8 (jsonpath_encoding.out) 5 | -- and for SQL_ASCII (jsonpath_encoding_1.out). Skip otherwise. 6 | SELECT getdatabaseencoding() NOT IN ('UTF8', 'SQL_ASCII') 7 | AS skip_test \gset 8 | \if :skip_test 9 | \quit 10 | -------------------------------------------------------------------------------- /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/test/modules/dummy_index_am/README: -------------------------------------------------------------------------------- 1 | Dummy Index AM 2 | ============== 3 | 4 | Dummy index AM is a module for testing any facility usable by an index 5 | access method, whose code is kept a maximum simple. 6 | 7 | This includes tests for all relation option types: 8 | - boolean 9 | - enum 10 | - integer 11 | - real 12 | - strings (with and without NULL as default) 13 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 sync 12 | 13 | include $(top_srcdir)/src/backend/common.mk 14 | -------------------------------------------------------------------------------- /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/conf/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 | -------------------------------------------------------------------------------- /doc/src/sgml/keywords/sql2016-14-nonreserved.txt: -------------------------------------------------------------------------------- 1 | ABSENT 2 | ACCORDING 3 | BASE64 4 | BOM 5 | COLUMNS 6 | CONTENT 7 | DOCUMENT 8 | ENCODING 9 | HEX 10 | ID 11 | INDENT 12 | LOCATION 13 | NAMESPACE 14 | NIL 15 | PATH 16 | PRESERVE 17 | RETURNING 18 | SEQUENCE 19 | STANDALONE 20 | STRIP 21 | UNTYPED 22 | URI 23 | VALID 24 | VERSION 25 | WHITESPACE 26 | XMLSCHEMA 27 | XMLDECLARATION 28 | -------------------------------------------------------------------------------- /src/pl/plpgsql/src/nls.mk: -------------------------------------------------------------------------------- 1 | # src/pl/plpgsql/src/nls.mk 2 | CATALOG_NAME = plpgsql 3 | AVAIL_LANGUAGES = cs de el es fr it ja ka ko pl pt_BR ru sv tr uk vi zh_CN 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/test/modules/test_integerset/test_integerset--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/test/modules/test_integerset/test_integerset--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION test_integerset" to load this file. \quit 5 | 6 | CREATE FUNCTION test_integerset() 7 | RETURNS pg_catalog.void STRICT 8 | AS 'MODULE_PATHNAME' LANGUAGE C; 9 | -------------------------------------------------------------------------------- /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/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/modules/libpq_pipeline/traces/simple_pipeline.trace: -------------------------------------------------------------------------------- 1 | F 21 Parse "" "SELECT $1" 1 NNNN 2 | F 19 Bind "" "" 0 1 1 '1' 1 0 3 | F 6 Describe P "" 4 | F 9 Execute "" 0 5 | F 4 Sync 6 | B 4 ParseComplete 7 | B 4 BindComplete 8 | B 33 RowDescription 1 "?column?" NNNN 0 NNNN 4 -1 0 9 | B 11 DataRow 1 1 '1' 10 | B 13 CommandComplete "SELECT 1" 11 | B 5 ReadyForQuery I 12 | F 4 Terminate 13 | -------------------------------------------------------------------------------- /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/bin/pg_checksums/nls.mk: -------------------------------------------------------------------------------- 1 | # src/bin/pg_checksums/nls.mk 2 | CATALOG_NAME = pg_checksums 3 | AVAIL_LANGUAGES = de es fr ja ka pt_BR ru sv uk 4 | GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \ 5 | pg_checksums.c \ 6 | ../../fe_utils/option_utils.c 7 | GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) 8 | GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS) 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 ka ru sv uk 4 | GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) pg_waldump.c xlogreader.c xlogstats.c 5 | GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) report_invalid_record:2 6 | GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS) \ 7 | report_invalid_record:2:c-format 8 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_dutch.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * dutch_UTF_8_create_env(void); 8 | extern void dutch_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int dutch_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_greek.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * greek_UTF_8_create_env(void); 8 | extern void greek_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int greek_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_hindi.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * hindi_UTF_8_create_env(void); 8 | extern void hindi_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int hindi_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_irish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * irish_UTF_8_create_env(void); 8 | extern void irish_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int irish_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_tamil.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * tamil_UTF_8_create_env(void); 8 | extern void tamil_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int tamil_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/port/qsort_arg.c: -------------------------------------------------------------------------------- 1 | /* 2 | * qsort_arg.c: qsort with a passthrough "void *" argument 3 | */ 4 | 5 | #include "c.h" 6 | 7 | #define ST_SORT qsort_arg 8 | #define ST_ELEMENT_TYPE_VOID 9 | #define ST_COMPARATOR_TYPE_NAME qsort_arg_comparator 10 | #define ST_COMPARE_RUNTIME_POINTER 11 | #define ST_COMPARE_ARG_TYPE void 12 | #define ST_SCOPE 13 | #define ST_DEFINE 14 | #include "lib/sort_template.h" 15 | -------------------------------------------------------------------------------- /src/test/modules/test_misc/Makefile: -------------------------------------------------------------------------------- 1 | # src/test/modules/test_misc/Makefile 2 | 3 | TAP_TESTS = 1 4 | 5 | ifdef USE_PGXS 6 | PG_CONFIG = pg_config 7 | PGXS := $(shell $(PG_CONFIG) --pgxs) 8 | include $(PGXS) 9 | else 10 | subdir = src/test/modules/test_misc 11 | top_builddir = ../../../.. 12 | include $(top_builddir)/src/Makefile.global 13 | include $(top_srcdir)/contrib/contrib-global.mk 14 | endif 15 | -------------------------------------------------------------------------------- /src/test/modules/test_regex/test_regex--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/test/modules/test_regex/test_regex--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION test_regex" to load this file. \quit 5 | 6 | CREATE FUNCTION test_regex(pattern text, string text, flags text) 7 | RETURNS SETOF text[] 8 | STRICT 9 | AS 'MODULE_PATHNAME' LANGUAGE C; 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /doc/src/sgml/keywords/sql2011-14-nonreserved.txt: -------------------------------------------------------------------------------- 1 | ABSENT 2 | ACCORDING 3 | BASE64 4 | BOM 5 | COLUMNS 6 | CONTENT 7 | DOCUMENT 8 | EMPTY 9 | ENCODING 10 | HEX 11 | ID 12 | INDENT 13 | LOCATION 14 | NAMESPACE 15 | NIL 16 | PASSING 17 | PATH 18 | PRESERVE 19 | RETURNING 20 | SEQUENCE 21 | STANDALONE 22 | STRIP 23 | UNTYPED 24 | URI 25 | VALID 26 | VERSION 27 | WHITESPACE 28 | XMLSCHEMA 29 | XMLDECLARATION 30 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_arabic.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * arabic_UTF_8_create_env(void); 8 | extern void arabic_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int arabic_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_basque.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * basque_UTF_8_create_env(void); 8 | extern void basque_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int basque_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_catalan.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * catalan_UTF_8_create_env(void); 8 | extern void catalan_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int catalan_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_danish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * danish_UTF_8_create_env(void); 8 | extern void danish_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int danish_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_english.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * english_UTF_8_create_env(void); 8 | extern void english_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int english_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_finnish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * finnish_UTF_8_create_env(void); 8 | extern void finnish_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int finnish_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_french.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * french_UTF_8_create_env(void); 8 | extern void french_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int french_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_german.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * german_UTF_8_create_env(void); 8 | extern void german_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int german_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_italian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * italian_UTF_8_create_env(void); 8 | extern void italian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int italian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_nepali.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * nepali_UTF_8_create_env(void); 8 | extern void nepali_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int nepali_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_porter.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * porter_UTF_8_create_env(void); 8 | extern void porter_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int porter_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_russian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * russian_UTF_8_create_env(void); 8 | extern void russian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int russian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_serbian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * serbian_UTF_8_create_env(void); 8 | extern void serbian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int serbian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_spanish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * spanish_UTF_8_create_env(void); 8 | extern void spanish_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int spanish_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_swedish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * swedish_UTF_8_create_env(void); 8 | extern void swedish_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int swedish_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_turkish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * turkish_UTF_8_create_env(void); 8 | extern void turkish_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int turkish_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_yiddish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * yiddish_UTF_8_create_env(void); 8 | extern void yiddish_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int yiddish_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /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/plpython/expected/plpython_do.out: -------------------------------------------------------------------------------- 1 | DO $$ plpy.notice("This is plpython3u.") $$ LANGUAGE plpython3u; 2 | NOTICE: This is plpython3u. 3 | DO $$ raise Exception("error test") $$ LANGUAGE plpython3u; 4 | ERROR: Exception: error test 5 | CONTEXT: Traceback (most recent call last): 6 | PL/Python anonymous code block, line 1, in 7 | raise Exception("error test") 8 | PL/Python anonymous code block 9 | -------------------------------------------------------------------------------- /src/test/modules/test_ginpostinglist/test_ginpostinglist--1.0.sql: -------------------------------------------------------------------------------- 1 | /* src/test/modules/test_ginpostinglist/test_ginpostinglist--1.0.sql */ 2 | 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION 4 | \echo Use "CREATE EXTENSION test_ginpostinglist" to load this file. \quit 5 | 6 | CREATE FUNCTION test_ginpostinglist() 7 | RETURNS pg_catalog.void STRICT 8 | AS 'MODULE_PATHNAME' LANGUAGE C; 9 | -------------------------------------------------------------------------------- /src/test/modules/unsafe_tests/README: -------------------------------------------------------------------------------- 1 | This directory doesn't actually contain any extension module. 2 | 3 | What it is is a home for regression tests that we don't want to run 4 | during "make installcheck" because they could have side-effects that 5 | seem undesirable for a production installation. 6 | 7 | An example is that rolenames.sql tests ALTER USER ALL and so could 8 | have effects on pre-existing roles. 9 | -------------------------------------------------------------------------------- /contrib/intagg/Makefile: -------------------------------------------------------------------------------- 1 | # contrib/intagg/Makefile 2 | 3 | EXTENSION = intagg 4 | DATA = intagg--1.1.sql intagg--1.0--1.1.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 | -------------------------------------------------------------------------------- /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/include/pg_trace.h: -------------------------------------------------------------------------------- 1 | /* ---------- 2 | * pg_trace.h 3 | * 4 | * Definitions for the PostgreSQL tracing framework 5 | * 6 | * Copyright (c) 2006-2022, 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/include/snowball/libstemmer/stem_KOI8_R_russian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * russian_KOI8_R_create_env(void); 8 | extern void russian_KOI8_R_close_env(struct SN_env * z); 9 | 10 | extern int russian_KOI8_R_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_armenian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * armenian_UTF_8_create_env(void); 8 | extern void armenian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int armenian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_romanian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * romanian_UTF_8_create_env(void); 8 | extern void romanian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int romanian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/makefiles/Makefile: -------------------------------------------------------------------------------- 1 | # src/makefiles/Makefile 2 | 3 | subdir = src/makefiles 4 | top_builddir = ../.. 5 | include $(top_builddir)/src/Makefile.global 6 | 7 | 8 | install: all installdirs 9 | $(INSTALL_DATA) $(srcdir)/pgxs.mk '$(DESTDIR)$(pgxsdir)/$(subdir)/' 10 | 11 | installdirs: 12 | $(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)' 13 | 14 | uninstall: 15 | rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/pgxs.mk' 16 | -------------------------------------------------------------------------------- /src/test/modules/test_integerset/README: -------------------------------------------------------------------------------- 1 | test_integerset contains unit tests for testing the integer set implementation 2 | in src/backend/lib/integerset.c. 3 | 4 | The tests verify the correctness of the implementation, but they can also be 5 | used as a micro-benchmark. If you set the 'intset_test_stats' flag in 6 | test_integerset.c, the tests will print extra information about execution time 7 | and memory usage. 8 | -------------------------------------------------------------------------------- /contrib/oid2name/t/001_basic.pl: -------------------------------------------------------------------------------- 1 | 2 | # Copyright (c) 2021-2022, PostgreSQL Global Development Group 3 | 4 | use strict; 5 | use warnings; 6 | 7 | use PostgreSQL::Test::Utils; 8 | use Test::More; 9 | 10 | ######################################### 11 | # Basic checks 12 | 13 | program_help_ok('oid2name'); 14 | program_version_ok('oid2name'); 15 | program_options_handling_ok('oid2name'); 16 | 17 | done_testing(); 18 | -------------------------------------------------------------------------------- /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/include/snowball/libstemmer/stem_UTF_8_hungarian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * hungarian_UTF_8_create_env(void); 8 | extern void hungarian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int hungarian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_norwegian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * norwegian_UTF_8_create_env(void); 8 | extern void norwegian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int norwegian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /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 | 9 | # Rule for building a shared library from a single .o file 10 | %.so: %.o 11 | $(CC) $(CFLAGS) $< $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ 12 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_dutch.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * dutch_ISO_8859_1_create_env(void); 8 | extern void dutch_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int dutch_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_irish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * irish_ISO_8859_1_create_env(void); 8 | extern void irish_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int irish_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_indonesian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * indonesian_UTF_8_create_env(void); 8 | extern void indonesian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int indonesian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_lithuanian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * lithuanian_UTF_8_create_env(void); 8 | extern void lithuanian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int lithuanian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_UTF_8_portuguese.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * portuguese_UTF_8_create_env(void); 8 | extern void portuguese_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int portuguese_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /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/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-2022, 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/snowball/libstemmer/stem_ISO_8859_1_basque.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * basque_ISO_8859_1_create_env(void); 8 | extern void basque_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int basque_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_catalan.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * catalan_ISO_8859_1_create_env(void); 8 | extern void catalan_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int catalan_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_danish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * danish_ISO_8859_1_create_env(void); 8 | extern void danish_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int danish_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_english.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * english_ISO_8859_1_create_env(void); 8 | extern void english_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int english_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_finnish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * finnish_ISO_8859_1_create_env(void); 8 | extern void finnish_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int finnish_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_french.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * french_ISO_8859_1_create_env(void); 8 | extern void french_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int french_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_german.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * german_ISO_8859_1_create_env(void); 8 | extern void german_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int german_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_italian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * italian_ISO_8859_1_create_env(void); 8 | extern void italian_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int italian_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_porter.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * porter_ISO_8859_1_create_env(void); 8 | extern void porter_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int porter_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_spanish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * spanish_ISO_8859_1_create_env(void); 8 | extern void spanish_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int spanish_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/include/snowball/libstemmer/stem_ISO_8859_1_swedish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * swedish_ISO_8859_1_create_env(void); 8 | extern void swedish_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int swedish_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /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/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 | --------------------------------------------------------------------------------