summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael P2011-07-05 03:16:11 +0000
committerMichael P2011-07-06 03:40:35 +0000
commit0bbfc1e6338b5d98d6cb83fa75f2c38f527d4d4b (patch)
tree46fa412a31d08ea6e53d488ae7bc231df0b273da
parent091b0e828cf0fd5bbd1f9ae58ab96fc983e55d77 (diff)
parenta4bebdd92624e018108c2610fc3f2c1584b6c687 (diff)
Merge commit 'a4bebdd92624e018108c2610fc3f2c1584b6c687' into master
This is the commit merge of Postgres-XC with the intersection of PostgreSQL REL9_1_STABLE and master branches. Conflicts: COPYRIGHT contrib/pgbench/pgbench.c src/Makefile src/backend/access/transam/recovery.conf.sample src/backend/access/transam/varsup.c src/backend/access/transam/xlog.c src/backend/catalog/Makefile src/backend/catalog/dependency.c src/backend/catalog/system_views.sql src/backend/commands/copy.c src/backend/commands/explain.c src/backend/commands/sequence.c src/backend/commands/tablecmds.c src/backend/commands/vacuum.c src/backend/executor/nodeAgg.c src/backend/nodes/copyfuncs.c src/backend/nodes/equalfuncs.c src/backend/nodes/outfuncs.c src/backend/nodes/readfuncs.c src/backend/optimizer/path/allpaths.c src/backend/optimizer/plan/createplan.c src/backend/optimizer/plan/setrefs.c src/backend/parser/gram.y src/backend/parser/parse_utilcmd.c src/backend/postmaster/postmaster.c src/backend/rewrite/rewriteHandler.c src/backend/storage/lmgr/proc.c src/backend/tcop/postgres.c src/backend/utils/adt/ruleutils.c src/backend/utils/init/postinit.c src/backend/utils/misc/guc.c src/backend/utils/misc/postgresql.conf.sample src/backend/utils/sort/tuplesort.c src/bin/initdb/initdb.c src/bin/pg_ctl/pg_ctl.c src/bin/pg_dump/pg_dump.c src/include/access/xlog.h src/include/catalog/catversion.h src/include/catalog/indexing.h src/include/catalog/pg_aggregate.h src/include/catalog/pg_proc.h src/include/commands/copy.h src/include/nodes/parsenodes.h src/include/nodes/primnodes.h src/include/optimizer/pathnode.h src/include/parser/kwlist.h src/include/storage/procarray.h src/test/regress/expected/.gitignore src/test/regress/expected/aggregates.out src/test/regress/expected/alter_table.out src/test/regress/expected/bit.out src/test/regress/expected/box.out src/test/regress/expected/delete.out src/test/regress/expected/float4.out src/test/regress/expected/float8.out src/test/regress/expected/int2.out src/test/regress/expected/int8.out src/test/regress/expected/interval.out src/test/regress/expected/numeric.out src/test/regress/expected/point.out src/test/regress/expected/polygon.out src/test/regress/expected/sequence.out src/test/regress/expected/timestamp.out src/test/regress/expected/timestamptz.out src/test/regress/expected/transactions.out src/test/regress/expected/window.out src/test/regress/input/misc.source src/test/regress/output/create_misc_1.source src/test/regress/output/misc.source src/test/regress/sql/aggregates.sql src/test/regress/sql/alter_table.sql src/test/regress/sql/bit.sql src/test/regress/sql/box.sql src/test/regress/sql/delete.sql src/test/regress/sql/domain.sql src/test/regress/sql/float4.sql src/test/regress/sql/float8.sql src/test/regress/sql/int2.sql src/test/regress/sql/int8.sql src/test/regress/sql/interval.sql src/test/regress/sql/lseg.sql src/test/regress/sql/numeric.sql src/test/regress/sql/path.sql src/test/regress/sql/point.sql src/test/regress/sql/polygon.sql src/test/regress/sql/portals.sql src/test/regress/sql/sequence.sql src/test/regress/sql/timestamp.sql src/test/regress/sql/timestamptz.sql src/test/regress/sql/transactions.sql src/test/regress/sql/window.sql src/test/regress/sql/with.sql
-rw-r--r--.gitignore32
-rw-r--r--COPYRIGHT2
-rw-r--r--GNUmakefile.in56
-rw-r--r--Makefile2
-rw-r--r--README3
-rw-r--r--README.git (renamed from README.CVS)6
-rw-r--r--aclocal.m42
-rw-r--r--config/Makefile2
-rw-r--r--config/ac_func_accept_argtypes.m414
-rw-r--r--config/acx_pthread.m43
-rw-r--r--config/c-compiler.m439
-rw-r--r--config/c-library.m431
-rwxr-xr-xconfig/config.guess223
-rwxr-xr-xconfig/config.sub115
-rw-r--r--config/docbook.m42
-rw-r--r--config/general.m44
-rwxr-xr-xconfig/install-sh2
-rwxr-xr-xconfig/missing2
-rw-r--r--config/perl.m44
-rw-r--r--config/prep_buildtree6
-rw-r--r--config/programs.m426
-rw-r--r--config/python.m42
-rw-r--r--config/tcl.m42
-rwxr-xr-xconfigure1123
-rw-r--r--configure.in136
-rw-r--r--contrib/Makefile22
-rw-r--r--contrib/README27
-rw-r--r--contrib/adminpack/Makefile9
-rw-r--r--contrib/adminpack/adminpack--1.0.sql (renamed from contrib/adminpack/adminpack.sql.in)18
-rw-r--r--contrib/adminpack/adminpack.c45
-rw-r--r--contrib/adminpack/adminpack.control6
-rw-r--r--contrib/adminpack/uninstall_adminpack.sql10
-rw-r--r--contrib/auth_delay/Makefile14
-rw-r--r--contrib/auth_delay/auth_delay.c71
-rw-r--r--contrib/auto_explain/Makefile2
-rw-r--r--contrib/auto_explain/auto_explain.c38
-rw-r--r--contrib/btree_gin/.gitignore4
-rw-r--r--contrib/btree_gin/Makefile9
-rw-r--r--contrib/btree_gin/btree_gin--1.0.sql (renamed from contrib/btree_gin/btree_gin.sql.in)141
-rw-r--r--contrib/btree_gin/btree_gin--unpackaged--1.0.sql116
-rw-r--r--contrib/btree_gin/btree_gin.c14
-rw-r--r--contrib/btree_gin/btree_gin.control5
-rw-r--r--contrib/btree_gin/expected/cidr.out2
-rw-r--r--contrib/btree_gin/expected/date.out2
-rw-r--r--contrib/btree_gin/expected/inet.out2
-rw-r--r--contrib/btree_gin/expected/install_btree_gin.out4
-rw-r--r--contrib/btree_gin/expected/interval.out2
-rw-r--r--contrib/btree_gin/expected/macaddr.out2
-rw-r--r--contrib/btree_gin/expected/time.out2
-rw-r--r--contrib/btree_gin/expected/timestamp.out2
-rw-r--r--contrib/btree_gin/expected/timestamptz.out2
-rw-r--r--contrib/btree_gin/expected/timetz.out2
-rw-r--r--contrib/btree_gin/sql/cidr.sql2
-rw-r--r--contrib/btree_gin/sql/date.sql2
-rw-r--r--contrib/btree_gin/sql/inet.sql2
-rw-r--r--contrib/btree_gin/sql/install_btree_gin.sql6
-rw-r--r--contrib/btree_gin/sql/interval.sql2
-rw-r--r--contrib/btree_gin/sql/macaddr.sql2
-rw-r--r--contrib/btree_gin/sql/time.sql2
-rw-r--r--contrib/btree_gin/sql/timestamp.sql2
-rw-r--r--contrib/btree_gin/sql/timestamptz.sql2
-rw-r--r--contrib/btree_gin/sql/timetz.sql2
-rw-r--r--contrib/btree_gin/uninstall_btree_gin.sql98
-rw-r--r--contrib/btree_gist/.gitignore4
-rw-r--r--contrib/btree_gist/Makefile24
-rw-r--r--contrib/btree_gist/btree_bit.c59
-rw-r--r--contrib/btree_gist/btree_bytea.c55
-rw-r--r--contrib/btree_gist/btree_cash.c54
-rw-r--r--contrib/btree_gist/btree_date.c51
-rw-r--r--contrib/btree_gist/btree_float4.c48
-rw-r--r--contrib/btree_gist/btree_float8.c54
-rw-r--r--contrib/btree_gist/btree_gist--1.0.sql (renamed from contrib/btree_gist/btree_gist.sql.in)632
-rw-r--r--contrib/btree_gist/btree_gist--unpackaged--1.0.sql476
-rw-r--r--contrib/btree_gist/btree_gist.c2
-rw-r--r--contrib/btree_gist/btree_gist.control5
-rw-r--r--contrib/btree_gist/btree_gist.h4
-rw-r--r--contrib/btree_gist/btree_inet.c5
-rw-r--r--contrib/btree_gist/btree_int2.c51
-rw-r--r--contrib/btree_gist/btree_int4.c55
-rw-r--r--contrib/btree_gist/btree_int8.c55
-rw-r--r--contrib/btree_gist/btree_interval.c59
-rw-r--r--contrib/btree_gist/btree_macaddr.c5
-rw-r--r--contrib/btree_gist/btree_numeric.c58
-rw-r--r--contrib/btree_gist/btree_oid.c55
-rw-r--r--contrib/btree_gist/btree_text.c62
-rw-r--r--contrib/btree_gist/btree_time.c51
-rw-r--r--contrib/btree_gist/btree_ts.c123
-rw-r--r--contrib/btree_gist/btree_utils_num.c53
-rw-r--r--contrib/btree_gist/btree_utils_num.h41
-rw-r--r--contrib/btree_gist/btree_utils_var.c157
-rw-r--r--contrib/btree_gist/btree_utils_var.h40
-rw-r--r--contrib/btree_gist/data/interval.data2
-rw-r--r--contrib/btree_gist/data/macaddr.data2
-rw-r--r--contrib/btree_gist/data/numeric.data2
-rw-r--r--contrib/btree_gist/data/text.data2
-rw-r--r--contrib/btree_gist/data/timetz.data2
-rw-r--r--contrib/btree_gist/data/varbit.data2
-rw-r--r--contrib/btree_gist/expected/cash.out25
-rw-r--r--contrib/btree_gist/expected/date.out25
-rw-r--r--contrib/btree_gist/expected/float4.out25
-rw-r--r--contrib/btree_gist/expected/float8.out25
-rw-r--r--contrib/btree_gist/expected/init.out8
-rw-r--r--contrib/btree_gist/expected/int2.out25
-rw-r--r--contrib/btree_gist/expected/int4.out25
-rw-r--r--contrib/btree_gist/expected/int8.out25
-rw-r--r--contrib/btree_gist/expected/interval.out25
-rw-r--r--contrib/btree_gist/expected/not_equal.out40
-rw-r--r--contrib/btree_gist/expected/time.out25
-rw-r--r--contrib/btree_gist/expected/timestamp.out25
-rw-r--r--contrib/btree_gist/expected/timestamptz.out25
-rw-r--r--contrib/btree_gist/sql/cash.sql6
-rw-r--r--contrib/btree_gist/sql/cidr.sql1
-rw-r--r--contrib/btree_gist/sql/date.sql5
-rw-r--r--contrib/btree_gist/sql/float4.sql6
-rw-r--r--contrib/btree_gist/sql/float8.sql6
-rw-r--r--contrib/btree_gist/sql/inet.sql1
-rw-r--r--contrib/btree_gist/sql/init.sql10
-rw-r--r--contrib/btree_gist/sql/int2.sql5
-rw-r--r--contrib/btree_gist/sql/int4.sql5
-rw-r--r--contrib/btree_gist/sql/int8.sql5
-rw-r--r--contrib/btree_gist/sql/interval.sql5
-rw-r--r--contrib/btree_gist/sql/macaddr.sql1
-rw-r--r--contrib/btree_gist/sql/not_equal.sql32
-rw-r--r--contrib/btree_gist/sql/time.sql5
-rw-r--r--contrib/btree_gist/sql/timestamp.sql5
-rw-r--r--contrib/btree_gist/sql/timestamptz.sql6
-rw-r--r--contrib/btree_gist/uninstall_btree_gist.sql280
-rw-r--r--contrib/chkpass/Makefile8
-rw-r--r--contrib/chkpass/chkpass--1.0.sql (renamed from contrib/chkpass/chkpass.sql.in)16
-rw-r--r--contrib/chkpass/chkpass--unpackaged--1.0.sql10
-rw-r--r--contrib/chkpass/chkpass.c2
-rw-r--r--contrib/chkpass/chkpass.control5
-rw-r--r--contrib/chkpass/uninstall_chkpass.sql16
-rw-r--r--contrib/citext/.gitignore4
-rw-r--r--contrib/citext/Makefile8
-rw-r--r--contrib/citext/citext--1.0.sql (renamed from contrib/citext/citext.sql.in)84
-rw-r--r--contrib/citext/citext--unpackaged--1.0.sql88
-rw-r--r--contrib/citext/citext.c46
-rw-r--r--contrib/citext/citext.control5
-rw-r--r--contrib/citext/expected/citext.out11
-rw-r--r--contrib/citext/expected/citext_1.out11
-rw-r--r--contrib/citext/sql/citext.sql14
-rw-r--r--contrib/citext/uninstall_citext.sql80
-rw-r--r--contrib/contrib-global.mk2
-rw-r--r--contrib/cube/.cvsignore2
-rw-r--r--contrib/cube/.gitignore6
-rw-r--r--contrib/cube/CHANGES4
-rw-r--r--contrib/cube/Makefile7
-rw-r--r--contrib/cube/cube--1.0.sql (renamed from contrib/cube/cube.sql.in)84
-rw-r--r--contrib/cube/cube--unpackaged--1.0.sql53
-rw-r--r--contrib/cube/cube.c10
-rw-r--r--contrib/cube/cube.control5
-rw-r--r--contrib/cube/cubedata.h2
-rw-r--r--contrib/cube/cubeparse.y34
-rw-r--r--contrib/cube/cubescan.l8
-rw-r--r--contrib/cube/expected/cube.out20
-rw-r--r--contrib/cube/expected/cube_1.out20
-rw-r--r--contrib/cube/expected/cube_2.out20
-rw-r--r--contrib/cube/expected/cube_3.out1128
-rw-r--r--contrib/cube/sql/cube.sql22
-rw-r--r--contrib/cube/uninstall_cube.sql98
-rw-r--r--contrib/dblink/.gitignore4
-rw-r--r--contrib/dblink/Makefile11
-rw-r--r--contrib/dblink/dblink--1.0.sql (renamed from contrib/dblink/dblink.sql.in)89
-rw-r--r--contrib/dblink/dblink--unpackaged--1.0.sql43
-rw-r--r--contrib/dblink/dblink.c28
-rw-r--r--contrib/dblink/dblink.control5
-rw-r--r--contrib/dblink/dblink.h4
-rw-r--r--contrib/dblink/expected/dblink.out20
-rw-r--r--contrib/dblink/sql/dblink.sql23
-rw-r--r--contrib/dblink/uninstall_dblink.sql86
-rw-r--r--contrib/dict_int/.gitignore4
-rw-r--r--contrib/dict_int/Makefile8
-rw-r--r--contrib/dict_int/dict_int--1.0.sql (renamed from contrib/dict_int/dict_int.sql.in)9
-rw-r--r--contrib/dict_int/dict_int--unpackaged--1.0.sql6
-rw-r--r--contrib/dict_int/dict_int.c4
-rw-r--r--contrib/dict_int/dict_int.control5
-rw-r--r--contrib/dict_int/expected/dict_int.out8
-rw-r--r--contrib/dict_int/sql/dict_int.sql10
-rw-r--r--contrib/dict_int/uninstall_dict_int.sql12
-rw-r--r--contrib/dict_xsyn/.gitignore4
-rw-r--r--contrib/dict_xsyn/Makefile8
-rw-r--r--contrib/dict_xsyn/dict_xsyn--1.0.sql (renamed from contrib/dict_xsyn/dict_xsyn.sql.in)9
-rw-r--r--contrib/dict_xsyn/dict_xsyn--unpackaged--1.0.sql6
-rw-r--r--contrib/dict_xsyn/dict_xsyn.c4
-rw-r--r--contrib/dict_xsyn/dict_xsyn.control5
-rw-r--r--contrib/dict_xsyn/expected/dict_xsyn.out8
-rw-r--r--contrib/dict_xsyn/sql/dict_xsyn.sql10
-rw-r--r--contrib/dict_xsyn/uninstall_dict_xsyn.sql12
-rw-r--r--contrib/dummy_seclabel/Makefile14
-rw-r--r--contrib/dummy_seclabel/dummy_seclabel.c49
-rw-r--r--contrib/earthdistance/.gitignore4
-rw-r--r--contrib/earthdistance/Makefile9
-rw-r--r--contrib/earthdistance/earthdistance--1.0.sql (renamed from contrib/earthdistance/earthdistance.sql.in)29
-rw-r--r--contrib/earthdistance/earthdistance--unpackaged--1.0.sql13
-rw-r--r--contrib/earthdistance/earthdistance.c2
-rw-r--r--contrib/earthdistance/earthdistance.control6
-rw-r--r--contrib/earthdistance/expected/earthdistance.out9
-rw-r--r--contrib/earthdistance/sql/earthdistance.sql12
-rw-r--r--contrib/earthdistance/uninstall_earthdistance.sql26
-rw-r--r--contrib/file_fdw/.gitignore4
-rw-r--r--contrib/file_fdw/Makefile21
-rw-r--r--contrib/file_fdw/data/agg.bad4
-rw-r--r--contrib/file_fdw/data/agg.csv4
-rw-r--r--contrib/file_fdw/data/agg.data4
-rw-r--r--contrib/file_fdw/expected/.gitignore1
-rw-r--r--contrib/file_fdw/file_fdw--1.0.sql15
-rw-r--r--contrib/file_fdw/file_fdw.c536
-rw-r--r--contrib/file_fdw/file_fdw.control5
-rw-r--r--contrib/file_fdw/input/file_fdw.source131
-rw-r--r--contrib/file_fdw/output/file_fdw.source225
-rw-r--r--contrib/file_fdw/sql/.gitignore1
-rw-r--r--contrib/fuzzystrmatch/Makefile10
-rw-r--r--contrib/fuzzystrmatch/dmetaphone.c2
-rw-r--r--contrib/fuzzystrmatch/fuzzystrmatch--1.0.sql41
-rw-r--r--contrib/fuzzystrmatch/fuzzystrmatch--unpackaged--1.0.sql20
-rw-r--r--contrib/fuzzystrmatch/fuzzystrmatch.c167
-rw-r--r--contrib/fuzzystrmatch/fuzzystrmatch.control5
-rw-r--r--contrib/fuzzystrmatch/fuzzystrmatch.sql.in36
-rw-r--r--contrib/fuzzystrmatch/levenshtein.c403
-rw-r--r--contrib/fuzzystrmatch/uninstall_fuzzystrmatch.sql20
-rw-r--r--contrib/hstore/.gitignore4
-rw-r--r--contrib/hstore/Makefile20
-rw-r--r--contrib/hstore/crc32.c2
-rw-r--r--contrib/hstore/crc32.h2
-rw-r--r--contrib/hstore/expected/hstore.out22
-rw-r--r--contrib/hstore/hstore--1.0.sql (renamed from contrib/hstore/hstore.sql.in)109
-rw-r--r--contrib/hstore/hstore--unpackaged--1.0.sql89
-rw-r--r--contrib/hstore/hstore.control5
-rw-r--r--contrib/hstore/hstore.h2
-rw-r--r--contrib/hstore/hstore_compat.c5
-rw-r--r--contrib/hstore/hstore_gin.c115
-rw-r--r--contrib/hstore/hstore_gist.c26
-rw-r--r--contrib/hstore/hstore_io.c10
-rw-r--r--contrib/hstore/hstore_op.c42
-rw-r--r--contrib/hstore/sql/hstore.sql20
-rw-r--r--contrib/hstore/uninstall_hstore.sql86
-rw-r--r--contrib/intagg/Makefile5
-rw-r--r--contrib/intagg/intagg--1.0.sql (renamed from contrib/intagg/int_aggregate.sql)11
-rw-r--r--contrib/intagg/intagg--unpackaged--1.0.sql6
-rw-r--r--contrib/intagg/intagg.control4
-rw-r--r--contrib/intagg/uninstall_int_aggregate.sql12
-rw-r--r--contrib/intarray/.gitignore4
-rw-r--r--contrib/intarray/Makefile10
-rw-r--r--contrib/intarray/_int.h82
-rw-r--r--contrib/intarray/_int_bool.c319
-rw-r--r--contrib/intarray/_int_gin.c123
-rw-r--r--contrib/intarray/_int_gist.c33
-rw-r--r--contrib/intarray/_int_op.c111
-rw-r--r--contrib/intarray/_int_tool.c117
-rw-r--r--contrib/intarray/_intbig_gist.c19
-rwxr-xr-xcontrib/intarray/bench/bench.pl23
-rwxr-xr-xcontrib/intarray/bench/create_test.pl6
-rw-r--r--contrib/intarray/expected/_int.out8
-rw-r--r--contrib/intarray/intarray--1.0.sql (renamed from contrib/intarray/_int.sql.in)101
-rw-r--r--contrib/intarray/intarray--unpackaged--1.0.sql108
-rw-r--r--contrib/intarray/intarray.control5
-rw-r--r--contrib/intarray/sql/_int.sql10
-rw-r--r--contrib/intarray/uninstall__int.sql128
-rw-r--r--contrib/isn/EAN13.h2
-rw-r--r--contrib/isn/ISBN.h376
-rw-r--r--contrib/isn/ISMN.h2
-rw-r--r--contrib/isn/ISSN.h2
-rw-r--r--contrib/isn/Makefile7
-rw-r--r--contrib/isn/UPC.h2
-rw-r--r--contrib/isn/isn--1.0.sql (renamed from contrib/isn/isn.sql.in)495
-rw-r--r--contrib/isn/isn--unpackaged--1.0.sql461
-rw-r--r--contrib/isn/isn.c23
-rw-r--r--contrib/isn/isn.control5
-rw-r--r--contrib/isn/isn.h4
-rw-r--r--contrib/isn/uninstall_isn.sql24
-rw-r--r--contrib/lo/Makefile7
-rw-r--r--contrib/lo/lo--1.0.sql (renamed from contrib/lo/lo.sql.in)9
-rw-r--r--contrib/lo/lo--unpackaged--1.0.sql5
-rw-r--r--contrib/lo/lo.c2
-rw-r--r--contrib/lo/lo.control5
-rw-r--r--contrib/lo/lo_test.sql2
-rw-r--r--contrib/lo/uninstall_lo.sql17
-rw-r--r--contrib/ltree/.gitignore4
-rw-r--r--contrib/ltree/Makefile10
-rw-r--r--contrib/ltree/_ltree_gist.c6
-rw-r--r--contrib/ltree/_ltree_op.c8
-rw-r--r--contrib/ltree/crc32.c2
-rw-r--r--contrib/ltree/crc32.h2
-rw-r--r--contrib/ltree/expected/ltree.out8
-rw-r--r--contrib/ltree/lquery_op.c9
-rw-r--r--contrib/ltree/ltree--1.0.sql (renamed from contrib/ltree/ltree.sql.in)151
-rw-r--r--contrib/ltree/ltree--unpackaged--1.0.sql131
-rw-r--r--contrib/ltree/ltree.control5
-rw-r--r--contrib/ltree/ltree.h2
-rw-r--r--contrib/ltree/ltree_gist.c6
-rw-r--r--contrib/ltree/ltree_io.c2
-rw-r--r--contrib/ltree/ltree_op.c10
-rw-r--r--contrib/ltree/ltreetest.sql2
-rw-r--r--contrib/ltree/ltxtquery_io.c6
-rw-r--r--contrib/ltree/ltxtquery_op.c2
-rw-r--r--contrib/ltree/sql/ltree.sql11
-rw-r--r--contrib/ltree/uninstall_ltree.sql240
-rw-r--r--contrib/oid2name/.gitignore1
-rw-r--r--contrib/oid2name/Makefile4
-rw-r--r--contrib/oid2name/oid2name.c2
-rw-r--r--contrib/pageinspect/Makefile14
-rw-r--r--contrib/pageinspect/btreefuncs.c2
-rw-r--r--contrib/pageinspect/fsmfuncs.c6
-rw-r--r--contrib/pageinspect/heapfuncs.c8
-rw-r--r--contrib/pageinspect/pageinspect--1.0.sql (renamed from contrib/pageinspect/pageinspect.sql.in)25
-rw-r--r--contrib/pageinspect/pageinspect--unpackaged--1.0.sql28
-rw-r--r--contrib/pageinspect/pageinspect.control5
-rw-r--r--contrib/pageinspect/rawpage.c9
-rw-r--r--contrib/pageinspect/uninstall_pageinspect.sql13
-rw-r--r--contrib/passwordcheck/Makefile2
-rw-r--r--contrib/passwordcheck/passwordcheck.c4
-rw-r--r--contrib/pg_archivecleanup/.gitignore1
-rw-r--r--contrib/pg_archivecleanup/Makefile4
-rw-r--r--contrib/pg_archivecleanup/pg_archivecleanup.c34
-rw-r--r--contrib/pg_buffercache/Makefile8
-rw-r--r--contrib/pg_buffercache/pg_buffercache--1.0.sql (renamed from contrib/pg_buffercache/pg_buffercache.sql.in)13
-rw-r--r--contrib/pg_buffercache/pg_buffercache--unpackaged--1.0.sql4
-rw-r--r--contrib/pg_buffercache/pg_buffercache.control5
-rw-r--r--contrib/pg_buffercache/pg_buffercache_pages.c2
-rw-r--r--contrib/pg_buffercache/uninstall_pg_buffercache.sql8
-rw-r--r--contrib/pg_freespacemap/Makefile8
-rw-r--r--contrib/pg_freespacemap/pg_freespacemap--1.0.sql (renamed from contrib/pg_freespacemap/pg_freespacemap.sql.in)10
-rw-r--r--contrib/pg_freespacemap/pg_freespacemap--unpackaged--1.0.sql4
-rw-r--r--contrib/pg_freespacemap/pg_freespacemap.c2
-rw-r--r--contrib/pg_freespacemap/pg_freespacemap.control5
-rw-r--r--contrib/pg_freespacemap/uninstall_pg_freespacemap.sql7
-rw-r--r--contrib/pg_standby/.gitignore1
-rw-r--r--contrib/pg_standby/Makefile4
-rw-r--r--contrib/pg_standby/pg_standby.c34
-rw-r--r--contrib/pg_stat_statements/Makefile7
-rw-r--r--contrib/pg_stat_statements/pg_stat_statements--1.0.sql (renamed from contrib/pg_stat_statements/pg_stat_statements.sql.in)5
-rw-r--r--contrib/pg_stat_statements/pg_stat_statements--unpackaged--1.0.sql5
-rw-r--r--contrib/pg_stat_statements/pg_stat_statements.c38
-rw-r--r--contrib/pg_stat_statements/pg_stat_statements.control5
-rw-r--r--contrib/pg_stat_statements/uninstall_pg_stat_statements.sql8
-rw-r--r--contrib/pg_test_fsync/.gitignore1
-rw-r--r--contrib/pg_test_fsync/Makefile18
-rw-r--r--contrib/pg_test_fsync/pg_test_fsync.c527
-rw-r--r--contrib/pg_trgm/.gitignore4
-rw-r--r--contrib/pg_trgm/Makefile7
-rw-r--r--contrib/pg_trgm/expected/pg_trgm.out121
-rw-r--r--contrib/pg_trgm/pg_trgm--1.0.sql163
-rw-r--r--contrib/pg_trgm/pg_trgm--unpackaged--1.0.sql95
-rw-r--r--contrib/pg_trgm/pg_trgm.control5
-rw-r--r--contrib/pg_trgm/pg_trgm.sql.in132
-rw-r--r--contrib/pg_trgm/sql/pg_trgm.sql38
-rw-r--r--contrib/pg_trgm/trgm.h31
-rw-r--r--contrib/pg_trgm/trgm_gin.c165
-rw-r--r--contrib/pg_trgm/trgm_gist.c225
-rw-r--r--contrib/pg_trgm/trgm_op.c311
-rw-r--r--contrib/pg_trgm/uninstall_pg_trgm.sql42
-rw-r--r--contrib/pg_upgrade/.gitignore1
-rw-r--r--contrib/pg_upgrade/IMPLEMENTATION4
-rw-r--r--contrib/pg_upgrade/Makefile5
-rw-r--r--contrib/pg_upgrade/TESTING27
-rw-r--r--contrib/pg_upgrade/check.c540
-rw-r--r--contrib/pg_upgrade/controldata.c251
-rw-r--r--contrib/pg_upgrade/dump.c35
-rw-r--r--contrib/pg_upgrade/exec.c339
-rw-r--r--contrib/pg_upgrade/file.c145
-rw-r--r--contrib/pg_upgrade/function.c208
-rw-r--r--contrib/pg_upgrade/info.c485
-rw-r--r--contrib/pg_upgrade/option.c231
-rw-r--r--contrib/pg_upgrade/page.c33
-rw-r--r--contrib/pg_upgrade/pg_upgrade.c356
-rw-r--r--contrib/pg_upgrade/pg_upgrade.h249
-rw-r--r--contrib/pg_upgrade/relfilenode.c188
-rw-r--r--contrib/pg_upgrade/server.c349
-rw-r--r--contrib/pg_upgrade/tablespace.c52
-rw-r--r--contrib/pg_upgrade/util.c144
-rw-r--r--contrib/pg_upgrade/version.c40
-rw-r--r--contrib/pg_upgrade/version_old_8_3.c342
-rw-r--r--contrib/pg_upgrade_support/Makefile5
-rw-r--r--contrib/pg_upgrade_support/pg_upgrade_support.c167
-rw-r--r--contrib/pgbench/.gitignore1
-rw-r--r--contrib/pgbench/Makefile4
-rw-r--r--contrib/pgbench/pgbench.c434
-rw-r--r--contrib/pgcrypto/.gitignore4
-rw-r--r--contrib/pgcrypto/Makefile11
-rw-r--r--contrib/pgcrypto/blf.c2
-rw-r--r--contrib/pgcrypto/blf.h2
-rw-r--r--contrib/pgcrypto/crypt-blowfish.c2
-rw-r--r--contrib/pgcrypto/crypt-des.c2
-rw-r--r--contrib/pgcrypto/crypt-gensalt.c2
-rw-r--r--contrib/pgcrypto/crypt-md5.c2
-rw-r--r--contrib/pgcrypto/expected/blowfish.out8
-rw-r--r--contrib/pgcrypto/expected/crypt-blowfish.out2
-rw-r--r--contrib/pgcrypto/expected/init.out8
-rw-r--r--contrib/pgcrypto/expected/rijndael.out8
-rw-r--r--contrib/pgcrypto/fortuna.c2
-rw-r--r--contrib/pgcrypto/fortuna.h2
-rw-r--r--contrib/pgcrypto/imath.c2
-rw-r--r--contrib/pgcrypto/imath.h2
-rw-r--r--contrib/pgcrypto/internal-sha2.c2
-rw-r--r--contrib/pgcrypto/internal.c2
-rw-r--r--contrib/pgcrypto/mbuf.c2
-rw-r--r--contrib/pgcrypto/mbuf.h2
-rw-r--r--contrib/pgcrypto/md5.c2
-rw-r--r--contrib/pgcrypto/md5.h2
-rw-r--r--contrib/pgcrypto/openssl.c2
-rw-r--r--contrib/pgcrypto/pgcrypto--1.0.sql (renamed from contrib/pgcrypto/pgcrypto.sql.in)72
-rw-r--r--contrib/pgcrypto/pgcrypto--unpackaged--1.0.sql35
-rw-r--r--contrib/pgcrypto/pgcrypto.c2
-rw-r--r--contrib/pgcrypto/pgcrypto.control5
-rw-r--r--contrib/pgcrypto/pgcrypto.h2
-rw-r--r--contrib/pgcrypto/pgp-armor.c2
-rw-r--r--contrib/pgcrypto/pgp-cfb.c2
-rw-r--r--contrib/pgcrypto/pgp-compress.c2
-rw-r--r--contrib/pgcrypto/pgp-decrypt.c2
-rw-r--r--contrib/pgcrypto/pgp-encrypt.c2
-rw-r--r--contrib/pgcrypto/pgp-info.c2
-rw-r--r--contrib/pgcrypto/pgp-mpi-internal.c2
-rw-r--r--contrib/pgcrypto/pgp-mpi-openssl.c2
-rw-r--r--contrib/pgcrypto/pgp-mpi.c2
-rw-r--r--contrib/pgcrypto/pgp-pgsql.c2
-rw-r--r--contrib/pgcrypto/pgp-pubdec.c2
-rw-r--r--contrib/pgcrypto/pgp-pubenc.c6
-rw-r--r--contrib/pgcrypto/pgp-pubkey.c2
-rw-r--r--contrib/pgcrypto/pgp-s2k.c14
-rw-r--r--contrib/pgcrypto/pgp.c2
-rw-r--r--contrib/pgcrypto/pgp.h2
-rw-r--r--contrib/pgcrypto/px-crypt.c2
-rw-r--r--contrib/pgcrypto/px-crypt.h2
-rw-r--r--contrib/pgcrypto/px-hmac.c4
-rw-r--r--contrib/pgcrypto/px.c8
-rw-r--r--contrib/pgcrypto/px.h2
-rw-r--r--contrib/pgcrypto/random.c2
-rw-r--r--contrib/pgcrypto/rijndael.c2
-rw-r--r--contrib/pgcrypto/rijndael.h2
-rw-r--r--contrib/pgcrypto/rijndael.tbl3
-rw-r--r--contrib/pgcrypto/sha1.c2
-rw-r--r--contrib/pgcrypto/sha1.h2
-rw-r--r--contrib/pgcrypto/sha2.c2
-rw-r--r--contrib/pgcrypto/sha2.h2
-rw-r--r--contrib/pgcrypto/sql/3des.sql1
-rw-r--r--contrib/pgcrypto/sql/blowfish.sql9
-rw-r--r--contrib/pgcrypto/sql/cast5.sql1
-rw-r--r--contrib/pgcrypto/sql/crypt-blowfish.sql3
-rw-r--r--contrib/pgcrypto/sql/crypt-des.sql1
-rw-r--r--contrib/pgcrypto/sql/crypt-md5.sql1
-rw-r--r--contrib/pgcrypto/sql/crypt-xdes.sql1
-rw-r--r--contrib/pgcrypto/sql/des.sql1
-rw-r--r--contrib/pgcrypto/sql/hmac-md5.sql2
-rw-r--r--contrib/pgcrypto/sql/hmac-sha1.sql2
-rw-r--r--contrib/pgcrypto/sql/init.sql11
-rw-r--r--contrib/pgcrypto/sql/md5.sql1
-rw-r--r--contrib/pgcrypto/sql/pgp-compression.sql1
-rw-r--r--contrib/pgcrypto/sql/pgp-encrypt-DISABLED.sql2
-rw-r--r--contrib/pgcrypto/sql/pgp-encrypt.sql1
-rw-r--r--contrib/pgcrypto/sql/pgp-info.sql1
-rw-r--r--contrib/pgcrypto/sql/pgp-pubkey-DISABLED.sql2
-rw-r--r--contrib/pgcrypto/sql/pgp-pubkey-decrypt.sql1
-rw-r--r--contrib/pgcrypto/sql/pgp-pubkey-encrypt.sql2
-rw-r--r--contrib/pgcrypto/sql/pgp-zlib-DISABLED.sql2
-rw-r--r--contrib/pgcrypto/sql/rijndael.sql9
-rw-r--r--contrib/pgcrypto/sql/sha1.sql1
-rw-r--r--contrib/pgcrypto/sql/sha2.sql2
-rw-r--r--contrib/pgcrypto/uninstall_pgcrypto.sql46
-rw-r--r--contrib/pgrowlocks/Makefile13
-rw-r--r--contrib/pgrowlocks/pgrowlocks--1.0.sql (renamed from contrib/pgrowlocks/pgrowlocks.sql.in)7
-rw-r--r--contrib/pgrowlocks/pgrowlocks--unpackaged--1.0.sql3
-rw-r--r--contrib/pgrowlocks/pgrowlocks.c2
-rw-r--r--contrib/pgrowlocks/pgrowlocks.control5
-rw-r--r--contrib/pgrowlocks/uninstall_pgrowlocks.sql6
-rw-r--r--contrib/pgstattuple/Makefile13
-rw-r--r--contrib/pgstattuple/pgstatindex.c2
-rw-r--r--contrib/pgstattuple/pgstattuple--1.0.sql (renamed from contrib/pgstattuple/pgstattuple.sql.in)13
-rw-r--r--contrib/pgstattuple/pgstattuple--unpackaged--1.0.sql6
-rw-r--r--contrib/pgstattuple/pgstattuple.c5
-rw-r--r--contrib/pgstattuple/pgstattuple.control5
-rw-r--r--contrib/pgstattuple/uninstall_pgstattuple.sql9
-rw-r--r--contrib/seg/.cvsignore2
-rw-r--r--contrib/seg/.gitignore6
-rw-r--r--contrib/seg/Makefile8
-rw-r--r--contrib/seg/expected/seg.out12
-rw-r--r--contrib/seg/expected/seg_1.out12
-rw-r--r--contrib/seg/seg--1.0.sql (renamed from contrib/seg/seg.sql.in)74
-rw-r--r--contrib/seg/seg--unpackaged--1.0.sql51
-rw-r--r--contrib/seg/seg.c199
-rw-r--r--contrib/seg/seg.control5
-rw-r--r--contrib/seg/segdata.h2
-rw-r--r--contrib/seg/segparse.y6
-rw-r--r--contrib/seg/segscan.l6
-rwxr-xr-xcontrib/seg/sort-segments.pl2
-rw-r--r--contrib/seg/sql/seg.sql14
-rw-r--r--contrib/seg/uninstall_seg.sql94
-rw-r--r--contrib/sepgsql/.gitignore7
-rw-r--r--contrib/sepgsql/Makefile22
-rw-r--r--contrib/sepgsql/dml.c367
-rw-r--r--contrib/sepgsql/expected/dml.out183
-rw-r--r--contrib/sepgsql/expected/label.out117
-rw-r--r--contrib/sepgsql/expected/misc.out5
-rw-r--r--contrib/sepgsql/hooks.c462
-rw-r--r--contrib/sepgsql/label.c528
-rwxr-xr-xcontrib/sepgsql/launcher52
-rw-r--r--contrib/sepgsql/proc.c159
-rw-r--r--contrib/sepgsql/relation.c276
-rw-r--r--contrib/sepgsql/schema.c99
-rw-r--r--contrib/sepgsql/selinux.c939
-rw-r--r--contrib/sepgsql/sepgsql-regtest.te85
-rw-r--r--contrib/sepgsql/sepgsql.h291
-rw-r--r--contrib/sepgsql/sepgsql.sql.in36
-rw-r--r--contrib/sepgsql/sql/dml.sql119
-rw-r--r--contrib/sepgsql/sql/label.sql81
-rw-r--r--contrib/sepgsql/sql/misc.sql5
-rw-r--r--contrib/spi/Makefile12
-rw-r--r--contrib/spi/autoinc--1.0.sql6
-rw-r--r--contrib/spi/autoinc--unpackaged--1.0.sql3
-rw-r--r--contrib/spi/autoinc.c8
-rw-r--r--contrib/spi/autoinc.control5
-rw-r--r--contrib/spi/autoinc.example10
-rw-r--r--contrib/spi/autoinc.sql.in9
-rw-r--r--contrib/spi/insert_username--1.0.sql6
-rw-r--r--contrib/spi/insert_username--unpackaged--1.0.sql3
-rw-r--r--contrib/spi/insert_username.c8
-rw-r--r--contrib/spi/insert_username.control5
-rw-r--r--contrib/spi/insert_username.example3
-rw-r--r--contrib/spi/insert_username.sql.in9
-rw-r--r--contrib/spi/moddatetime--1.0.sql6
-rw-r--r--contrib/spi/moddatetime--unpackaged--1.0.sql3
-rw-r--r--contrib/spi/moddatetime.c46
-rw-r--r--contrib/spi/moddatetime.control5
-rw-r--r--contrib/spi/moddatetime.example2
-rw-r--r--contrib/spi/moddatetime.sql.in9
-rw-r--r--contrib/spi/refint--1.0.sql11
-rw-r--r--contrib/spi/refint--unpackaged--1.0.sql4
-rw-r--r--contrib/spi/refint.c10
-rw-r--r--contrib/spi/refint.control5
-rw-r--r--contrib/spi/refint.example10
-rw-r--r--contrib/spi/refint.sql.in14
-rw-r--r--contrib/spi/timetravel--1.0.sql16
-rw-r--r--contrib/spi/timetravel--unpackaged--1.0.sql5
-rw-r--r--contrib/spi/timetravel.c10
-rw-r--r--contrib/spi/timetravel.control5
-rw-r--r--contrib/spi/timetravel.example18
-rw-r--r--contrib/spi/timetravel.sql.in19
-rw-r--r--contrib/sslinfo/Makefile7
-rw-r--r--contrib/sslinfo/sslinfo--1.0.sql37
-rw-r--r--contrib/sslinfo/sslinfo--unpackaged--1.0.sql19
-rw-r--r--contrib/sslinfo/sslinfo.c30
-rw-r--r--contrib/sslinfo/sslinfo.control5
-rw-r--r--contrib/sslinfo/sslinfo.sql.in32
-rw-r--r--contrib/sslinfo/uninstall_sslinfo.sql12
-rw-r--r--contrib/start-scripts/freebsd2
-rw-r--r--contrib/start-scripts/linux2
-rwxr-xr-xcontrib/start-scripts/osx/PostgreSQL4
-rw-r--r--contrib/tablefunc/.gitignore4
-rw-r--r--contrib/tablefunc/Makefile8
-rw-r--r--contrib/tablefunc/expected/tablefunc.out8
-rw-r--r--contrib/tablefunc/sql/tablefunc.sql11
-rw-r--r--contrib/tablefunc/tablefunc--1.0.sql (renamed from contrib/tablefunc/tablefunc.sql.in)27
-rw-r--r--contrib/tablefunc/tablefunc--unpackaged--1.0.sql16
-rw-r--r--contrib/tablefunc/tablefunc.c24
-rw-r--r--contrib/tablefunc/tablefunc.control5
-rw-r--r--contrib/tablefunc/tablefunc.h4
-rw-r--r--contrib/tablefunc/uninstall_tablefunc.sql32
-rw-r--r--contrib/test_parser/.gitignore4
-rw-r--r--contrib/test_parser/Makefile8
-rw-r--r--contrib/test_parser/expected/test_parser.out10
-rw-r--r--contrib/test_parser/sql/test_parser.sql12
-rw-r--r--contrib/test_parser/test_parser--1.0.sql (renamed from contrib/test_parser/test_parser.sql.in)13
-rw-r--r--contrib/test_parser/test_parser--unpackaged--1.0.sql7
-rw-r--r--contrib/test_parser/test_parser.c4
-rw-r--r--contrib/test_parser/test_parser.control5
-rw-r--r--contrib/test_parser/uninstall_test_parser.sql14
-rw-r--r--contrib/tsearch2/.gitignore4
-rw-r--r--contrib/tsearch2/Makefile8
-rw-r--r--contrib/tsearch2/expected/tsearch2.out16
-rw-r--r--contrib/tsearch2/expected/tsearch2_1.out16
-rw-r--r--contrib/tsearch2/sql/tsearch2.sql21
-rw-r--r--contrib/tsearch2/tsearch2--1.0.sql (renamed from contrib/tsearch2/tsearch2.sql.in)59
-rw-r--r--contrib/tsearch2/tsearch2--unpackaged--1.0.sql141
-rw-r--r--contrib/tsearch2/tsearch2.c10
-rw-r--r--contrib/tsearch2/tsearch2.control7
-rw-r--r--contrib/tsearch2/uninstall_tsearch2.sql96
-rw-r--r--contrib/unaccent/.gitignore4
-rw-r--r--contrib/unaccent/Makefile12
-rw-r--r--contrib/unaccent/expected/unaccent.out4
-rw-r--r--contrib/unaccent/sql/unaccent.sql6
-rw-r--r--contrib/unaccent/unaccent--1.0.sql31
-rw-r--r--contrib/unaccent/unaccent--unpackaged--1.0.sql13
-rw-r--r--contrib/unaccent/unaccent.c6
-rw-r--r--contrib/unaccent/unaccent.control5
-rw-r--r--contrib/unaccent/unaccent.sql.in34
-rw-r--r--contrib/unaccent/uninstall_unaccent.sql11
-rw-r--r--contrib/uuid-ossp/Makefile7
-rw-r--r--contrib/uuid-ossp/uninstall_uuid-ossp.sql16
-rw-r--r--contrib/uuid-ossp/uuid-ossp--1.0.sql (renamed from contrib/uuid-ossp/uuid-ossp.sql.in)25
-rw-r--r--contrib/uuid-ossp/uuid-ossp--unpackaged--1.0.sql12
-rw-r--r--contrib/uuid-ossp/uuid-ossp.c4
-rw-r--r--contrib/uuid-ossp/uuid-ossp.control5
-rw-r--r--contrib/vacuumlo/.gitignore1
-rw-r--r--contrib/vacuumlo/Makefile4
-rw-r--r--contrib/vacuumlo/vacuumlo.c4
-rw-r--r--contrib/xml2/.gitignore4
-rw-r--r--contrib/xml2/Makefile10
-rw-r--r--contrib/xml2/expected/xml2.out78
-rw-r--r--contrib/xml2/expected/xml2_1.out60
-rw-r--r--contrib/xml2/pgxml.sql.in77
-rw-r--r--contrib/xml2/sql/xml2.sql62
-rw-r--r--contrib/xml2/uninstall_pgxml.sql33
-rw-r--r--contrib/xml2/xml2--1.0.sql70
-rw-r--r--contrib/xml2/xml2--unpackaged--1.0.sql26
-rw-r--r--contrib/xml2/xml2.control6
-rw-r--r--contrib/xml2/xpath.c173
-rw-r--r--contrib/xml2/xslt_proc.c52
-rw-r--r--doc/KNOWN_BUGS1
-rw-r--r--doc/MISSING_FEATURES1
-rw-r--r--doc/Makefile4
-rw-r--r--doc/bug.template4
-rw-r--r--doc/src/Makefile4
-rw-r--r--doc/src/sgml/.cvsignore6
-rw-r--r--doc/src/sgml/.gitignore33
-rw-r--r--doc/src/sgml/Makefile22
-rw-r--r--doc/src/sgml/README.links12
-rw-r--r--doc/src/sgml/acronyms.sgml28
-rw-r--r--doc/src/sgml/adminpack.sgml6
-rw-r--r--doc/src/sgml/advanced.sgml14
-rw-r--r--doc/src/sgml/arch-dev.sgml4
-rw-r--r--doc/src/sgml/array.sgml8
-rw-r--r--doc/src/sgml/auth-delay.sgml67
-rw-r--r--doc/src/sgml/auto-explain.sgml61
-rw-r--r--doc/src/sgml/backup.sgml246
-rw-r--r--doc/src/sgml/biblio.sgml8
-rw-r--r--doc/src/sgml/bki.sgml4
-rw-r--r--doc/src/sgml/btree-gin.sgml16
-rw-r--r--doc/src/sgml/btree-gist.sgml72
-rw-r--r--doc/src/sgml/catalogs.sgml1369
-rw-r--r--doc/src/sgml/charset.sgml316
-rw-r--r--doc/src/sgml/chkpass.sgml8
-rw-r--r--doc/src/sgml/citext.sgml92
-rw-r--r--doc/src/sgml/client-auth.sgml354
-rw-r--r--doc/src/sgml/config.sgml806
-rw-r--r--doc/src/sgml/contacts.sgml4
-rw-r--r--doc/src/sgml/contrib-spi.sgml29
-rw-r--r--doc/src/sgml/contrib.sgml56
-rw-r--r--doc/src/sgml/cube.sgml113
-rw-r--r--doc/src/sgml/cvs.sgml271
-rw-r--r--doc/src/sgml/datatype.sgml294
-rw-r--r--doc/src/sgml/datetime.sgml24
-rw-r--r--doc/src/sgml/dblink.sgml899
-rw-r--r--doc/src/sgml/ddl.sgml126
-rw-r--r--doc/src/sgml/dfunc.sgml10
-rw-r--r--doc/src/sgml/dict-int.sgml8
-rw-r--r--doc/src/sgml/dict-xsyn.sgml12
-rw-r--r--doc/src/sgml/diskusage.sgml9
-rw-r--r--doc/src/sgml/dml.sgml2
-rw-r--r--doc/src/sgml/docguide.sgml57
-rw-r--r--doc/src/sgml/dummy-seclabel.sgml74
-rw-r--r--doc/src/sgml/earthdistance.sgml24
-rw-r--r--doc/src/sgml/ecpg.sgml6772
-rw-r--r--doc/src/sgml/errcodes.sgml1408
-rw-r--r--doc/src/sgml/extend.sgml911
-rw-r--r--doc/src/sgml/external-projects.sgml54
-rw-r--r--doc/src/sgml/fdwhandler.sgml212
-rw-r--r--doc/src/sgml/features.sgml2
-rw-r--r--doc/src/sgml/file-fdw.sgml138
-rw-r--r--doc/src/sgml/filelist.sgml299
-rwxr-xr-xdoc/src/sgml/fixrtf2
-rw-r--r--doc/src/sgml/func.sgml3047
-rw-r--r--doc/src/sgml/fuzzystrmatch.sgml74
-rw-r--r--doc/src/sgml/generate-errcodes-table.pl56
-rw-r--r--doc/src/sgml/generate_history.pl14
-rw-r--r--doc/src/sgml/geqo.sgml2
-rw-r--r--doc/src/sgml/gin.sgml301
-rw-r--r--doc/src/sgml/gist.sgml132
-rw-r--r--doc/src/sgml/high-availability.sgml511
-rw-r--r--doc/src/sgml/history.sgml6
-rw-r--r--doc/src/sgml/hstore.sgml110
-rw-r--r--doc/src/sgml/indexam.sgml202
-rw-r--r--doc/src/sgml/indices.sgml73
-rw-r--r--doc/src/sgml/info.sgml4
-rw-r--r--doc/src/sgml/information_schema.sgml523
-rw-r--r--doc/src/sgml/install-windows.sgml (renamed from doc/src/sgml/install-win32.sgml)185
-rw-r--r--doc/src/sgml/installation.sgml427
-rw-r--r--doc/src/sgml/intagg.sgml46
-rw-r--r--doc/src/sgml/intarray.sgml57
-rw-r--r--doc/src/sgml/intro.sgml2
-rw-r--r--doc/src/sgml/isn.sgml66
-rw-r--r--doc/src/sgml/jadetex.cfg2
-rw-r--r--doc/src/sgml/keywords.sgml136
-rw-r--r--doc/src/sgml/legal.sgml8
-rw-r--r--doc/src/sgml/libpq.sgml1979
-rw-r--r--doc/src/sgml/lo.sgml16
-rw-r--r--doc/src/sgml/lobj.sgml46
-rw-r--r--doc/src/sgml/ltree.sgml126
-rw-r--r--doc/src/sgml/maintenance.sgml18
-rw-r--r--doc/src/sgml/manage-ag.sgml7
-rw-r--r--doc/src/sgml/mk_feature_tables.pl2
-rw-r--r--doc/src/sgml/monitoring.sgml435
-rw-r--r--doc/src/sgml/mvcc.sgml621
-rw-r--r--doc/src/sgml/nls.sgml12
-rw-r--r--doc/src/sgml/notation.sgml2
-rw-r--r--doc/src/sgml/oid2name.sgml14
-rw-r--r--doc/src/sgml/pageinspect.sgml43
-rw-r--r--doc/src/sgml/passwordcheck.sgml4
-rw-r--r--doc/src/sgml/perform.sgml58
-rw-r--r--doc/src/sgml/pgarchivecleanup.sgml82
-rw-r--r--doc/src/sgml/pgbench.sgml159
-rw-r--r--doc/src/sgml/pgbuffercache.sgml57
-rw-r--r--doc/src/sgml/pgcrypto.sgml346
-rw-r--r--doc/src/sgml/pgfreespacemap.sgml14
-rw-r--r--doc/src/sgml/pgrowlocks.sgml16
-rw-r--r--doc/src/sgml/pgstandby.sgml52
-rw-r--r--doc/src/sgml/pgstatstatements.sgml24
-rw-r--r--doc/src/sgml/pgstattuple.sgml23
-rw-r--r--doc/src/sgml/pgtestfsync.sgml74
-rw-r--r--doc/src/sgml/pgtrgm.sgml78
-rw-r--r--doc/src/sgml/pgupgrade.sgml512
-rw-r--r--doc/src/sgml/planstats.sgml6
-rw-r--r--doc/src/sgml/plhandler.sgml11
-rw-r--r--doc/src/sgml/plperl.sgml309
-rw-r--r--doc/src/sgml/plpgsql.sgml489
-rw-r--r--doc/src/sgml/plpython.sgml380
-rw-r--r--doc/src/sgml/pltcl.sgml73
-rw-r--r--doc/src/sgml/postgres.sgml11
-rw-r--r--doc/src/sgml/problems.sgml22
-rw-r--r--doc/src/sgml/protocol.sgml445
-rw-r--r--doc/src/sgml/queries.sgml227
-rw-r--r--doc/src/sgml/query.sgml12
-rw-r--r--doc/src/sgml/recovery-config.sgml109
-rw-r--r--doc/src/sgml/ref/abort.sgml4
-rw-r--r--doc/src/sgml/ref/allfiles.sgml336
-rw-r--r--doc/src/sgml/ref/alter_aggregate.sgml10
-rw-r--r--doc/src/sgml/ref/alter_collation.sgml128
-rw-r--r--doc/src/sgml/ref/alter_conversion.sgml20
-rw-r--r--doc/src/sgml/ref/alter_database.sgml10
-rw-r--r--doc/src/sgml/ref/alter_default_privileges.sgml14
-rw-r--r--doc/src/sgml/ref/alter_domain.sgml36
-rw-r--r--doc/src/sgml/ref/alter_extension.sgml291
-rw-r--r--doc/src/sgml/ref/alter_foreign_data_wrapper.sgml41
-rw-r--r--doc/src/sgml/ref/alter_foreign_table.sgml315
-rw-r--r--doc/src/sgml/ref/alter_function.sgml12
-rw-r--r--doc/src/sgml/ref/alter_group.sgml6
-rw-r--r--doc/src/sgml/ref/alter_index.sgml10
-rw-r--r--doc/src/sgml/ref/alter_language.sgml4
-rw-r--r--[-rwxr-xr-x]doc/src/sgml/ref/alter_large_object.sgml4
-rw-r--r--doc/src/sgml/ref/alter_opclass.sgml20
-rw-r--r--doc/src/sgml/ref/alter_operator.sgml22
-rw-r--r--doc/src/sgml/ref/alter_opfamily.sgml48
-rw-r--r--doc/src/sgml/ref/alter_role.sgml9
-rw-r--r--doc/src/sgml/ref/alter_schema.sgml4
-rw-r--r--doc/src/sgml/ref/alter_sequence.sgml8
-rw-r--r--doc/src/sgml/ref/alter_server.sgml2
-rw-r--r--doc/src/sgml/ref/alter_table.sgml187
-rw-r--r--doc/src/sgml/ref/alter_tablespace.sgml12
-rw-r--r--doc/src/sgml/ref/alter_trigger.sgml2
-rw-r--r--doc/src/sgml/ref/alter_tsconfig.sgml22
-rw-r--r--doc/src/sgml/ref/alter_tsdictionary.sgml26
-rw-r--r--doc/src/sgml/ref/alter_tsparser.sgml20
-rw-r--r--doc/src/sgml/ref/alter_tstemplate.sgml20
-rw-r--r--doc/src/sgml/ref/alter_type.sgml237
-rw-r--r--doc/src/sgml/ref/alter_user.sgml9
-rw-r--r--doc/src/sgml/ref/alter_user_mapping.sgml2
-rw-r--r--doc/src/sgml/ref/alter_view.sgml10
-rw-r--r--doc/src/sgml/ref/analyze.sgml2
-rw-r--r--doc/src/sgml/ref/begin.sgml25
-rw-r--r--doc/src/sgml/ref/checkpoint.sgml2
-rw-r--r--doc/src/sgml/ref/close.sgml8
-rw-r--r--doc/src/sgml/ref/cluster.sgml69
-rw-r--r--doc/src/sgml/ref/clusterdb.sgml26
-rw-r--r--doc/src/sgml/ref/comment.sgml79
-rw-r--r--doc/src/sgml/ref/commit.sgml8
-rw-r--r--doc/src/sgml/ref/commit_prepared.sgml6
-rw-r--r--doc/src/sgml/ref/copy.sgml22
-rw-r--r--doc/src/sgml/ref/create_aggregate.sgml16
-rw-r--r--doc/src/sgml/ref/create_cast.sgml29
-rw-r--r--doc/src/sgml/ref/create_collation.sgml177
-rw-r--r--doc/src/sgml/ref/create_constraint.sgml171
-rw-r--r--doc/src/sgml/ref/create_conversion.sgml6
-rw-r--r--doc/src/sgml/ref/create_database.sgml2
-rw-r--r--doc/src/sgml/ref/create_domain.sgml15
-rw-r--r--doc/src/sgml/ref/create_extension.sgml205
-rw-r--r--doc/src/sgml/ref/create_foreign_data_wrapper.sgml65
-rw-r--r--doc/src/sgml/ref/create_foreign_table.sgml197
-rw-r--r--doc/src/sgml/ref/create_function.sgml4
-rw-r--r--doc/src/sgml/ref/create_group.sgml14
-rw-r--r--doc/src/sgml/ref/create_index.sgml28
-rw-r--r--doc/src/sgml/ref/create_language.sgml17
-rw-r--r--doc/src/sgml/ref/create_opclass.sgml38
-rw-r--r--doc/src/sgml/ref/create_operator.sgml12
-rw-r--r--doc/src/sgml/ref/create_opfamily.sgml6
-rw-r--r--doc/src/sgml/ref/create_role.sgml33
-rw-r--r--doc/src/sgml/ref/create_rule.sgml12
-rw-r--r--doc/src/sgml/ref/create_schema.sgml2
-rw-r--r--doc/src/sgml/ref/create_sequence.sgml6
-rw-r--r--doc/src/sgml/ref/create_server.sgml2
-rw-r--r--doc/src/sgml/ref/create_table.sgml89
-rw-r--r--doc/src/sgml/ref/create_table_as.sgml18
-rw-r--r--doc/src/sgml/ref/create_tablespace.sgml4
-rw-r--r--doc/src/sgml/ref/create_trigger.sgml201
-rw-r--r--doc/src/sgml/ref/create_tsconfig.sgml8
-rw-r--r--doc/src/sgml/ref/create_tsdictionary.sgml10
-rw-r--r--doc/src/sgml/ref/create_tsparser.sgml6
-rw-r--r--doc/src/sgml/ref/create_tstemplate.sgml6
-rw-r--r--doc/src/sgml/ref/create_type.sgml52
-rw-r--r--doc/src/sgml/ref/create_user.sgml13
-rw-r--r--doc/src/sgml/ref/create_user_mapping.sgml4
-rw-r--r--doc/src/sgml/ref/create_view.sgml18
-rw-r--r--doc/src/sgml/ref/createdb.sgml52
-rw-r--r--doc/src/sgml/ref/createlang.sgml56
-rw-r--r--doc/src/sgml/ref/createuser.sgml27
-rw-r--r--doc/src/sgml/ref/deallocate.sgml2
-rw-r--r--doc/src/sgml/ref/declare.sgml2
-rw-r--r--doc/src/sgml/ref/delete.sgml18
-rw-r--r--doc/src/sgml/ref/discard.sgml2
-rw-r--r--doc/src/sgml/ref/do.sgml2
-rw-r--r--doc/src/sgml/ref/drop_aggregate.sgml2
-rw-r--r--doc/src/sgml/ref/drop_cast.sgml8
-rw-r--r--doc/src/sgml/ref/drop_collation.sgml110
-rw-r--r--doc/src/sgml/ref/drop_conversion.sgml6
-rw-r--r--doc/src/sgml/ref/drop_database.sgml8
-rw-r--r--doc/src/sgml/ref/drop_domain.sgml8
-rw-r--r--doc/src/sgml/ref/drop_extension.sgml121
-rw-r--r--doc/src/sgml/ref/drop_foreign_data_wrapper.sgml2
-rw-r--r--doc/src/sgml/ref/drop_foreign_table.sgml112
-rw-r--r--doc/src/sgml/ref/drop_function.sgml8
-rw-r--r--doc/src/sgml/ref/drop_group.sgml2
-rw-r--r--doc/src/sgml/ref/drop_index.sgml4
-rw-r--r--doc/src/sgml/ref/drop_language.sgml19
-rw-r--r--doc/src/sgml/ref/drop_opclass.sgml12
-rw-r--r--doc/src/sgml/ref/drop_operator.sgml10
-rw-r--r--doc/src/sgml/ref/drop_opfamily.sgml8
-rw-r--r--doc/src/sgml/ref/drop_owned.sgml2
-rw-r--r--doc/src/sgml/ref/drop_role.sgml8
-rw-r--r--doc/src/sgml/ref/drop_rule.sgml6
-rw-r--r--doc/src/sgml/ref/drop_schema.sgml14
-rw-r--r--doc/src/sgml/ref/drop_sequence.sgml14
-rw-r--r--doc/src/sgml/ref/drop_server.sgml2
-rw-r--r--doc/src/sgml/ref/drop_table.sgml16
-rw-r--r--doc/src/sgml/ref/drop_tablespace.sgml4
-rw-r--r--doc/src/sgml/ref/drop_trigger.sgml12
-rw-r--r--doc/src/sgml/ref/drop_tsconfig.sgml8
-rw-r--r--doc/src/sgml/ref/drop_tsdictionary.sgml8
-rw-r--r--doc/src/sgml/ref/drop_tsparser.sgml8
-rw-r--r--doc/src/sgml/ref/drop_tstemplate.sgml8
-rw-r--r--doc/src/sgml/ref/drop_type.sgml12
-rw-r--r--doc/src/sgml/ref/drop_user.sgml2
-rw-r--r--doc/src/sgml/ref/drop_user_mapping.sgml2
-rw-r--r--doc/src/sgml/ref/drop_view.sgml14
-rw-r--r--doc/src/sgml/ref/dropdb.sgml16
-rw-r--r--doc/src/sgml/ref/droplang.sgml58
-rw-r--r--doc/src/sgml/ref/dropuser.sgml20
-rw-r--r--doc/src/sgml/ref/ecpg-ref.sgml39
-rw-r--r--doc/src/sgml/ref/end.sgml8
-rw-r--r--doc/src/sgml/ref/execute.sgml2
-rw-r--r--doc/src/sgml/ref/explain.sgml57
-rw-r--r--doc/src/sgml/ref/fetch.sgml5
-rw-r--r--doc/src/sgml/ref/grant.sgml68
-rw-r--r--doc/src/sgml/ref/initdb.sgml32
-rw-r--r--doc/src/sgml/ref/insert.sgml41
-rw-r--r--doc/src/sgml/ref/listen.sgml2
-rw-r--r--doc/src/sgml/ref/load.sgml2
-rw-r--r--doc/src/sgml/ref/lock.sgml18
-rw-r--r--doc/src/sgml/ref/move.sgml22
-rw-r--r--doc/src/sgml/ref/notify.sgml2
-rw-r--r--doc/src/sgml/ref/pg_basebackup.sgml437
-rw-r--r--doc/src/sgml/ref/pg_config-ref.sgml4
-rw-r--r--doc/src/sgml/ref/pg_controldata.sgml7
-rw-r--r--doc/src/sgml/ref/pg_ctl-ref.sgml250
-rw-r--r--doc/src/sgml/ref/pg_dump.sgml185
-rw-r--r--doc/src/sgml/ref/pg_dumpall.sgml125
-rw-r--r--doc/src/sgml/ref/pg_resetxlog.sgml6
-rw-r--r--doc/src/sgml/ref/pg_restore.sgml103
-rw-r--r--doc/src/sgml/ref/postgres-ref.sgml31
-rw-r--r--doc/src/sgml/ref/postmaster.sgml2
-rw-r--r--doc/src/sgml/ref/prepare.sgml4
-rw-r--r--doc/src/sgml/ref/prepare_transaction.sgml4
-rw-r--r--doc/src/sgml/ref/psql-ref.sgml646
-rw-r--r--doc/src/sgml/ref/reassign_owned.sgml2
-rw-r--r--doc/src/sgml/ref/reindex.sgml2
-rw-r--r--doc/src/sgml/ref/reindexdb.sgml32
-rw-r--r--doc/src/sgml/ref/release_savepoint.sgml6
-rw-r--r--doc/src/sgml/ref/reset.sgml2
-rw-r--r--doc/src/sgml/ref/revoke.sgml14
-rw-r--r--doc/src/sgml/ref/rollback.sgml2
-rw-r--r--doc/src/sgml/ref/rollback_prepared.sgml6
-rw-r--r--doc/src/sgml/ref/rollback_to.sgml2
-rw-r--r--doc/src/sgml/ref/savepoint.sgml8
-rw-r--r--doc/src/sgml/ref/security_label.sgml206
-rw-r--r--doc/src/sgml/ref/select.sgml202
-rw-r--r--doc/src/sgml/ref/select_into.sgml16
-rw-r--r--doc/src/sgml/ref/set.sgml6
-rw-r--r--doc/src/sgml/ref/set_constraints.sgml2
-rw-r--r--doc/src/sgml/ref/set_role.sgml2
-rw-r--r--doc/src/sgml/ref/set_session_auth.sgml2
-rw-r--r--doc/src/sgml/ref/set_transaction.sgml73
-rw-r--r--doc/src/sgml/ref/show.sgml2
-rw-r--r--doc/src/sgml/ref/start_transaction.sgml13
-rw-r--r--doc/src/sgml/ref/truncate.sgml65
-rw-r--r--doc/src/sgml/ref/unlisten.sgml2
-rw-r--r--doc/src/sgml/ref/update.sgml18
-rw-r--r--doc/src/sgml/ref/vacuum.sgml11
-rw-r--r--doc/src/sgml/ref/vacuumdb.sgml16
-rw-r--r--doc/src/sgml/ref/values.sgml4
-rw-r--r--doc/src/sgml/reference.ced1597
-rw-r--r--doc/src/sgml/reference.sgml14
-rw-r--r--doc/src/sgml/regress.sgml125
-rw-r--r--doc/src/sgml/release-7.4.sgml204
-rw-r--r--doc/src/sgml/release-8.0.sgml260
-rw-r--r--doc/src/sgml/release-8.1.sgml507
-rw-r--r--doc/src/sgml/release-8.2.sgml838
-rw-r--r--doc/src/sgml/release-8.3.sgml976
-rw-r--r--doc/src/sgml/release-8.4.sgml1231
-rw-r--r--doc/src/sgml/release-9.0.sgml2919
-rw-r--r--doc/src/sgml/release-9.1.sgml2811
-rw-r--r--doc/src/sgml/release-alpha.sgml1486
-rw-r--r--doc/src/sgml/release-old.sgml242
-rw-r--r--doc/src/sgml/release.sgml16
-rw-r--r--doc/src/sgml/rowtypes.sgml6
-rw-r--r--doc/src/sgml/rules.sgml212
-rw-r--r--doc/src/sgml/runtime.sgml447
-rw-r--r--doc/src/sgml/seg.sgml197
-rw-r--r--doc/src/sgml/sepgsql.sgml552
-rw-r--r--doc/src/sgml/sourcerepo.sgml97
-rw-r--r--doc/src/sgml/sources.sgml39
-rw-r--r--doc/src/sgml/spi.sgml25
-rw-r--r--doc/src/sgml/sql.sgml362
-rw-r--r--doc/src/sgml/sslinfo.sgml32
-rw-r--r--doc/src/sgml/standalone-install.sgml8
-rw-r--r--doc/src/sgml/start.sgml13
-rw-r--r--doc/src/sgml/storage.sgml90
-rw-r--r--doc/src/sgml/stylesheet-man.xsl44
-rw-r--r--doc/src/sgml/stylesheet.css6
-rw-r--r--doc/src/sgml/stylesheet.dsl113
-rw-r--r--doc/src/sgml/syntax.sgml241
-rw-r--r--doc/src/sgml/tablefunc.sgml250
-rw-r--r--doc/src/sgml/test-parser.sgml8
-rw-r--r--doc/src/sgml/textsearch.sgml535
-rw-r--r--doc/src/sgml/trigger.sgml153
-rw-r--r--doc/src/sgml/tsearch2.sgml28
-rw-r--r--doc/src/sgml/typeconv.sgml4
-rw-r--r--doc/src/sgml/unaccent.sgml113
-rw-r--r--doc/src/sgml/user-manag.sgml126
-rw-r--r--doc/src/sgml/uuid-ossp.sgml38
-rw-r--r--doc/src/sgml/vacuumlo.sgml14
-rw-r--r--doc/src/sgml/wal.sgml173
-rw-r--r--doc/src/sgml/xaggr.sgml24
-rw-r--r--doc/src/sgml/xfunc.sgml496
-rw-r--r--doc/src/sgml/xindex.sgml126
-rw-r--r--doc/src/sgml/xml2.sgml274
-rw-r--r--doc/src/sgml/xoper.sgml10
-rw-r--r--doc/src/sgml/xplang.sgml23
-rw-r--r--doc/src/sgml/xtypes.sgml19
-rw-r--r--src/.gitignore3
-rw-r--r--src/Makefile64
-rw-r--r--src/Makefile.global.in100
-rw-r--r--src/Makefile.shlib15
-rw-r--r--src/backend/.gitignore2
-rw-r--r--src/backend/Makefile37
-rw-r--r--src/backend/access/Makefile2
-rw-r--r--src/backend/access/common/Makefile2
-rw-r--r--src/backend/access/common/heaptuple.c6
-rw-r--r--src/backend/access/common/indextuple.c6
-rw-r--r--src/backend/access/common/printtup.c4
-rw-r--r--src/backend/access/common/reloptions.c11
-rw-r--r--src/backend/access/common/scankey.c18
-rw-r--r--src/backend/access/common/tupconvert.c4
-rw-r--r--src/backend/access/common/tupdesc.c50
-rw-r--r--src/backend/access/gin/Makefile2
-rw-r--r--src/backend/access/gin/README204
-rw-r--r--src/backend/access/gin/ginarrayproc.c189
-rw-r--r--src/backend/access/gin/ginbtree.c59
-rw-r--r--src/backend/access/gin/ginbulk.c220
-rw-r--r--src/backend/access/gin/gindatapage.c94
-rw-r--r--src/backend/access/gin/ginentrypage.c363
-rw-r--r--src/backend/access/gin/ginfast.c193
-rw-r--r--src/backend/access/gin/ginget.c1186
-rw-r--r--src/backend/access/gin/gininsert.c356
-rw-r--r--src/backend/access/gin/ginscan.c479
-rw-r--r--src/backend/access/gin/ginutil.c412
-rw-r--r--src/backend/access/gin/ginvacuum.c57
-rw-r--r--src/backend/access/gin/ginxlog.c337
-rw-r--r--src/backend/access/gist/Makefile2
-rw-r--r--src/backend/access/gist/README299
-rw-r--r--src/backend/access/gist/gist.c1063
-rw-r--r--src/backend/access/gist/gistget.c838
-rw-r--r--src/backend/access/gist/gistproc.c113
-rw-r--r--src/backend/access/gist/gistscan.c222
-rw-r--r--src/backend/access/gist/gistsplit.c85
-rw-r--r--src/backend/access/gist/gistutil.c108
-rw-r--r--src/backend/access/gist/gistvacuum.c70
-rw-r--r--src/backend/access/gist/gistxlog.c804
-rw-r--r--src/backend/access/hash/Makefile2
-rw-r--r--src/backend/access/hash/README2
-rw-r--r--src/backend/access/hash/hash.c64
-rw-r--r--src/backend/access/hash/hashfunc.c4
-rw-r--r--src/backend/access/hash/hashinsert.c4
-rw-r--r--src/backend/access/hash/hashovfl.c13
-rw-r--r--src/backend/access/hash/hashpage.c26
-rw-r--r--src/backend/access/hash/hashscan.c4
-rw-r--r--src/backend/access/hash/hashsearch.c4
-rw-r--r--src/backend/access/hash/hashsort.c4
-rw-r--r--src/backend/access/hash/hashutil.c15
-rw-r--r--src/backend/access/heap/Makefile2
-rw-r--r--src/backend/access/heap/README.HOT8
-rw-r--r--src/backend/access/heap/heapam.c172
-rw-r--r--src/backend/access/heap/hio.c6
-rw-r--r--src/backend/access/heap/pruneheap.c7
-rw-r--r--src/backend/access/heap/rewriteheap.c25
-rw-r--r--src/backend/access/heap/syncscan.c4
-rw-r--r--src/backend/access/heap/tuptoaster.c4
-rw-r--r--src/backend/access/heap/visibilitymap.c9
-rw-r--r--src/backend/access/index/Makefile2
-rw-r--r--src/backend/access/index/genam.c37
-rw-r--r--src/backend/access/index/indexam.c80
-rw-r--r--src/backend/access/nbtree/Makefile2
-rw-r--r--src/backend/access/nbtree/README4
-rw-r--r--src/backend/access/nbtree/nbtcompare.c4
-rw-r--r--src/backend/access/nbtree/nbtinsert.c158
-rw-r--r--src/backend/access/nbtree/nbtpage.c76
-rw-r--r--src/backend/access/nbtree/nbtree.c75
-rw-r--r--src/backend/access/nbtree/nbtsearch.c26
-rw-r--r--src/backend/access/nbtree/nbtsort.c30
-rw-r--r--src/backend/access/nbtree/nbtutils.c36
-rw-r--r--src/backend/access/nbtree/nbtxlog.c23
-rw-r--r--src/backend/access/transam/Makefile2
-rw-r--r--src/backend/access/transam/README81
-rw-r--r--src/backend/access/transam/clog.c12
-rw-r--r--src/backend/access/transam/multixact.c12
-rw-r--r--src/backend/access/transam/recovery.conf.sample57
-rw-r--r--src/backend/access/transam/rmgr.c4
-rw-r--r--src/backend/access/transam/slru.c28
-rw-r--r--src/backend/access/transam/subtrans.c6
-rw-r--r--src/backend/access/transam/transam.c4
-rw-r--r--src/backend/access/transam/twophase.c64
-rw-r--r--src/backend/access/transam/twophase_rmgr.c9
-rw-r--r--src/backend/access/transam/varsup.c22
-rw-r--r--src/backend/access/transam/xact.c222
-rw-r--r--src/backend/access/transam/xlog.c1589
-rw-r--r--src/backend/access/transam/xlogutils.c20
-rw-r--r--src/backend/bootstrap/.cvsignore2
-rw-r--r--src/backend/bootstrap/.gitignore2
-rw-r--r--src/backend/bootstrap/Makefile4
-rw-r--r--src/backend/bootstrap/bootparse.y7
-rw-r--r--src/backend/bootstrap/bootscanner.l4
-rw-r--r--src/backend/bootstrap/bootstrap.c59
-rw-r--r--src/backend/catalog/.cvsignore4
-rw-r--r--src/backend/catalog/.gitignore4
-rw-r--r--src/backend/catalog/Catalog.pm4
-rw-r--r--src/backend/catalog/Makefile14
-rw-r--r--src/backend/catalog/README2
-rw-r--r--src/backend/catalog/aclchk.c286
-rw-r--r--src/backend/catalog/catalog.c152
-rw-r--r--src/backend/catalog/dependency.c283
-rw-r--r--src/backend/catalog/genbki.pl7
-rw-r--r--src/backend/catalog/heap.c235
-rw-r--r--src/backend/catalog/index.c808
-rw-r--r--src/backend/catalog/indexing.c4
-rw-r--r--src/backend/catalog/information_schema.sql200
-rw-r--r--src/backend/catalog/namespace.c432
-rw-r--r--src/backend/catalog/objectaddress.c887
-rw-r--r--src/backend/catalog/pg_aggregate.c4
-rw-r--r--src/backend/catalog/pg_collation.c180
-rw-r--r--src/backend/catalog/pg_constraint.c128
-rw-r--r--src/backend/catalog/pg_conversion.c12
-rw-r--r--src/backend/catalog/pg_db_role_setting.c4
-rw-r--r--src/backend/catalog/pg_depend.c164
-rw-r--r--src/backend/catalog/pg_enum.c418
-rw-r--r--src/backend/catalog/pg_inherits.c4
-rw-r--r--src/backend/catalog/pg_largeobject.c4
-rw-r--r--src/backend/catalog/pg_namespace.c19
-rw-r--r--src/backend/catalog/pg_operator.c18
-rw-r--r--src/backend/catalog/pg_proc.c53
-rw-r--r--src/backend/catalog/pg_shdepend.c14
-rw-r--r--src/backend/catalog/pg_type.c47
-rw-r--r--src/backend/catalog/sql_features.txt26
-rw-r--r--src/backend/catalog/storage.c126
-rw-r--r--src/backend/catalog/system_views.sql582
-rw-r--r--src/backend/catalog/toasting.c63
-rw-r--r--src/backend/commands/Makefile9
-rw-r--r--src/backend/commands/aggregatecmds.c10
-rw-r--r--src/backend/commands/alter.c296
-rw-r--r--src/backend/commands/analyze.c200
-rw-r--r--src/backend/commands/async.c22
-rw-r--r--src/backend/commands/cluster.c339
-rw-r--r--src/backend/commands/collationcmds.c443
-rw-r--r--src/backend/commands/comment.c1247
-rw-r--r--src/backend/commands/constraint.c4
-rw-r--r--src/backend/commands/conversioncmds.c88
-rw-r--r--src/backend/commands/copy.c1598
-rw-r--r--src/backend/commands/dbcommands.c163
-rw-r--r--src/backend/commands/define.c4
-rw-r--r--src/backend/commands/discard.c7
-rw-r--r--src/backend/commands/explain.c477
-rw-r--r--src/backend/commands/extension.c2763
-rw-r--r--src/backend/commands/foreigncmds.c330
-rw-r--r--src/backend/commands/functioncmds.c147
-rw-r--r--src/backend/commands/indexcmds.c315
-rw-r--r--src/backend/commands/lockcmds.c4
-rw-r--r--src/backend/commands/opclasscmds.c592
-rw-r--r--src/backend/commands/operatorcmds.c63
-rw-r--r--src/backend/commands/portalcmds.c15
-rw-r--r--src/backend/commands/prepare.c12
-rw-r--r--src/backend/commands/proclang.c61
-rw-r--r--src/backend/commands/schemacmds.c29
-rw-r--r--src/backend/commands/seclabel.c336
-rw-r--r--src/backend/commands/sequence.c302
-rw-r--r--src/backend/commands/tablecmds.c2403
-rw-r--r--src/backend/commands/tablespace.c176
-rw-r--r--src/backend/commands/trigger.c851
-rw-r--r--src/backend/commands/tsearchcmds.c266
-rw-r--r--src/backend/commands/typecmds.c225
-rw-r--r--src/backend/commands/user.c110
-rw-r--r--src/backend/commands/vacuum.c169
-rw-r--r--src/backend/commands/vacuumlazy.c205
-rw-r--r--src/backend/commands/variable.c935
-rw-r--r--src/backend/commands/view.c63
-rw-r--r--src/backend/common.mk8
-rw-r--r--src/backend/executor/Makefile6
-rw-r--r--src/backend/executor/README7
-rw-r--r--src/backend/executor/execAmi.c84
-rw-r--r--src/backend/executor/execCurrent.c27
-rw-r--r--src/backend/executor/execGrouping.c16
-rw-r--r--src/backend/executor/execJunk.c36
-rw-r--r--src/backend/executor/execMain.c554
-rw-r--r--src/backend/executor/execProcnode.c36
-rw-r--r--src/backend/executor/execQual.c367
-rw-r--r--src/backend/executor/execScan.c9
-rw-r--r--src/backend/executor/execTuples.c16
-rw-r--r--src/backend/executor/execUtils.c49
-rw-r--r--src/backend/executor/functions.c559
-rw-r--r--src/backend/executor/instrument.c4
-rw-r--r--src/backend/executor/nodeAgg.c43
-rw-r--r--src/backend/executor/nodeAppend.c14
-rw-r--r--src/backend/executor/nodeBitmapAnd.c13
-rw-r--r--src/backend/executor/nodeBitmapHeapscan.c32
-rw-r--r--src/backend/executor/nodeBitmapIndexscan.c67
-rw-r--r--src/backend/executor/nodeBitmapOr.c13
-rw-r--r--src/backend/executor/nodeCtescan.c8
-rw-r--r--src/backend/executor/nodeForeignscan.c209
-rw-r--r--src/backend/executor/nodeFunctionscan.c17
-rw-r--r--src/backend/executor/nodeGroup.c16
-rw-r--r--src/backend/executor/nodeHash.c159
-rw-r--r--src/backend/executor/nodeHashjoin.c621
-rw-r--r--src/backend/executor/nodeIndexscan.c234
-rw-r--r--src/backend/executor/nodeLimit.c80
-rw-r--r--src/backend/executor/nodeLockRows.c70
-rw-r--r--src/backend/executor/nodeMaterial.c24
-rw-r--r--src/backend/executor/nodeMergeAppend.c398
-rw-r--r--src/backend/executor/nodeMergejoin.c55
-rw-r--r--src/backend/executor/nodeModifyTable.c720
-rw-r--r--src/backend/executor/nodeNestloop.c66
-rw-r--r--src/backend/executor/nodeRecursiveunion.c19
-rw-r--r--src/backend/executor/nodeResult.c14
-rw-r--r--src/backend/executor/nodeSeqscan.c15
-rw-r--r--src/backend/executor/nodeSetOp.c14
-rw-r--r--src/backend/executor/nodeSort.c17
-rw-r--r--src/backend/executor/nodeSubplan.c48
-rw-r--r--src/backend/executor/nodeSubqueryscan.c12
-rw-r--r--src/backend/executor/nodeTidscan.c15
-rw-r--r--src/backend/executor/nodeUnique.c10
-rw-r--r--src/backend/executor/nodeValuesscan.c10
-rw-r--r--src/backend/executor/nodeWindowAgg.c31
-rw-r--r--src/backend/executor/nodeWorktablescan.c8
-rw-r--r--src/backend/executor/spi.c115
-rw-r--r--src/backend/executor/tstoreReceiver.c4
-rw-r--r--src/backend/foreign/Makefile2
-rw-r--r--src/backend/foreign/foreign.c243
-rw-r--r--src/backend/lib/Makefile2
-rw-r--r--src/backend/lib/dllist.c4
-rw-r--r--src/backend/lib/stringinfo.c4
-rw-r--r--src/backend/libpq/Makefile2
-rw-r--r--src/backend/libpq/README.SSL4
-rw-r--r--src/backend/libpq/auth.c525
-rw-r--r--src/backend/libpq/be-fsstubs.c11
-rw-r--r--src/backend/libpq/be-secure.c6
-rw-r--r--src/backend/libpq/crypt.c4
-rw-r--r--src/backend/libpq/hba.c245
-rw-r--r--src/backend/libpq/ip.c12
-rw-r--r--src/backend/libpq/md5.c4
-rw-r--r--src/backend/libpq/pg_hba.conf.sample39
-rw-r--r--src/backend/libpq/pqcomm.c276
-rw-r--r--src/backend/libpq/pqformat.c4
-rw-r--r--src/backend/libpq/pqsignal.c6
-rw-r--r--src/backend/main/Makefile2
-rw-r--r--src/backend/main/main.c62
-rw-r--r--src/backend/nls.mk9
-rw-r--r--src/backend/nodes/Makefile2
-rw-r--r--src/backend/nodes/README6
-rw-r--r--src/backend/nodes/bitmapset.c4
-rw-r--r--src/backend/nodes/copyfuncs.c374
-rw-r--r--src/backend/nodes/equalfuncs.c235
-rw-r--r--src/backend/nodes/list.c4
-rw-r--r--src/backend/nodes/makefuncs.c135
-rw-r--r--src/backend/nodes/nodeFuncs.c582
-rw-r--r--src/backend/nodes/nodes.c4
-rw-r--r--src/backend/nodes/outfuncs.c299
-rw-r--r--src/backend/nodes/params.c6
-rw-r--r--src/backend/nodes/print.c12
-rw-r--r--src/backend/nodes/read.c4
-rw-r--r--src/backend/nodes/readfuncs.c129
-rw-r--r--src/backend/nodes/tidbitmap.c4
-rw-r--r--src/backend/nodes/value.c4
-rw-r--r--src/backend/optimizer/Makefile2
-rw-r--r--src/backend/optimizer/README45
-rw-r--r--src/backend/optimizer/geqo/Makefile2
-rw-r--r--src/backend/optimizer/geqo/geqo_copy.c4
-rw-r--r--src/backend/optimizer/geqo/geqo_cx.c2
-rw-r--r--src/backend/optimizer/geqo/geqo_erx.c2
-rw-r--r--src/backend/optimizer/geqo/geqo_eval.c4
-rw-r--r--src/backend/optimizer/geqo/geqo_main.c16
-rw-r--r--src/backend/optimizer/geqo/geqo_misc.c4
-rw-r--r--src/backend/optimizer/geqo/geqo_mutation.c2
-rw-r--r--src/backend/optimizer/geqo/geqo_ox1.c2
-rw-r--r--src/backend/optimizer/geqo/geqo_ox2.c2
-rw-r--r--src/backend/optimizer/geqo/geqo_pmx.c2
-rw-r--r--src/backend/optimizer/geqo/geqo_pool.c4
-rw-r--r--src/backend/optimizer/geqo/geqo_px.c2
-rw-r--r--src/backend/optimizer/geqo/geqo_random.c4
-rw-r--r--src/backend/optimizer/geqo/geqo_recombination.c2
-rw-r--r--src/backend/optimizer/geqo/geqo_selection.c4
-rw-r--r--src/backend/optimizer/path/Makefile2
-rw-r--r--src/backend/optimizer/path/allpaths.c264
-rw-r--r--src/backend/optimizer/path/clausesel.c4
-rw-r--r--src/backend/optimizer/path/costsize.c448
-rw-r--r--src/backend/optimizer/path/equivclass.c215
-rw-r--r--src/backend/optimizer/path/indxpath.c506
-rw-r--r--src/backend/optimizer/path/joinpath.c142
-rw-r--r--src/backend/optimizer/path/joinrels.c80
-rw-r--r--src/backend/optimizer/path/orindxpath.c4
-rw-r--r--src/backend/optimizer/path/pathkeys.c427
-rw-r--r--src/backend/optimizer/path/tidpath.c4
-rw-r--r--src/backend/optimizer/plan/Makefile2
-rw-r--r--src/backend/optimizer/plan/README44
-rw-r--r--src/backend/optimizer/plan/analyzejoins.c110
-rw-r--r--src/backend/optimizer/plan/createplan.c715
-rw-r--r--src/backend/optimizer/plan/initsplan.c93
-rw-r--r--src/backend/optimizer/plan/planagg.c818
-rw-r--r--src/backend/optimizer/plan/planmain.c92
-rw-r--r--src/backend/optimizer/plan/planner.c277
-rw-r--r--src/backend/optimizer/plan/setrefs.c308
-rw-r--r--src/backend/optimizer/plan/subselect.c323
-rw-r--r--src/backend/optimizer/prep/Makefile2
-rw-r--r--src/backend/optimizer/prep/prepjointree.c187
-rw-r--r--src/backend/optimizer/prep/prepqual.c383
-rw-r--r--src/backend/optimizer/prep/preptlist.c92
-rw-r--r--src/backend/optimizer/prep/prepunion.c170
-rw-r--r--src/backend/optimizer/util/Makefile2
-rw-r--r--src/backend/optimizer/util/clauses.c520
-rw-r--r--src/backend/optimizer/util/joininfo.c38
-rw-r--r--src/backend/optimizer/util/pathnode.c178
-rw-r--r--src/backend/optimizer/util/placeholder.c242
-rw-r--r--src/backend/optimizer/util/plancat.c238
-rw-r--r--src/backend/optimizer/util/predtest.c29
-rw-r--r--src/backend/optimizer/util/relnode.c4
-rw-r--r--src/backend/optimizer/util/restrictinfo.c4
-rw-r--r--src/backend/optimizer/util/tlist.c46
-rw-r--r--src/backend/optimizer/util/var.c7
-rw-r--r--src/backend/parser/.cvsignore3
-rw-r--r--src/backend/parser/.gitignore3
-rw-r--r--src/backend/parser/Makefile8
-rw-r--r--src/backend/parser/README3
-rw-r--r--src/backend/parser/analyze.c492
-rw-r--r--src/backend/parser/gram.y1633
-rw-r--r--src/backend/parser/keywords.c4
-rw-r--r--src/backend/parser/kwlookup.c4
-rw-r--r--src/backend/parser/parse_agg.c74
-rw-r--r--src/backend/parser/parse_clause.c63
-rw-r--r--src/backend/parser/parse_coerce.c176
-rw-r--r--src/backend/parser/parse_collate.c773
-rw-r--r--src/backend/parser/parse_cte.c112
-rw-r--r--src/backend/parser/parse_expr.c298
-rw-r--r--src/backend/parser/parse_func.c51
-rw-r--r--src/backend/parser/parse_node.c64
-rw-r--r--src/backend/parser/parse_oper.c81
-rw-r--r--src/backend/parser/parse_param.c14
-rw-r--r--src/backend/parser/parse_relation.c102
-rw-r--r--src/backend/parser/parse_target.c197
-rw-r--r--src/backend/parser/parse_type.c115
-rw-r--r--src/backend/parser/parse_utilcmd.c542
-rw-r--r--src/backend/parser/parser.c4
-rw-r--r--src/backend/parser/scan.l12
-rw-r--r--src/backend/parser/scansup.c4
-rw-r--r--src/backend/pgxc/plan/planner.c7
-rw-r--r--src/backend/pgxc/pool/poolutils.c7
-rw-r--r--src/backend/pgxc/pool/postgresql_fdw.c4
-rw-r--r--src/backend/po/de.po20152
-rw-r--r--src/backend/po/es.po18769
-rw-r--r--src/backend/po/fr.po17210
-rw-r--r--src/backend/po/ja.po21406
-rw-r--r--src/backend/po/pt_BR.po24388
-rw-r--r--src/backend/po/zh_CN.po17232
-rw-r--r--src/backend/po/zh_TW.po22318
-rw-r--r--src/backend/port/.gitignore5
-rw-r--r--src/backend/port/Makefile14
-rwxr-xr-xsrc/backend/port/aix/mkldexport.sh6
-rw-r--r--src/backend/port/darwin/Makefile2
-rw-r--r--src/backend/port/darwin/README4
-rw-r--r--src/backend/port/darwin/system.c2
-rw-r--r--src/backend/port/dynloader/aix.c2
-rw-r--r--src/backend/port/dynloader/aix.h4
-rw-r--r--src/backend/port/dynloader/bsdi.c4
-rw-r--r--src/backend/port/dynloader/bsdi.h4
-rw-r--r--src/backend/port/dynloader/cygwin.c2
-rw-r--r--src/backend/port/dynloader/cygwin.h4
-rw-r--r--src/backend/port/dynloader/darwin.c4
-rw-r--r--src/backend/port/dynloader/darwin.h2
-rw-r--r--src/backend/port/dynloader/dgux.c2
-rw-r--r--src/backend/port/dynloader/dgux.h4
-rw-r--r--src/backend/port/dynloader/freebsd.c15
-rw-r--r--src/backend/port/dynloader/freebsd.h4
-rw-r--r--src/backend/port/dynloader/hpux.c4
-rw-r--r--src/backend/port/dynloader/hpux.h4
-rw-r--r--src/backend/port/dynloader/irix.c2
-rw-r--r--src/backend/port/dynloader/irix.h4
-rw-r--r--src/backend/port/dynloader/linux.c4
-rw-r--r--src/backend/port/dynloader/linux.h4
-rw-r--r--src/backend/port/dynloader/netbsd.c9
-rw-r--r--src/backend/port/dynloader/netbsd.h4
-rw-r--r--src/backend/port/dynloader/nextstep.c2
-rw-r--r--src/backend/port/dynloader/nextstep.h2
-rw-r--r--src/backend/port/dynloader/openbsd.c16
-rw-r--r--src/backend/port/dynloader/openbsd.h4
-rw-r--r--src/backend/port/dynloader/osf.c2
-rw-r--r--src/backend/port/dynloader/osf.h4
-rw-r--r--src/backend/port/dynloader/sco.c2
-rw-r--r--src/backend/port/dynloader/sco.h4
-rw-r--r--src/backend/port/dynloader/solaris.c2
-rw-r--r--src/backend/port/dynloader/solaris.h4
-rw-r--r--src/backend/port/dynloader/sunos4.c2
-rw-r--r--src/backend/port/dynloader/sunos4.h4
-rw-r--r--src/backend/port/dynloader/svr4.c2
-rw-r--r--src/backend/port/dynloader/svr4.h4
-rw-r--r--src/backend/port/dynloader/ultrix4.c4
-rw-r--r--src/backend/port/dynloader/ultrix4.h4
-rw-r--r--src/backend/port/dynloader/univel.c2
-rw-r--r--src/backend/port/dynloader/univel.h4
-rw-r--r--src/backend/port/dynloader/unixware.c2
-rw-r--r--src/backend/port/dynloader/unixware.h4
-rw-r--r--src/backend/port/dynloader/win32.c2
-rw-r--r--src/backend/port/dynloader/win32.h2
-rw-r--r--src/backend/port/ipc_test.c8
-rw-r--r--src/backend/port/nextstep/Makefile2
-rw-r--r--src/backend/port/nextstep/port.c2
-rw-r--r--src/backend/port/pipe.c (renamed from src/port/pipe.c)12
-rw-r--r--src/backend/port/posix_sema.c4
-rw-r--r--src/backend/port/sysv_sema.c12
-rw-r--r--src/backend/port/sysv_shmem.c50
-rw-r--r--src/backend/port/tas/sunstudio_sparc.s8
-rw-r--r--src/backend/port/tas/sunstudio_x86.s4
-rw-r--r--src/backend/port/unix_latch.c432
-rw-r--r--src/backend/port/win32/Makefile5
-rw-r--r--src/backend/port/win32/crashdump.c170
-rw-r--r--src/backend/port/win32/mingwcompat.c4
-rw-r--r--src/backend/port/win32/security.c10
-rw-r--r--src/backend/port/win32/signal.c4
-rw-r--r--src/backend/port/win32/socket.c31
-rw-r--r--src/backend/port/win32/timer.c6
-rw-r--r--src/backend/port/win32_latch.c216
-rw-r--r--src/backend/port/win32_sema.c4
-rw-r--r--src/backend/port/win32_shmem.c4
-rw-r--r--src/backend/postmaster/Makefile2
-rw-r--r--src/backend/postmaster/autovacuum.c118
-rw-r--r--src/backend/postmaster/bgwriter.c166
-rw-r--r--src/backend/postmaster/fork_process.c4
-rw-r--r--src/backend/postmaster/pgarch.c4
-rw-r--r--src/backend/postmaster/pgstat.c222
-rw-r--r--src/backend/postmaster/postmaster.c239
-rw-r--r--src/backend/postmaster/syslogger.c111
-rw-r--r--src/backend/postmaster/walwriter.c4
-rw-r--r--src/backend/regex/Makefile5
-rw-r--r--src/backend/regex/regc_color.c2
-rw-r--r--src/backend/regex/regc_cvec.c2
-rw-r--r--src/backend/regex/regc_lex.c4
-rw-r--r--src/backend/regex/regc_locale.c167
-rw-r--r--src/backend/regex/regc_nfa.c2
-rw-r--r--src/backend/regex/regc_pg_locale.c658
-rw-r--r--src/backend/regex/regcomp.c20
-rw-r--r--src/backend/regex/rege_dfa.c2
-rw-r--r--src/backend/regex/regerror.c2
-rw-r--r--src/backend/regex/regexec.c7
-rw-r--r--src/backend/regex/regfree.c2
-rw-r--r--src/backend/replication/.gitignore3
-rw-r--r--src/backend/replication/Makefile27
-rw-r--r--src/backend/replication/README33
-rw-r--r--src/backend/replication/basebackup.c866
-rw-r--r--src/backend/replication/libpqwalreceiver/Makefile5
-rw-r--r--src/backend/replication/libpqwalreceiver/libpqwalreceiver.c69
-rw-r--r--src/backend/replication/repl_gram.y169
-rw-r--r--src/backend/replication/repl_scanner.l171
-rw-r--r--src/backend/replication/syncrep.c675
-rw-r--r--src/backend/replication/walreceiver.c191
-rw-r--r--src/backend/replication/walreceiverfuncs.c17
-rw-r--r--src/backend/replication/walsender.c986
-rw-r--r--src/backend/rewrite/Makefile2
-rw-r--r--src/backend/rewrite/rewriteDefine.c47
-rw-r--r--src/backend/rewrite/rewriteHandler.c412
-rw-r--r--src/backend/rewrite/rewriteManip.c12
-rw-r--r--src/backend/rewrite/rewriteRemove.c4
-rw-r--r--src/backend/rewrite/rewriteSupport.c88
-rw-r--r--src/backend/snowball/.gitignore1
-rw-r--r--src/backend/snowball/Makefile4
-rw-r--r--src/backend/snowball/README2
-rw-r--r--src/backend/snowball/dict_snowball.c4
-rw-r--r--src/backend/snowball/snowball.sql.in3
-rw-r--r--src/backend/snowball/snowball_func.sql.in3
-rw-r--r--src/backend/snowball/stopwords/english.stop1
-rw-r--r--src/backend/storage/Makefile2
-rw-r--r--src/backend/storage/buffer/Makefile2
-rw-r--r--src/backend/storage/buffer/README4
-rw-r--r--src/backend/storage/buffer/buf_init.c4
-rw-r--r--src/backend/storage/buffer/buf_table.c4
-rw-r--r--src/backend/storage/buffer/bufmgr.c211
-rw-r--r--src/backend/storage/buffer/freelist.c6
-rw-r--r--src/backend/storage/buffer/localbuf.c58
-rw-r--r--src/backend/storage/file/Makefile4
-rw-r--r--src/backend/storage/file/buffile.c4
-rw-r--r--src/backend/storage/file/copydir.c10
-rw-r--r--src/backend/storage/file/fd.c287
-rw-r--r--src/backend/storage/file/reinit.c400
-rw-r--r--src/backend/storage/freespace/Makefile2
-rw-r--r--src/backend/storage/freespace/README5
-rw-r--r--src/backend/storage/freespace/freespace.c8
-rw-r--r--src/backend/storage/freespace/fsmpage.c4
-rw-r--r--src/backend/storage/freespace/indexfsm.c4
-rw-r--r--src/backend/storage/ipc/Makefile2
-rw-r--r--src/backend/storage/ipc/README4
-rw-r--r--src/backend/storage/ipc/ipc.c8
-rw-r--r--src/backend/storage/ipc/ipci.c11
-rw-r--r--src/backend/storage/ipc/pmsignal.c55
-rw-r--r--src/backend/storage/ipc/procarray.c285
-rw-r--r--src/backend/storage/ipc/procsignal.c9
-rw-r--r--src/backend/storage/ipc/shmem.c6
-rw-r--r--src/backend/storage/ipc/shmqueue.c33
-rw-r--r--src/backend/storage/ipc/sinval.c4
-rw-r--r--src/backend/storage/ipc/sinvaladt.c4
-rw-r--r--src/backend/storage/ipc/standby.c115
-rw-r--r--src/backend/storage/large_object/Makefile2
-rw-r--r--src/backend/storage/large_object/inv_api.c30
-rw-r--r--src/backend/storage/lmgr/Makefile6
-rw-r--r--src/backend/storage/lmgr/README21
-rw-r--r--src/backend/storage/lmgr/README-SSI585
-rw-r--r--src/backend/storage/lmgr/deadlock.c4
-rw-r--r--src/backend/storage/lmgr/lmgr.c7
-rw-r--r--src/backend/storage/lmgr/lock.c137
-rw-r--r--src/backend/storage/lmgr/lwlock.c8
-rw-r--r--src/backend/storage/lmgr/predicate.c4768
-rw-r--r--src/backend/storage/lmgr/proc.c29
-rw-r--r--src/backend/storage/lmgr/s_lock.c4
-rw-r--r--src/backend/storage/lmgr/spin.c4
-rw-r--r--src/backend/storage/page/Makefile2
-rw-r--r--src/backend/storage/page/bufpage.c4
-rw-r--r--src/backend/storage/page/itemptr.c4
-rw-r--r--src/backend/storage/smgr/Makefile2
-rw-r--r--src/backend/storage/smgr/README2
-rw-r--r--src/backend/storage/smgr/md.c154
-rw-r--r--src/backend/storage/smgr/smgr.c86
-rw-r--r--src/backend/storage/smgr/smgrtype.c4
-rw-r--r--src/backend/tcop/Makefile2
-rw-r--r--src/backend/tcop/dest.c4
-rw-r--r--src/backend/tcop/fastpath.c21
-rw-r--r--src/backend/tcop/postgres.c193
-rw-r--r--src/backend/tcop/pquery.c114
-rw-r--r--src/backend/tcop/utility.c430
-rw-r--r--src/backend/tsearch/Makefile4
-rw-r--r--src/backend/tsearch/dict.c4
-rw-r--r--src/backend/tsearch/dict_ispell.c9
-rw-r--r--src/backend/tsearch/dict_simple.c4
-rw-r--r--src/backend/tsearch/dict_synonym.c4
-rw-r--r--src/backend/tsearch/dict_thesaurus.c6
-rw-r--r--src/backend/tsearch/regis.c8
-rw-r--r--src/backend/tsearch/spell.c173
-rw-r--r--src/backend/tsearch/thesaurus_sample.ths1
-rw-r--r--src/backend/tsearch/to_tsany.c4
-rw-r--r--src/backend/tsearch/ts_locale.c40
-rw-r--r--src/backend/tsearch/ts_parse.c4
-rw-r--r--src/backend/tsearch/ts_selfuncs.c193
-rw-r--r--src/backend/tsearch/ts_typanalyze.c4
-rw-r--r--src/backend/tsearch/ts_utils.c4
-rw-r--r--src/backend/tsearch/wparser.c10
-rw-r--r--src/backend/tsearch/wparser_def.c763
-rw-r--r--src/backend/utils/.cvsignore2
-rw-r--r--src/backend/utils/.gitignore4
-rw-r--r--src/backend/utils/Gen_dummy_probes.sed4
-rw-r--r--src/backend/utils/Gen_fmgrtab.pl10
-rw-r--r--src/backend/utils/Makefile11
-rw-r--r--src/backend/utils/adt/Makefile4
-rw-r--r--src/backend/utils/adt/acl.c141
-rw-r--r--src/backend/utils/adt/array_userfuncs.c11
-rw-r--r--src/backend/utils/adt/arrayfuncs.c482
-rw-r--r--src/backend/utils/adt/arrayutils.c6
-rw-r--r--src/backend/utils/adt/ascii.c4
-rw-r--r--src/backend/utils/adt/bool.c4
-rw-r--r--src/backend/utils/adt/cash.c161
-rw-r--r--src/backend/utils/adt/char.c4
-rw-r--r--src/backend/utils/adt/date.c39
-rw-r--r--src/backend/utils/adt/datetime.c162
-rw-r--r--src/backend/utils/adt/datum.c4
-rw-r--r--src/backend/utils/adt/dbsize.c101
-rw-r--r--src/backend/utils/adt/domains.c4
-rw-r--r--src/backend/utils/adt/encode.c4
-rw-r--r--src/backend/utils/adt/enum.c263
-rw-r--r--src/backend/utils/adt/float.c4
-rw-r--r--src/backend/utils/adt/format_type.c30
-rw-r--r--src/backend/utils/adt/formatting.c389
-rw-r--r--src/backend/utils/adt/genfile.c209
-rw-r--r--src/backend/utils/adt/geo_ops.c89
-rw-r--r--src/backend/utils/adt/geo_selfuncs.c4
-rw-r--r--src/backend/utils/adt/inet_cidr_ntop.c (renamed from src/backend/utils/adt/inet_net_ntop.c)237
-rw-r--r--src/backend/utils/adt/inet_net_pton.c2
-rw-r--r--src/backend/utils/adt/int.c28
-rw-r--r--src/backend/utils/adt/int8.c29
-rw-r--r--src/backend/utils/adt/like.c102
-rw-r--r--src/backend/utils/adt/like_match.c16
-rw-r--r--src/backend/utils/adt/lockfuncs.c240
-rw-r--r--src/backend/utils/adt/mac.c2
-rw-r--r--src/backend/utils/adt/misc.c4
-rw-r--r--src/backend/utils/adt/nabstime.c33
-rw-r--r--src/backend/utils/adt/name.c4
-rw-r--r--src/backend/utils/adt/network.c62
-rw-r--r--src/backend/utils/adt/numeric.c281
-rw-r--r--src/backend/utils/adt/numutils.c124
-rw-r--r--src/backend/utils/adt/oid.c7
-rw-r--r--src/backend/utils/adt/oracle_compat.c13
-rw-r--r--src/backend/utils/adt/pg_locale.c660
-rw-r--r--src/backend/utils/adt/pg_lzcompress.c4
-rw-r--r--src/backend/utils/adt/pgstatfuncs.c457
-rw-r--r--src/backend/utils/adt/pseudotypes.c114
-rw-r--r--src/backend/utils/adt/quote.c79
-rw-r--r--src/backend/utils/adt/regexp.c46
-rw-r--r--src/backend/utils/adt/regproc.c8
-rw-r--r--src/backend/utils/adt/ri_triggers.c126
-rw-r--r--src/backend/utils/adt/rowtypes.c26
-rw-r--r--src/backend/utils/adt/ruleutils.c841
-rw-r--r--src/backend/utils/adt/selfuncs.c863
-rw-r--r--src/backend/utils/adt/tid.c4
-rw-r--r--src/backend/utils/adt/timestamp.c8
-rw-r--r--src/backend/utils/adt/trigfuncs.c4
-rw-r--r--src/backend/utils/adt/tsginidx.c118
-rw-r--r--src/backend/utils/adt/tsgistidx.c4
-rw-r--r--src/backend/utils/adt/tsquery.c8
-rw-r--r--src/backend/utils/adt/tsquery_cleanup.c4
-rw-r--r--src/backend/utils/adt/tsquery_gist.c4
-rw-r--r--src/backend/utils/adt/tsquery_op.c20
-rw-r--r--src/backend/utils/adt/tsquery_rewrite.c4
-rw-r--r--src/backend/utils/adt/tsquery_util.c17
-rw-r--r--src/backend/utils/adt/tsrank.c10
-rw-r--r--src/backend/utils/adt/tsvector.c4
-rw-r--r--src/backend/utils/adt/tsvector_op.c88
-rw-r--r--src/backend/utils/adt/tsvector_parser.c4
-rw-r--r--src/backend/utils/adt/txid.c4
-rw-r--r--src/backend/utils/adt/uuid.c4
-rw-r--r--src/backend/utils/adt/varbit.c65
-rw-r--r--src/backend/utils/adt/varchar.c31
-rw-r--r--src/backend/utils/adt/varlena.c863
-rw-r--r--src/backend/utils/adt/version.c4
-rw-r--r--src/backend/utils/adt/windowfuncs.c4
-rw-r--r--src/backend/utils/adt/xid.c4
-rw-r--r--src/backend/utils/adt/xml.c275
-rw-r--r--src/backend/utils/cache/Makefile2
-rw-r--r--src/backend/utils/cache/attoptcache.c4
-rw-r--r--src/backend/utils/cache/catcache.c15
-rw-r--r--src/backend/utils/cache/inval.c23
-rw-r--r--src/backend/utils/cache/lsyscache.c296
-rw-r--r--src/backend/utils/cache/plancache.c9
-rw-r--r--src/backend/utils/cache/relcache.c288
-rw-r--r--src/backend/utils/cache/relmapper.c4
-rw-r--r--src/backend/utils/cache/spccache.c4
-rw-r--r--src/backend/utils/cache/syscache.c45
-rw-r--r--src/backend/utils/cache/ts_cache.c40
-rw-r--r--src/backend/utils/cache/typcache.c784
-rw-r--r--src/backend/utils/errcodes.txt455
-rw-r--r--src/backend/utils/error/Makefile2
-rw-r--r--src/backend/utils/error/assert.c4
-rw-r--r--src/backend/utils/error/elog.c147
-rw-r--r--src/backend/utils/fmgr/Makefile2
-rw-r--r--src/backend/utils/fmgr/README20
-rw-r--r--src/backend/utils/fmgr/dfmgr.c8
-rw-r--r--src/backend/utils/fmgr/fmgr.c251
-rw-r--r--src/backend/utils/fmgr/funcapi.c25
-rw-r--r--src/backend/utils/generate-errcodes.pl41
-rw-r--r--src/backend/utils/hash/Makefile2
-rw-r--r--src/backend/utils/hash/dynahash.c10
-rw-r--r--src/backend/utils/hash/hashfn.c4
-rw-r--r--src/backend/utils/hash/pg_crc.c4
-rw-r--r--src/backend/utils/init/Makefile2
-rw-r--r--src/backend/utils/init/globals.c12
-rw-r--r--src/backend/utils/init/miscinit.c148
-rw-r--r--src/backend/utils/init/postinit.c196
-rw-r--r--src/backend/utils/mb/Makefile2
-rw-r--r--src/backend/utils/mb/README2
-rw-r--r--src/backend/utils/mb/Unicode/ISO10646-GB18030.TXT1
-rw-r--r--src/backend/utils/mb/Unicode/Makefile4
-rwxr-xr-xsrc/backend/utils/mb/Unicode/UCS_to_BIG5.pl5
-rwxr-xr-xsrc/backend/utils/mb/Unicode/UCS_to_EUC_CN.pl6
-rwxr-xr-xsrc/backend/utils/mb/Unicode/UCS_to_EUC_JIS_2004.pl14
-rwxr-xr-xsrc/backend/utils/mb/Unicode/UCS_to_EUC_JP.pl6
-rwxr-xr-xsrc/backend/utils/mb/Unicode/UCS_to_EUC_KR.pl6
-rwxr-xr-xsrc/backend/utils/mb/Unicode/UCS_to_EUC_TW.pl6
-rwxr-xr-xsrc/backend/utils/mb/Unicode/UCS_to_GB18030.pl4
-rwxr-xr-xsrc/backend/utils/mb/Unicode/UCS_to_SHIFT_JIS_2004.pl12
-rwxr-xr-xsrc/backend/utils/mb/Unicode/UCS_to_SJIS.pl6
-rw-r--r--src/backend/utils/mb/Unicode/UCS_to_most.pl4
-rw-r--r--src/backend/utils/mb/Unicode/euc_cn_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/euc_jp_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/euc_tw_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/gb18030_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/gbk_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/iso8859_10_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/iso8859_13_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/iso8859_14_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/iso8859_15_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/iso8859_16_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/iso8859_2_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/iso8859_3_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/iso8859_4_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/iso8859_5_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/iso8859_6_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/iso8859_7_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/iso8859_8_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/iso8859_9_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/koi8r_to_utf8.map2
-rw-r--r--src/backend/utils/mb/Unicode/ucs2utf.pl8
-rw-r--r--src/backend/utils/mb/conv.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/.gitignore1
-rw-r--r--src/backend/utils/mb/conversion_procs/Makefile9
-rw-r--r--src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/ascii_and_mic/ascii_and_mic.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/cyrillic_and_mic/cyrillic_and_mic.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/euc2004_sjis2004/euc2004_sjis2004.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/euc_cn_and_mic/euc_cn_and_mic.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/euc_jp_and_sjis.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/euc_kr_and_mic/euc_kr_and_mic.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/euc_tw_and_big5/big5.c2
-rw-r--r--src/backend/utils/mb/conversion_procs/euc_tw_and_big5/euc_tw_and_big5.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/latin2_and_win1250/latin2_and_win1250.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/latin_and_mic/latin_and_mic.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_ascii/utf8_and_ascii.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_big5/utf8_and_big5.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/utf8_and_cyrillic.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_euc2004/utf8_and_euc2004.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/utf8_and_euc_cn.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/utf8_and_euc_jp.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/utf8_and_euc_kr.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/utf8_and_euc_tw.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_gb18030/utf8_and_gb18030.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_gbk/utf8_and_gbk.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_iso8859/utf8_and_iso8859.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/utf8_and_iso8859_1.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_johab/utf8_and_johab.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_sjis/utf8_and_sjis.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/utf8_and_sjis2004.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_uhc/utf8_and_uhc.c4
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile2
-rw-r--r--src/backend/utils/mb/conversion_procs/utf8_and_win/utf8_and_win.c4
-rw-r--r--src/backend/utils/mb/encnames.c2
-rw-r--r--src/backend/utils/mb/iso.c2
-rw-r--r--src/backend/utils/mb/mbutils.c357
-rw-r--r--src/backend/utils/mb/wchar.c20
-rw-r--r--src/backend/utils/mb/win1251.c2
-rw-r--r--src/backend/utils/mb/win866.c2
-rw-r--r--src/backend/utils/mb/wstrcmp.c2
-rw-r--r--src/backend/utils/mb/wstrncmp.c2
-rw-r--r--src/backend/utils/misc/.cvsignore1
-rw-r--r--src/backend/utils/misc/.gitignore1
-rw-r--r--src/backend/utils/misc/Makefile4
-rw-r--r--src/backend/utils/misc/README205
-rwxr-xr-xsrc/backend/utils/misc/check_guc24
-rw-r--r--src/backend/utils/misc/guc-file.l219
-rw-r--r--src/backend/utils/misc/guc.c2640
-rw-r--r--src/backend/utils/misc/help_config.c4
-rw-r--r--src/backend/utils/misc/pg_rusage.c4
-rw-r--r--src/backend/utils/misc/postgresql.conf.sample63
-rw-r--r--src/backend/utils/misc/ps_status.c6
-rw-r--r--src/backend/utils/misc/rbtree.c464
-rw-r--r--src/backend/utils/misc/superuser.c4
-rw-r--r--src/backend/utils/misc/tzparser.c156
-rw-r--r--src/backend/utils/mmgr/Makefile2
-rw-r--r--src/backend/utils/mmgr/README4
-rw-r--r--src/backend/utils/mmgr/aset.c66
-rw-r--r--src/backend/utils/mmgr/mcxt.c23
-rw-r--r--src/backend/utils/mmgr/portalmem.c222
-rw-r--r--src/backend/utils/probes.d16
-rw-r--r--src/backend/utils/resowner/Makefile2
-rw-r--r--src/backend/utils/resowner/README2
-rw-r--r--src/backend/utils/resowner/resowner.c10
-rw-r--r--src/backend/utils/sort/Makefile2
-rw-r--r--src/backend/utils/sort/logtape.c4
-rw-r--r--src/backend/utils/sort/tuplesort.c419
-rw-r--r--src/backend/utils/sort/tuplestore.c56
-rw-r--r--src/backend/utils/time/Makefile2
-rw-r--r--src/backend/utils/time/combocid.c4
-rw-r--r--src/backend/utils/time/snapmgr.c86
-rw-r--r--src/backend/utils/time/tqual.c24
-rw-r--r--src/bcc32.mak10
-rw-r--r--src/bin/Makefile9
-rw-r--r--src/bin/initdb/.gitignore4
-rw-r--r--src/bin/initdb/Makefile8
-rw-r--r--src/bin/initdb/initdb.c548
-rw-r--r--src/bin/initdb/nls.mk4
-rw-r--r--src/bin/initdb/po/cs.po4
-rw-r--r--src/bin/initdb/po/de.po319
-rw-r--r--src/bin/initdb/po/es.po294
-rw-r--r--src/bin/initdb/po/fr.po6
-rw-r--r--src/bin/initdb/po/it.po22
-rw-r--r--src/bin/initdb/po/ja.po301
-rw-r--r--src/bin/initdb/po/ko.po809
-rw-r--r--src/bin/initdb/po/pt_BR.po4
-rw-r--r--src/bin/initdb/po/ro.po845
-rw-r--r--src/bin/initdb/po/ru.po748
-rw-r--r--src/bin/initdb/po/sv.po295
-rw-r--r--src/bin/initdb/po/tr.po346
-rw-r--r--src/bin/initdb/po/zh_CN.po636
-rw-r--r--src/bin/initdb/po/zh_TW.po875
-rw-r--r--src/bin/pg_basebackup/.gitignore1
-rw-r--r--src/bin/pg_basebackup/Makefile38
-rw-r--r--src/bin/pg_basebackup/nls.mk5
-rw-r--r--src/bin/pg_basebackup/pg_basebackup.c1124
-rw-r--r--src/bin/pg_basebackup/po/de.po365
-rw-r--r--src/bin/pg_basebackup/po/es.po353
-rw-r--r--src/bin/pg_config/.gitignore1
-rw-r--r--src/bin/pg_config/Makefile8
-rw-r--r--src/bin/pg_config/nls.mk4
-rw-r--r--src/bin/pg_config/pg_config.c4
-rw-r--r--src/bin/pg_config/po/es.po111
-rw-r--r--src/bin/pg_config/po/fr.po108
-rw-r--r--src/bin/pg_config/po/ja.po112
-rw-r--r--src/bin/pg_config/po/ko.po126
-rw-r--r--src/bin/pg_config/po/pt_BR.po77
-rw-r--r--src/bin/pg_config/po/ro.po219
-rw-r--r--src/bin/pg_config/po/ru.po274
-rw-r--r--src/bin/pg_config/po/sv.po102
-rw-r--r--src/bin/pg_config/po/ta.po2
-rw-r--r--src/bin/pg_config/po/tr.po105
-rw-r--r--src/bin/pg_config/po/zh_CN.po246
-rw-r--r--src/bin/pg_config/po/zh_TW.po304
-rw-r--r--src/bin/pg_controldata/.gitignore3
-rw-r--r--src/bin/pg_controldata/Makefile8
-rw-r--r--src/bin/pg_controldata/nls.mk4
-rw-r--r--src/bin/pg_controldata/pg_controldata.c2
-rw-r--r--src/bin/pg_controldata/po/es.po110
-rw-r--r--src/bin/pg_controldata/po/fr.po2
-rw-r--r--src/bin/pg_controldata/po/ja.po151
-rw-r--r--src/bin/pg_controldata/po/ko.po139
-rw-r--r--src/bin/pg_controldata/po/pt_BR.po9
-rw-r--r--src/bin/pg_controldata/po/ro.po341
-rw-r--r--src/bin/pg_controldata/po/ru.po365
-rw-r--r--src/bin/pg_controldata/po/tr.po155
-rw-r--r--src/bin/pg_controldata/po/zh_CN.po283
-rw-r--r--src/bin/pg_controldata/po/zh_TW.po338
-rw-r--r--src/bin/pg_ctl/.gitignore1
-rw-r--r--src/bin/pg_ctl/Makefile8
-rw-r--r--src/bin/pg_ctl/nls.mk4
-rw-r--r--src/bin/pg_ctl/pg_ctl.c568
-rw-r--r--src/bin/pg_ctl/po/de.po399
-rw-r--r--src/bin/pg_ctl/po/fr.po2
-rw-r--r--src/bin/pg_ctl/po/ja.po267
-rw-r--r--src/bin/pg_ctl/po/ru.po628
-rw-r--r--src/bin/pg_ctl/po/tr.po299
-rw-r--r--src/bin/pg_ctl/po/zh_CN.po533
-rw-r--r--src/bin/pg_ctl/po/zh_TW.po771
-rw-r--r--src/bin/pg_dump/.gitignore5
-rw-r--r--src/bin/pg_dump/Makefile14
-rw-r--r--src/bin/pg_dump/README8
-rw-r--r--src/bin/pg_dump/common.c92
-rw-r--r--src/bin/pg_dump/compress_io.c684
-rw-r--r--src/bin/pg_dump/compress_io.h70
-rw-r--r--src/bin/pg_dump/dumputils.c13
-rw-r--r--src/bin/pg_dump/dumputils.h6
-rw-r--r--src/bin/pg_dump/keywords.c4
-rw-r--r--src/bin/pg_dump/nls.mk4
-rw-r--r--src/bin/pg_dump/pg_backup.h10
-rw-r--r--src/bin/pg_dump/pg_backup_archiver.c352
-rw-r--r--src/bin/pg_dump/pg_backup_archiver.h27
-rw-r--r--src/bin/pg_dump/pg_backup_custom.c438
-rw-r--r--src/bin/pg_dump/pg_backup_db.c2
-rw-r--r--src/bin/pg_dump/pg_backup_db.h2
-rw-r--r--src/bin/pg_dump/pg_backup_directory.c683
-rw-r--r--src/bin/pg_dump/pg_backup_files.c2
-rw-r--r--src/bin/pg_dump/pg_backup_null.c2
-rw-r--r--src/bin/pg_dump/pg_backup_tar.c10
-rw-r--r--src/bin/pg_dump/pg_backup_tar.h2
-rw-r--r--src/bin/pg_dump/pg_dump.c2670
-rw-r--r--src/bin/pg_dump/pg_dump.h35
-rw-r--r--src/bin/pg_dump/pg_dump_sort.c80
-rw-r--r--src/bin/pg_dump/pg_dumpall.c144
-rw-r--r--src/bin/pg_dump/pg_restore.c59
-rw-r--r--src/bin/pg_dump/po/de.po985
-rw-r--r--src/bin/pg_dump/po/es.po883
-rw-r--r--src/bin/pg_dump/po/fr.po38
-rw-r--r--src/bin/pg_dump/po/it.po6
-rw-r--r--src/bin/pg_dump/po/ja.po953
-rw-r--r--src/bin/pg_dump/po/ko.po2147
-rw-r--r--src/bin/pg_dump/po/pt_BR.po744
-rw-r--r--src/bin/pg_dump/po/tr.po1155
-rw-r--r--src/bin/pg_dump/po/zh_CN.po2141
-rw-r--r--src/bin/pg_dump/po/zh_TW.po2213
-rw-r--r--src/bin/pg_resetxlog/.gitignore3
-rw-r--r--src/bin/pg_resetxlog/Makefile8
-rw-r--r--src/bin/pg_resetxlog/nls.mk4
-rw-r--r--src/bin/pg_resetxlog/pg_resetxlog.c4
-rw-r--r--src/bin/pg_resetxlog/po/es.po165
-rw-r--r--src/bin/pg_resetxlog/po/fr.po2
-rw-r--r--src/bin/pg_resetxlog/po/ja.po176
-rw-r--r--src/bin/pg_resetxlog/po/ko.po227
-rw-r--r--src/bin/pg_resetxlog/po/pt_BR.po7
-rw-r--r--src/bin/pg_resetxlog/po/ro.po420
-rw-r--r--src/bin/pg_resetxlog/po/ru.po2
-rw-r--r--src/bin/pg_resetxlog/po/tr.po215
-rw-r--r--src/bin/pg_resetxlog/po/zh_CN.po354
-rw-r--r--src/bin/pg_resetxlog/po/zh_TW.po475
-rw-r--r--src/bin/pgevent/Makefile4
-rw-r--r--src/bin/pgevent/README2
-rw-r--r--src/bin/pgevent/pgevent.c2
-rw-r--r--src/bin/pgevent/pgmsgevent.h2
-rw-r--r--src/bin/psql/.cvsignore3
-rw-r--r--src/bin/psql/.gitignore8
-rw-r--r--src/bin/psql/Makefile8
-rw-r--r--src/bin/psql/command.c415
-rw-r--r--src/bin/psql/command.h4
-rw-r--r--src/bin/psql/common.c23
-rw-r--r--src/bin/psql/common.h6
-rw-r--r--src/bin/psql/copy.c4
-rw-r--r--src/bin/psql/copy.h4
-rw-r--r--src/bin/psql/create_help.pl4
-rw-r--r--src/bin/psql/describe.c801
-rw-r--r--src/bin/psql/describe.h20
-rw-r--r--src/bin/psql/help.c92
-rw-r--r--src/bin/psql/help.h4
-rw-r--r--src/bin/psql/input.c4
-rw-r--r--src/bin/psql/input.h4
-rw-r--r--src/bin/psql/large_obj.c6
-rw-r--r--src/bin/psql/large_obj.h4
-rw-r--r--src/bin/psql/mainloop.c4
-rw-r--r--src/bin/psql/mainloop.h4
-rw-r--r--src/bin/psql/mbprint.c28
-rw-r--r--src/bin/psql/mbprint.h2
-rw-r--r--src/bin/psql/nls.mk4
-rw-r--r--src/bin/psql/po/cs.po2
-rw-r--r--src/bin/psql/po/de.po2291
-rw-r--r--src/bin/psql/po/es.po1625
-rw-r--r--src/bin/psql/po/fr.po1198
-rw-r--r--src/bin/psql/po/ja.po1649
-rw-r--r--src/bin/psql/po/pt_BR.po4399
-rw-r--r--src/bin/psql/po/zh_CN.po4343
-rw-r--r--src/bin/psql/po/zh_TW.po5626
-rw-r--r--src/bin/psql/print.c8
-rw-r--r--src/bin/psql/print.h4
-rw-r--r--src/bin/psql/prompt.c4
-rw-r--r--src/bin/psql/prompt.h4
-rw-r--r--src/bin/psql/psqlscan.h4
-rw-r--r--src/bin/psql/psqlscan.l56
-rw-r--r--src/bin/psql/settings.h4
-rw-r--r--src/bin/psql/startup.c18
-rw-r--r--src/bin/psql/stringutils.c4
-rw-r--r--src/bin/psql/stringutils.h4
-rw-r--r--src/bin/psql/tab-complete.c712
-rw-r--r--src/bin/psql/tab-complete.h4
-rw-r--r--src/bin/psql/variables.c4
-rw-r--r--src/bin/psql/variables.h4
-rw-r--r--src/bin/scripts/.gitignore15
-rw-r--r--src/bin/scripts/Makefile24
-rw-r--r--src/bin/scripts/clusterdb.c4
-rw-r--r--src/bin/scripts/common.c4
-rw-r--r--src/bin/scripts/common.h4
-rw-r--r--src/bin/scripts/createdb.c15
-rw-r--r--src/bin/scripts/createlang.c14
-rw-r--r--src/bin/scripts/createuser.c4
-rw-r--r--src/bin/scripts/dropdb.c8
-rw-r--r--src/bin/scripts/droplang.c166
-rw-r--r--src/bin/scripts/dropuser.c4
-rw-r--r--src/bin/scripts/nls.mk4
-rw-r--r--src/bin/scripts/po/cs.po2
-rw-r--r--src/bin/scripts/po/fr.po2
-rw-r--r--src/bin/scripts/po/ja.po448
-rw-r--r--src/bin/scripts/po/ko.po565
-rw-r--r--src/bin/scripts/po/ro.po905
-rw-r--r--src/bin/scripts/po/tr.po160
-rw-r--r--src/bin/scripts/po/zh_CN.po672
-rw-r--r--src/bin/scripts/po/zh_TW.po954
-rw-r--r--src/bin/scripts/reindexdb.c4
-rw-r--r--src/bin/scripts/vacuumdb.c4
-rw-r--r--src/include/.gitignore5
-rw-r--r--src/include/Makefile8
-rw-r--r--src/include/access/attnum.h4
-rw-r--r--src/include/access/clog.h4
-rw-r--r--src/include/access/genam.h14
-rw-r--r--src/include/access/gin.h594
-rw-r--r--src/include/access/gin_private.h722
-rw-r--r--src/include/access/gist.h25
-rw-r--r--src/include/access/gist_private.h211
-rw-r--r--src/include/access/gistscan.h4
-rw-r--r--src/include/access/hash.h13
-rw-r--r--src/include/access/heapam.h8
-rw-r--r--src/include/access/hio.h8
-rw-r--r--src/include/access/htup.h27
-rw-r--r--src/include/access/itup.h6
-rw-r--r--src/include/access/multixact.h4
-rw-r--r--src/include/access/nbtree.h5
-rw-r--r--src/include/access/printtup.h4
-rw-r--r--src/include/access/reloptions.h4
-rw-r--r--src/include/access/relscan.h17
-rw-r--r--src/include/access/rewriteheap.h6
-rw-r--r--src/include/access/rmgr.h2
-rw-r--r--src/include/access/sdir.h4
-rw-r--r--src/include/access/skey.h30
-rw-r--r--src/include/access/slru.h9
-rw-r--r--src/include/access/subtrans.h4
-rw-r--r--src/include/access/sysattr.h4
-rw-r--r--src/include/access/transam.h4
-rw-r--r--src/include/access/tupconvert.h4
-rw-r--r--src/include/access/tupdesc.h10
-rw-r--r--src/include/access/tupmacs.h4
-rw-r--r--src/include/access/tuptoaster.h4
-rw-r--r--src/include/access/twophase.h4
-rw-r--r--src/include/access/twophase_rmgr.h9
-rw-r--r--src/include/access/valid.h9
-rw-r--r--src/include/access/visibilitymap.h4
-rw-r--r--src/include/access/xact.h35
-rw-r--r--src/include/access/xlog.h34
-rw-r--r--src/include/access/xlog_internal.h23
-rw-r--r--src/include/access/xlogdefs.h23
-rw-r--r--src/include/access/xlogutils.h4
-rw-r--r--src/include/bootstrap/bootstrap.h4
-rw-r--r--src/include/c.h8
-rw-r--r--src/include/catalog/.gitignore1
-rw-r--r--src/include/catalog/catalog.h19
-rw-r--r--src/include/catalog/catversion.h8
-rw-r--r--src/include/catalog/dependency.h36
-rwxr-xr-xsrc/include/catalog/duplicate_oids9
-rw-r--r--src/include/catalog/genbki.h7
-rw-r--r--src/include/catalog/heap.h10
-rw-r--r--src/include/catalog/index.h33
-rw-r--r--src/include/catalog/indexing.h26
-rw-r--r--src/include/catalog/namespace.h22
-rw-r--r--src/include/catalog/objectaccess.h46
-rw-r--r--src/include/catalog/objectaddress.h37
-rw-r--r--src/include/catalog/pg_aggregate.h18
-rw-r--r--src/include/catalog/pg_am.h66
-rw-r--r--src/include/catalog/pg_amop.h751
-rw-r--r--src/include/catalog/pg_amproc.h6
-rw-r--r--src/include/catalog/pg_attrdef.h12
-rw-r--r--src/include/catalog/pg_attribute.h18
-rw-r--r--src/include/catalog/pg_auth_members.h4
-rw-r--r--src/include/catalog/pg_authid.h16
-rw-r--r--src/include/catalog/pg_cast.h11
-rw-r--r--src/include/catalog/pg_class.h46
-rw-r--r--src/include/catalog/pg_collation.h76
-rw-r--r--src/include/catalog/pg_collation_fn.h23
-rw-r--r--src/include/catalog/pg_constraint.h53
-rw-r--r--src/include/catalog/pg_control.h9
-rw-r--r--src/include/catalog/pg_conversion.h4
-rw-r--r--src/include/catalog/pg_conversion_fn.h4
-rw-r--r--src/include/catalog/pg_database.h6
-rw-r--r--src/include/catalog/pg_db_role_setting.h4
-rw-r--r--src/include/catalog/pg_default_acl.h4
-rw-r--r--src/include/catalog/pg_depend.h4
-rw-r--r--src/include/catalog/pg_description.h4
-rw-r--r--src/include/catalog/pg_enum.h15
-rw-r--r--src/include/catalog/pg_extension.h74
-rw-r--r--src/include/catalog/pg_foreign_data_wrapper.h16
-rw-r--r--src/include/catalog/pg_foreign_server.h4
-rw-r--r--src/include/catalog/pg_foreign_table.h53
-rw-r--r--src/include/catalog/pg_index.h34
-rw-r--r--src/include/catalog/pg_inherits.h4
-rw-r--r--src/include/catalog/pg_inherits_fn.h4
-rw-r--r--src/include/catalog/pg_language.h4
-rw-r--r--src/include/catalog/pg_largeobject.h4
-rw-r--r--[-rwxr-xr-x]src/include/catalog/pg_largeobject_metadata.h4
-rw-r--r--src/include/catalog/pg_namespace.h4
-rw-r--r--src/include/catalog/pg_opclass.h5
-rw-r--r--src/include/catalog/pg_operator.h726
-rw-r--r--src/include/catalog/pg_opfamily.h5
-rw-r--r--src/include/catalog/pg_pltemplate.h12
-rw-r--r--src/include/catalog/pg_proc.h1282
-rw-r--r--src/include/catalog/pg_proc_fn.h4
-rw-r--r--src/include/catalog/pg_rewrite.h8
-rw-r--r--src/include/catalog/pg_seclabel.h43
-rw-r--r--src/include/catalog/pg_shdepend.h4
-rw-r--r--src/include/catalog/pg_shdescription.h4
-rw-r--r--src/include/catalog/pg_statistic.h6
-rw-r--r--src/include/catalog/pg_tablespace.h4
-rw-r--r--src/include/catalog/pg_trigger.h37
-rw-r--r--src/include/catalog/pg_ts_config.h4
-rw-r--r--src/include/catalog/pg_ts_config_map.h4
-rw-r--r--src/include/catalog/pg_ts_dict.h4
-rw-r--r--src/include/catalog/pg_ts_parser.h4
-rw-r--r--src/include/catalog/pg_ts_template.h4
-rw-r--r--src/include/catalog/pg_type.h296
-rw-r--r--src/include/catalog/pg_type_fn.h8
-rw-r--r--src/include/catalog/pg_user_mapping.h4
-rw-r--r--src/include/catalog/storage.h11
-rw-r--r--src/include/catalog/toasting.h5
-rwxr-xr-xsrc/include/catalog/unused_oids2
-rw-r--r--src/include/commands/alter.h11
-rw-r--r--src/include/commands/async.h4
-rw-r--r--src/include/commands/cluster.h8
-rw-r--r--src/include/commands/collationcmds.h28
-rw-r--r--src/include/commands/comment.h4
-rw-r--r--src/include/commands/conversioncmds.h6
-rw-r--r--src/include/commands/copy.h18
-rw-r--r--src/include/commands/dbcommands.h12
-rw-r--r--src/include/commands/defrem.h28
-rw-r--r--src/include/commands/discard.h4
-rw-r--r--src/include/commands/explain.h15
-rw-r--r--src/include/commands/extension.h49
-rw-r--r--src/include/commands/lockcmds.h4
-rw-r--r--src/include/commands/portalcmds.h4
-rw-r--r--src/include/commands/prepare.h4
-rw-r--r--src/include/commands/proclang.h3
-rw-r--r--src/include/commands/schemacmds.h4
-rw-r--r--src/include/commands/seclabel.h35
-rw-r--r--src/include/commands/sequence.h8
-rw-r--r--src/include/commands/tablecmds.h23
-rw-r--r--src/include/commands/tablespace.h8
-rw-r--r--src/include/commands/trigger.h71
-rw-r--r--src/include/commands/typecmds.h8
-rw-r--r--src/include/commands/user.h2
-rw-r--r--src/include/commands/vacuum.h33
-rw-r--r--src/include/commands/variable.h39
-rw-r--r--src/include/commands/view.h4
-rw-r--r--src/include/executor/execdebug.h4
-rw-r--r--src/include/executor/execdefs.h33
-rw-r--r--src/include/executor/execdesc.h4
-rw-r--r--src/include/executor/executor.h38
-rw-r--r--src/include/executor/functions.h13
-rw-r--r--src/include/executor/hashjoin.h11
-rw-r--r--src/include/executor/instrument.h4
-rw-r--r--src/include/executor/nodeAgg.h6
-rw-r--r--src/include/executor/nodeAppend.h6
-rw-r--r--src/include/executor/nodeBitmapAnd.h6
-rw-r--r--src/include/executor/nodeBitmapHeapscan.h6
-rw-r--r--src/include/executor/nodeBitmapIndexscan.h6
-rw-r--r--src/include/executor/nodeBitmapOr.h6
-rw-r--r--src/include/executor/nodeCtescan.h6
-rw-r--r--src/include/executor/nodeForeignscan.h24
-rw-r--r--src/include/executor/nodeFunctionscan.h6
-rw-r--r--src/include/executor/nodeGroup.h6
-rw-r--r--src/include/executor/nodeHash.h16
-rw-r--r--src/include/executor/nodeHashjoin.h6
-rw-r--r--src/include/executor/nodeIndexscan.h10
-rw-r--r--src/include/executor/nodeLimit.h6
-rw-r--r--src/include/executor/nodeLockRows.h6
-rw-r--r--src/include/executor/nodeMaterial.h6
-rw-r--r--src/include/executor/nodeMergeAppend.h24
-rw-r--r--src/include/executor/nodeMergejoin.h6
-rw-r--r--src/include/executor/nodeModifyTable.h6
-rw-r--r--src/include/executor/nodeNestloop.h6
-rw-r--r--src/include/executor/nodeRecursiveunion.h6
-rw-r--r--src/include/executor/nodeResult.h6
-rw-r--r--src/include/executor/nodeSeqscan.h6
-rw-r--r--src/include/executor/nodeSetOp.h6
-rw-r--r--src/include/executor/nodeSort.h6
-rw-r--r--src/include/executor/nodeSubplan.h4
-rw-r--r--src/include/executor/nodeSubqueryscan.h6
-rw-r--r--src/include/executor/nodeTidscan.h6
-rw-r--r--src/include/executor/nodeUnique.h6
-rw-r--r--src/include/executor/nodeValuesscan.h6
-rw-r--r--src/include/executor/nodeWindowAgg.h6
-rw-r--r--src/include/executor/nodeWorktablescan.h6
-rw-r--r--src/include/executor/spi.h4
-rw-r--r--src/include/executor/spi_priv.h4
-rw-r--r--src/include/executor/tstoreReceiver.h4
-rw-r--r--src/include/executor/tuptable.h4
-rw-r--r--src/include/fmgr.h264
-rw-r--r--src/include/foreign/fdwapi.h98
-rw-r--r--src/include/foreign/foreign.h20
-rw-r--r--src/include/funcapi.h4
-rw-r--r--src/include/getaddrinfo.h4
-rw-r--r--src/include/getopt_long.h5
-rw-r--r--src/include/lib/dllist.h4
-rw-r--r--src/include/lib/stringinfo.h6
-rw-r--r--src/include/libpq/auth.h8
-rw-r--r--src/include/libpq/be-fsstubs.h4
-rw-r--r--src/include/libpq/crypt.h4
-rw-r--r--src/include/libpq/hba.h9
-rw-r--r--src/include/libpq/ip.h4
-rw-r--r--src/include/libpq/libpq-be.h12
-rw-r--r--src/include/libpq/libpq-fs.h4
-rw-r--r--src/include/libpq/libpq.h7
-rw-r--r--src/include/libpq/md5.h4
-rw-r--r--src/include/libpq/pqcomm.h4
-rw-r--r--src/include/libpq/pqformat.h4
-rw-r--r--src/include/libpq/pqsignal.h4
-rw-r--r--src/include/mb/pg_wchar.h17
-rw-r--r--src/include/miscadmin.h34
-rw-r--r--src/include/nodes/bitmapset.h4
-rw-r--r--src/include/nodes/execnodes.h163
-rw-r--r--src/include/nodes/makefuncs.h21
-rw-r--r--src/include/nodes/memnodes.h5
-rw-r--r--src/include/nodes/nodeFuncs.h14
-rw-r--r--src/include/nodes/nodes.h26
-rw-r--r--src/include/nodes/params.h6
-rw-r--r--src/include/nodes/parsenodes.h194
-rw-r--r--src/include/nodes/pg_list.h13
-rw-r--r--src/include/nodes/plannodes.h110
-rw-r--r--src/include/nodes/primnodes.h90
-rw-r--r--src/include/nodes/print.h4
-rw-r--r--src/include/nodes/readfuncs.h4
-rw-r--r--src/include/nodes/relation.h178
-rw-r--r--src/include/nodes/tidbitmap.h4
-rw-r--r--src/include/nodes/value.h4
-rw-r--r--src/include/optimizer/clauses.h17
-rw-r--r--src/include/optimizer/cost.h20
-rw-r--r--src/include/optimizer/geqo.h4
-rw-r--r--src/include/optimizer/geqo_copy.h4
-rw-r--r--src/include/optimizer/geqo_gene.h4
-rw-r--r--src/include/optimizer/geqo_misc.h4
-rw-r--r--src/include/optimizer/geqo_mutation.h4
-rw-r--r--src/include/optimizer/geqo_pool.h4
-rw-r--r--src/include/optimizer/geqo_random.h4
-rw-r--r--src/include/optimizer/geqo_recombination.h4
-rw-r--r--src/include/optimizer/geqo_selection.h4
-rw-r--r--src/include/optimizer/joininfo.h7
-rw-r--r--src/include/optimizer/pathnode.h10
-rw-r--r--src/include/optimizer/paths.h35
-rw-r--r--src/include/optimizer/placeholder.h9
-rw-r--r--src/include/optimizer/plancat.h6
-rw-r--r--src/include/optimizer/planmain.h20
-rw-r--r--src/include/optimizer/planner.h6
-rw-r--r--src/include/optimizer/predtest.h4
-rw-r--r--src/include/optimizer/prep.h6
-rw-r--r--src/include/optimizer/restrictinfo.h4
-rw-r--r--src/include/optimizer/subselect.h7
-rw-r--r--src/include/optimizer/tlist.h5
-rw-r--r--src/include/optimizer/var.h4
-rw-r--r--src/include/parser/.gitignore1
-rw-r--r--src/include/parser/analyze.h4
-rw-r--r--src/include/parser/gramparse.h4
-rw-r--r--src/include/parser/keywords.h4
-rw-r--r--src/include/parser/kwlist.h28
-rw-r--r--src/include/parser/parse_agg.h5
-rw-r--r--src/include/parser/parse_clause.h4
-rw-r--r--src/include/parser/parse_coerce.h4
-rw-r--r--src/include/parser/parse_collate.h27
-rw-r--r--src/include/parser/parse_cte.h4
-rw-r--r--src/include/parser/parse_expr.h4
-rw-r--r--src/include/parser/parse_func.h6
-rw-r--r--src/include/parser/parse_node.h9
-rw-r--r--src/include/parser/parse_oper.h7
-rw-r--r--src/include/parser/parse_param.h4
-rw-r--r--src/include/parser/parse_relation.h8
-rw-r--r--src/include/parser/parse_target.h4
-rw-r--r--src/include/parser/parse_type.h15
-rw-r--r--src/include/parser/parse_utilcmd.h4
-rw-r--r--src/include/parser/parser.h6
-rw-r--r--src/include/parser/parsetree.h6
-rw-r--r--src/include/parser/scanner.h4
-rw-r--r--src/include/parser/scansup.h4
-rw-r--r--src/include/pg_config.h.in24
-rw-r--r--src/include/pg_config.h.win3235
-rw-r--r--src/include/pg_config_manual.h21
-rw-r--r--src/include/pg_trace.h4
-rw-r--r--src/include/pgstat.h63
-rw-r--r--src/include/pgtime.h4
-rw-r--r--src/include/port.h63
-rw-r--r--src/include/port/aix.h2
-rw-r--r--src/include/port/bsdi.h2
-rw-r--r--src/include/port/cygwin.h4
-rw-r--r--src/include/port/darwin.h2
-rw-r--r--src/include/port/dgux.h2
-rw-r--r--src/include/port/freebsd.h2
-rw-r--r--src/include/port/hpux.h2
-rw-r--r--src/include/port/irix.h2
-rw-r--r--src/include/port/linux.h10
-rw-r--r--src/include/port/netbsd.h2
-rw-r--r--src/include/port/nextstep.h2
-rw-r--r--src/include/port/openbsd.h2
-rw-r--r--src/include/port/osf.h2
-rw-r--r--src/include/port/sco.h2
-rw-r--r--src/include/port/solaris.h2
-rw-r--r--src/include/port/sunos4.h2
-rw-r--r--src/include/port/svr4.h2
-rw-r--r--src/include/port/ultrix4.h2
-rw-r--r--src/include/port/univel.h2
-rw-r--r--src/include/port/unixware.h2
-rw-r--r--src/include/port/win32.h106
-rw-r--r--src/include/port/win32/arpa/inet.h2
-rw-r--r--src/include/port/win32/dlfcn.h2
-rw-r--r--src/include/port/win32/grp.h2
-rw-r--r--src/include/port/win32/netdb.h2
-rw-r--r--src/include/port/win32/netinet/in.h2
-rw-r--r--src/include/port/win32/pwd.h2
-rw-r--r--src/include/port/win32/sys/socket.h3
-rw-r--r--src/include/port/win32/sys/wait.h2
-rw-r--r--src/include/port/win32_msvc/dirent.h2
-rw-r--r--src/include/port/win32_msvc/sys/file.h2
-rw-r--r--src/include/port/win32_msvc/sys/param.h2
-rw-r--r--src/include/port/win32_msvc/sys/time.h2
-rw-r--r--src/include/port/win32_msvc/unistd.h2
-rw-r--r--src/include/port/win32_msvc/utime.h2
-rw-r--r--src/include/portability/instr_time.h4
-rw-r--r--src/include/postgres.h4
-rw-r--r--src/include/postgres_ext.h2
-rw-r--r--src/include/postgres_fe.h4
-rw-r--r--src/include/postmaster/autovacuum.h4
-rw-r--r--src/include/postmaster/bgwriter.h6
-rw-r--r--src/include/postmaster/fork_process.h4
-rw-r--r--src/include/postmaster/pgarch.h4
-rw-r--r--src/include/postmaster/postmaster.h5
-rw-r--r--src/include/postmaster/syslogger.h5
-rw-r--r--src/include/postmaster/walwriter.h4
-rw-r--r--src/include/regex/regcustom.h2
-rw-r--r--src/include/regex/regerrs.h2
-rw-r--r--src/include/regex/regex.h6
-rw-r--r--src/include/regex/regguts.h2
-rw-r--r--src/include/replication/basebackup.h19
-rw-r--r--src/include/replication/replnodes.h62
-rw-r--r--src/include/replication/syncrep.h50
-rw-r--r--src/include/replication/walprotocol.h45
-rw-r--r--src/include/replication/walreceiver.h27
-rw-r--r--src/include/replication/walsender.h82
-rw-r--r--src/include/rewrite/prs2lock.h4
-rw-r--r--src/include/rewrite/rewriteDefine.h4
-rw-r--r--src/include/rewrite/rewriteHandler.h4
-rw-r--r--src/include/rewrite/rewriteManip.h4
-rw-r--r--src/include/rewrite/rewriteRemove.h4
-rw-r--r--src/include/rewrite/rewriteSupport.h7
-rw-r--r--src/include/rusagestub.h4
-rw-r--r--src/include/snowball/header.h4
-rw-r--r--src/include/storage/backendid.h6
-rw-r--r--src/include/storage/block.h4
-rw-r--r--src/include/storage/buf.h4
-rw-r--r--src/include/storage/buf_internals.h6
-rw-r--r--src/include/storage/buffile.h4
-rw-r--r--src/include/storage/bufmgr.h16
-rw-r--r--src/include/storage/bufpage.h4
-rw-r--r--src/include/storage/copydir.h19
-rw-r--r--src/include/storage/fd.h5
-rw-r--r--src/include/storage/freespace.h4
-rw-r--r--src/include/storage/fsm_internals.h4
-rw-r--r--src/include/storage/indexfsm.h4
-rw-r--r--src/include/storage/ipc.h4
-rw-r--r--src/include/storage/item.h4
-rw-r--r--src/include/storage/itemid.h4
-rw-r--r--src/include/storage/itemptr.h4
-rw-r--r--src/include/storage/large_object.h4
-rw-r--r--src/include/storage/latch.h59
-rw-r--r--src/include/storage/lmgr.h4
-rw-r--r--src/include/storage/lock.h5
-rw-r--r--src/include/storage/lwlock.h16
-rw-r--r--src/include/storage/off.h4
-rw-r--r--src/include/storage/pg_sema.h4
-rw-r--r--src/include/storage/pg_shmem.h4
-rw-r--r--src/include/storage/pmsignal.h7
-rw-r--r--src/include/storage/pos.h4
-rw-r--r--src/include/storage/predicate.h70
-rw-r--r--src/include/storage/predicate_internals.h473
-rw-r--r--src/include/storage/proc.h18
-rw-r--r--src/include/storage/procarray.h7
-rw-r--r--src/include/storage/procsignal.h4
-rw-r--r--src/include/storage/reinit.h23
-rw-r--r--src/include/storage/relfilenode.h38
-rw-r--r--src/include/storage/s_lock.h6
-rw-r--r--src/include/storage/shmem.h16
-rw-r--r--src/include/storage/sinval.h22
-rw-r--r--src/include/storage/sinvaladt.h4
-rw-r--r--src/include/storage/smgr.h36
-rw-r--r--src/include/storage/spin.h4
-rw-r--r--src/include/storage/standby.h5
-rw-r--r--src/include/tcop/dest.h4
-rw-r--r--src/include/tcop/fastpath.h4
-rw-r--r--src/include/tcop/pquery.h4
-rw-r--r--src/include/tcop/tcopdebug.h4
-rw-r--r--src/include/tcop/tcopprot.h9
-rw-r--r--src/include/tcop/utility.h4
-rw-r--r--src/include/tsearch/dicts/regis.h4
-rw-r--r--src/include/tsearch/dicts/spell.h30
-rw-r--r--src/include/tsearch/ts_cache.h7
-rw-r--r--src/include/tsearch/ts_locale.h4
-rw-r--r--src/include/tsearch/ts_public.h4
-rw-r--r--src/include/tsearch/ts_type.h4
-rw-r--r--src/include/tsearch/ts_utils.h9
-rw-r--r--src/include/utils/.gitignore3
-rw-r--r--src/include/utils/acl.h11
-rw-r--r--src/include/utils/array.h14
-rw-r--r--src/include/utils/ascii.h4
-rw-r--r--src/include/utils/attoptcache.h4
-rw-r--r--src/include/utils/builtins.h71
-rw-r--r--src/include/utils/bytea.h6
-rw-r--r--src/include/utils/cash.h9
-rw-r--r--src/include/utils/catcache.h4
-rw-r--r--src/include/utils/combocid.h4
-rw-r--r--src/include/utils/date.h6
-rw-r--r--src/include/utils/datetime.h20
-rw-r--r--src/include/utils/datum.h4
-rw-r--r--src/include/utils/dynahash.h4
-rw-r--r--src/include/utils/dynamic_loader.h4
-rw-r--r--src/include/utils/elog.h40
-rw-r--r--src/include/utils/errcodes.h356
-rw-r--r--src/include/utils/fmgrtab.h4
-rw-r--r--src/include/utils/formatting.h11
-rw-r--r--src/include/utils/geo_decls.h8
-rw-r--r--src/include/utils/guc.h102
-rw-r--r--src/include/utils/guc_tables.h39
-rw-r--r--src/include/utils/help_config.h4
-rw-r--r--src/include/utils/hsearch.h5
-rw-r--r--src/include/utils/inet.h4
-rw-r--r--src/include/utils/int8.h4
-rw-r--r--src/include/utils/inval.h6
-rw-r--r--src/include/utils/logtape.h4
-rw-r--r--src/include/utils/lsyscache.h23
-rw-r--r--src/include/utils/memutils.h8
-rw-r--r--src/include/utils/nabstime.h4
-rw-r--r--src/include/utils/numeric.h44
-rw-r--r--src/include/utils/palloc.h4
-rw-r--r--src/include/utils/pg_crc.h4
-rw-r--r--src/include/utils/pg_locale.h51
-rw-r--r--src/include/utils/pg_lzcompress.h2
-rw-r--r--src/include/utils/pg_rusage.h4
-rw-r--r--src/include/utils/plancache.h4
-rw-r--r--src/include/utils/portal.h17
-rw-r--r--src/include/utils/ps_status.h2
-rw-r--r--src/include/utils/rbtree.h68
-rw-r--r--src/include/utils/rel.h87
-rw-r--r--src/include/utils/relcache.h7
-rw-r--r--src/include/utils/relmapper.h4
-rw-r--r--src/include/utils/resowner.h4
-rw-r--r--src/include/utils/selfuncs.h8
-rw-r--r--src/include/utils/snapmgr.h7
-rw-r--r--src/include/utils/snapshot.h4
-rw-r--r--src/include/utils/spccache.h4
-rw-r--r--src/include/utils/syscache.h7
-rw-r--r--src/include/utils/timestamp.h4
-rw-r--r--src/include/utils/tqual.h4
-rw-r--r--src/include/utils/tuplesort.h54
-rw-r--r--src/include/utils/tuplestore.h4
-rw-r--r--src/include/utils/typcache.h45
-rw-r--r--src/include/utils/tzparser.h8
-rw-r--r--src/include/utils/uuid.h4
-rw-r--r--src/include/utils/varbit.h10
-rw-r--r--src/include/utils/xml.h13
-rw-r--r--src/include/windowapi.h4
-rw-r--r--src/interfaces/Makefile8
-rw-r--r--src/interfaces/ecpg/Makefile19
-rw-r--r--src/interfaces/ecpg/README.dynSQL5
-rw-r--r--src/interfaces/ecpg/compatlib/.cvsignore3
-rw-r--r--src/interfaces/ecpg/compatlib/.gitignore5
-rw-r--r--src/interfaces/ecpg/compatlib/Makefile15
-rw-r--r--src/interfaces/ecpg/compatlib/exports.txt2
-rw-r--r--src/interfaces/ecpg/compatlib/informix.c15
-rw-r--r--src/interfaces/ecpg/ecpglib/.cvsignore3
-rw-r--r--src/interfaces/ecpg/ecpglib/.gitignore10
-rw-r--r--src/interfaces/ecpg/ecpglib/Makefile15
-rw-r--r--src/interfaces/ecpg/ecpglib/connect.c15
-rw-r--r--src/interfaces/ecpg/ecpglib/data.c2
-rw-r--r--src/interfaces/ecpg/ecpglib/descriptor.c25
-rw-r--r--src/interfaces/ecpg/ecpglib/error.c2
-rw-r--r--src/interfaces/ecpg/ecpglib/execute.c5
-rw-r--r--src/interfaces/ecpg/ecpglib/exports.txt2
-rw-r--r--src/interfaces/ecpg/ecpglib/extern.h5
-rw-r--r--src/interfaces/ecpg/ecpglib/memory.c3
-rw-r--r--src/interfaces/ecpg/ecpglib/misc.c9
-rw-r--r--src/interfaces/ecpg/ecpglib/nls.mk2
-rw-r--r--src/interfaces/ecpg/ecpglib/pg_type.h4
-rw-r--r--src/interfaces/ecpg/ecpglib/po/fr.po2
-rw-r--r--src/interfaces/ecpg/ecpglib/po/ja.po128
-rw-r--r--src/interfaces/ecpg/ecpglib/po/tr.po120
-rw-r--r--src/interfaces/ecpg/ecpglib/po/zh_CN.po22
-rw-r--r--src/interfaces/ecpg/ecpglib/prepare.c12
-rw-r--r--src/interfaces/ecpg/ecpglib/sqlda.c7
-rw-r--r--src/interfaces/ecpg/ecpglib/typename.c2
-rw-r--r--src/interfaces/ecpg/include/.gitignore2
-rw-r--r--src/interfaces/ecpg/include/datetime.h2
-rw-r--r--src/interfaces/ecpg/include/decimal.h2
-rw-r--r--src/interfaces/ecpg/include/ecpg-pthread-win32.h2
-rw-r--r--src/interfaces/ecpg/include/ecpg_config.h.in1
-rw-r--r--src/interfaces/ecpg/include/ecpg_informix.h2
-rw-r--r--src/interfaces/ecpg/include/ecpgerrno.h2
-rw-r--r--src/interfaces/ecpg/include/ecpglib.h4
-rw-r--r--src/interfaces/ecpg/include/ecpgtype.h2
-rw-r--r--src/interfaces/ecpg/include/pgtypes_date.h2
-rw-r--r--src/interfaces/ecpg/include/pgtypes_error.h2
-rw-r--r--src/interfaces/ecpg/include/pgtypes_interval.h2
-rw-r--r--src/interfaces/ecpg/include/pgtypes_timestamp.h2
-rw-r--r--src/interfaces/ecpg/include/sqlda-native.h2
-rw-r--r--src/interfaces/ecpg/pgtypeslib/.cvsignore3
-rw-r--r--src/interfaces/ecpg/pgtypeslib/.gitignore7
-rw-r--r--src/interfaces/ecpg/pgtypeslib/Makefile6
-rw-r--r--src/interfaces/ecpg/pgtypeslib/common.c2
-rw-r--r--src/interfaces/ecpg/pgtypeslib/datetime.c2
-rw-r--r--src/interfaces/ecpg/pgtypeslib/dt.h2
-rw-r--r--src/interfaces/ecpg/pgtypeslib/dt_common.c33
-rw-r--r--src/interfaces/ecpg/pgtypeslib/exports.txt2
-rw-r--r--src/interfaces/ecpg/pgtypeslib/extern.h2
-rw-r--r--src/interfaces/ecpg/pgtypeslib/interval.c4
-rw-r--r--src/interfaces/ecpg/pgtypeslib/numeric.c9
-rw-r--r--src/interfaces/ecpg/pgtypeslib/timestamp.c44
-rw-r--r--src/interfaces/ecpg/preproc/.cvsignore4
-rw-r--r--src/interfaces/ecpg/preproc/.gitignore7
-rw-r--r--src/interfaces/ecpg/preproc/Makefile17
-rw-r--r--src/interfaces/ecpg/preproc/README.parser5
-rw-r--r--src/interfaces/ecpg/preproc/c_keywords.c2
-rw-r--r--[-rwxr-xr-x]src/interfaces/ecpg/preproc/check_rules.pl205
-rw-r--r--src/interfaces/ecpg/preproc/descriptor.c6
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.addons108
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.c12
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.header46
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.tokens7
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.trailer597
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.type5
-rw-r--r--src/interfaces/ecpg/preproc/ecpg_keywords.c2
-rw-r--r--src/interfaces/ecpg/preproc/extern.h17
-rw-r--r--src/interfaces/ecpg/preproc/keywords.c4
-rw-r--r--src/interfaces/ecpg/preproc/nls.mk4
-rw-r--r--src/interfaces/ecpg/preproc/output.c2
-rw-r--r--src/interfaces/ecpg/preproc/parse.pl24
-rw-r--r--src/interfaces/ecpg/preproc/parse2.pl648
-rw-r--r--src/interfaces/ecpg/preproc/parser.c4
-rw-r--r--src/interfaces/ecpg/preproc/pgc.l50
-rw-r--r--src/interfaces/ecpg/preproc/po/es.po264
-rw-r--r--src/interfaces/ecpg/preproc/po/ja.po262
-rw-r--r--src/interfaces/ecpg/preproc/po/ko.po592
-rw-r--r--src/interfaces/ecpg/preproc/po/pt_BR.po149
-rw-r--r--src/interfaces/ecpg/preproc/po/tr.po337
-rw-r--r--src/interfaces/ecpg/preproc/po/zh_CN.po342
-rw-r--r--src/interfaces/ecpg/preproc/po/zh_TW.po646
-rw-r--r--src/interfaces/ecpg/preproc/type.c22
-rw-r--r--src/interfaces/ecpg/preproc/type.h2
-rw-r--r--src/interfaces/ecpg/preproc/variable.c22
-rw-r--r--src/interfaces/ecpg/test/.gitignore5
-rw-r--r--src/interfaces/ecpg/test/Makefile22
-rw-r--r--src/interfaces/ecpg/test/Makefile.regress7
-rw-r--r--src/interfaces/ecpg/test/compat_informix/.gitignore18
-rw-r--r--src/interfaces/ecpg/test/compat_informix/dec_test.pgc4
-rw-r--r--src/interfaces/ecpg/test/compat_informix/describe.pgc2
-rw-r--r--src/interfaces/ecpg/test/compat_informix/sqlda.pgc2
-rw-r--r--src/interfaces/ecpg/test/compat_informix/test_informix.pgc3
-rw-r--r--src/interfaces/ecpg/test/compat_informix/test_informix2.pgc6
-rw-r--r--src/interfaces/ecpg/test/connect/.gitignore10
-rw-r--r--src/interfaces/ecpg/test/connect/Makefile1
-rw-r--r--src/interfaces/ecpg/test/connect/README2
-rw-r--r--src/interfaces/ecpg/test/ecpg_schedule_tcp1
-rw-r--r--[-rwxr-xr-x]src/interfaces/ecpg/test/expected/compat_informix-dec_test-MinGW32.stdout0
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-dec_test.c4
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-describe.c2
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-sqlda.c2
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-test_informix.c3
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-test_informix2.c4
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.c22
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stderr2
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.c3
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.c10
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stderr2
-rw-r--r--[-rwxr-xr-x]src/interfaces/ecpg/test/expected/pgtypeslib-num_test-MinGW32.stdout0
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-num_test.c12
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stderr2
-rw-r--r--[-rwxr-xr-x]src/interfaces/ecpg/test/expected/pgtypeslib-num_test2-MinGW32.stdout0
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.c7
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-array_of_struct.c4
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-comment.c1
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-cursor.c2
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-init.c4
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-outofscope.c27
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-variable.c2
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-whenever.c2
-rw-r--r--src/interfaces/ecpg/test/expected/sql-array.c6
-rw-r--r--src/interfaces/ecpg/test/expected/sql-code100.c10
-rw-r--r--src/interfaces/ecpg/test/expected/sql-describe.c2
-rw-r--r--src/interfaces/ecpg/test/expected/sql-dynalloc.c16
-rw-r--r--src/interfaces/ecpg/test/expected/sql-dynalloc2.c4
-rw-r--r--src/interfaces/ecpg/test/expected/sql-fetch.c2
-rw-r--r--src/interfaces/ecpg/test/expected/sql-fetch.stderr6
-rw-r--r--src/interfaces/ecpg/test/expected/sql-quote.c101
-rw-r--r--src/interfaces/ecpg/test/expected/sql-quote.stderr112
-rw-r--r--src/interfaces/ecpg/test/expected/sql-quote.stdout1
-rw-r--r--src/interfaces/ecpg/test/expected/sql-sqlda.c2
-rw-r--r--src/interfaces/ecpg/test/expected/thread-alloc.c1
-rw-r--r--src/interfaces/ecpg/test/expected/thread-prep.c1
-rw-r--r--src/interfaces/ecpg/test/pg_regress_ecpg.c4
-rw-r--r--src/interfaces/ecpg/test/pgtypeslib/.gitignore10
-rw-r--r--src/interfaces/ecpg/test/pgtypeslib/Makefile1
-rw-r--r--src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc14
-rw-r--r--src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc3
-rw-r--r--src/interfaces/ecpg/test/pgtypeslib/nan_test.pgc2
-rw-r--r--src/interfaces/ecpg/test/pgtypeslib/num_test.pgc4
-rw-r--r--src/interfaces/ecpg/test/pgtypeslib/num_test2.pgc7
-rw-r--r--src/interfaces/ecpg/test/preproc/.gitignore22
-rw-r--r--src/interfaces/ecpg/test/preproc/array_of_struct.pgc2
-rw-r--r--src/interfaces/ecpg/test/preproc/comment.pgc1
-rw-r--r--src/interfaces/ecpg/test/preproc/cursor.pgc2
-rw-r--r--src/interfaces/ecpg/test/preproc/init.pgc4
-rw-r--r--src/interfaces/ecpg/test/preproc/outofscope.pgc2
-rw-r--r--src/interfaces/ecpg/test/preproc/struct.h1
-rw-r--r--src/interfaces/ecpg/test/preproc/variable.pgc2
-rw-r--r--src/interfaces/ecpg/test/preproc/whenever.pgc2
-rw-r--r--src/interfaces/ecpg/test/resultmap3
-rw-r--r--src/interfaces/ecpg/test/sql/.gitignore40
-rw-r--r--src/interfaces/ecpg/test/sql/Makefile3
-rw-r--r--src/interfaces/ecpg/test/sql/array.pgc6
-rw-r--r--src/interfaces/ecpg/test/sql/code100.pgc12
-rw-r--r--src/interfaces/ecpg/test/sql/describe.pgc2
-rw-r--r--src/interfaces/ecpg/test/sql/dynalloc.pgc16
-rw-r--r--src/interfaces/ecpg/test/sql/dynalloc2.pgc4
-rw-r--r--src/interfaces/ecpg/test/sql/fetch.pgc2
-rw-r--r--src/interfaces/ecpg/test/sql/quote.pgc5
-rw-r--r--src/interfaces/ecpg/test/sql/sqlda.pgc2
-rw-r--r--src/interfaces/ecpg/test/thread/.gitignore10
-rw-r--r--src/interfaces/ecpg/test/thread/Makefile1
-rw-r--r--src/interfaces/ecpg/test/thread/alloc.pgc1
-rw-r--r--src/interfaces/ecpg/test/thread/prep.pgc1
-rw-r--r--src/interfaces/libpq/.cvsignore4
-rw-r--r--src/interfaces/libpq/.gitignore22
-rw-r--r--src/interfaces/libpq/Makefile47
-rw-r--r--src/interfaces/libpq/README2
-rw-r--r--src/interfaces/libpq/bcc32.mak8
-rw-r--r--src/interfaces/libpq/exports.txt5
-rw-r--r--src/interfaces/libpq/fe-auth.c89
-rw-r--r--src/interfaces/libpq/fe-auth.h4
-rw-r--r--src/interfaces/libpq/fe-connect.c333
-rw-r--r--src/interfaces/libpq/fe-exec.c43
-rw-r--r--src/interfaces/libpq/fe-lobj.c4
-rw-r--r--src/interfaces/libpq/fe-misc.c12
-rw-r--r--src/interfaces/libpq/fe-print.c4
-rw-r--r--src/interfaces/libpq/fe-protocol2.c69
-rw-r--r--src/interfaces/libpq/fe-protocol3.c35
-rw-r--r--src/interfaces/libpq/fe-secure.c72
-rw-r--r--src/interfaces/libpq/libpq-events.c4
-rw-r--r--src/interfaces/libpq/libpq-events.h4
-rw-r--r--src/interfaces/libpq/libpq-fe.h21
-rw-r--r--src/interfaces/libpq/libpq-int.h23
-rw-r--r--src/interfaces/libpq/libpq.rc.in10
-rw-r--r--src/interfaces/libpq/nls.mk4
-rw-r--r--src/interfaces/libpq/pg_service.conf.sample4
-rw-r--r--src/interfaces/libpq/po/cs.po2
-rw-r--r--src/interfaces/libpq/po/de.po360
-rw-r--r--src/interfaces/libpq/po/es.po350
-rw-r--r--src/interfaces/libpq/po/fr.po284
-rw-r--r--src/interfaces/libpq/po/ja.po324
-rw-r--r--src/interfaces/libpq/po/ko.po437
-rw-r--r--src/interfaces/libpq/po/pt_BR.po222
-rw-r--r--src/interfaces/libpq/po/ru.po947
-rw-r--r--src/interfaces/libpq/po/sv.po218
-rw-r--r--src/interfaces/libpq/po/tr.po416
-rw-r--r--src/interfaces/libpq/po/zh_CN.po726
-rw-r--r--src/interfaces/libpq/po/zh_TW.po1075
-rw-r--r--src/interfaces/libpq/pqexpbuffer.c4
-rw-r--r--src/interfaces/libpq/pqexpbuffer.h8
-rw-r--r--src/interfaces/libpq/pqsignal.c9
-rw-r--r--src/interfaces/libpq/pqsignal.h6
-rw-r--r--src/interfaces/libpq/pthread-win32.c4
-rw-r--r--src/interfaces/libpq/win32.c4
-rw-r--r--src/interfaces/libpq/win32.h2
-rw-r--r--src/interfaces/libpq/win32.mak10
-rw-r--r--src/makefiles/Makefile2
-rw-r--r--src/makefiles/Makefile.cygwin2
-rw-r--r--src/makefiles/Makefile.darwin2
-rw-r--r--src/makefiles/Makefile.irix2
-rw-r--r--src/makefiles/Makefile.solaris2
-rw-r--r--src/makefiles/Makefile.win322
-rw-r--r--src/makefiles/pgxs.mk86
-rw-r--r--src/nls-global.mk14
-rw-r--r--src/pl/Makefile12
-rw-r--r--src/pl/plperl/.gitignore9
-rw-r--r--src/pl/plperl/GNUmakefile36
-rw-r--r--src/pl/plperl/README2
-rw-r--r--src/pl/plperl/SPI.xs72
-rw-r--r--src/pl/plperl/Util.xs113
-rw-r--r--src/pl/plperl/expected/plperl.out124
-rw-r--r--src/pl/plperl/expected/plperl_array.out222
-rw-r--r--src/pl/plperl/expected/plperl_plperlu.out2
-rw-r--r--src/pl/plperl/expected/plperl_shared.out19
-rw-r--r--src/pl/plperl/expected/plperl_trigger.out249
-rw-r--r--src/pl/plperl/expected/plperl_util.out18
-rw-r--r--src/pl/plperl/nls.mk4
-rw-r--r--src/pl/plperl/plc_perlboot.pl92
-rw-r--r--src/pl/plperl/plc_trusted.pl6
-rw-r--r--src/pl/plperl/plperl--1.0.sql9
-rw-r--r--src/pl/plperl/plperl--unpackaged--1.0.sql7
-rw-r--r--src/pl/plperl/plperl.c1528
-rw-r--r--src/pl/plperl/plperl.control7
-rw-r--r--src/pl/plperl/plperl.h53
-rw-r--r--src/pl/plperl/plperl_helpers.h71
-rw-r--r--src/pl/plperl/plperlu--1.0.sql9
-rw-r--r--src/pl/plperl/plperlu--unpackaged--1.0.sql7
-rw-r--r--src/pl/plperl/plperlu.control7
-rw-r--r--src/pl/plperl/po/de.po91
-rw-r--r--src/pl/plperl/po/es.po84
-rw-r--r--src/pl/plperl/po/fr.po2
-rw-r--r--src/pl/plperl/po/ja.po130
-rw-r--r--src/pl/plperl/po/pt_BR.po126
-rw-r--r--src/pl/plperl/po/ro.po162
-rw-r--r--src/pl/plperl/po/tr.po129
-rw-r--r--src/pl/plperl/po/zh_CN.po157
-rw-r--r--src/pl/plperl/po/zh_TW.po176
-rw-r--r--src/pl/plperl/sql/plperl.sql54
-rw-r--r--src/pl/plperl/sql/plperl_array.sql164
-rw-r--r--src/pl/plperl/sql/plperl_plperlu.sql4
-rw-r--r--src/pl/plperl/sql/plperl_shared.sql11
-rw-r--r--src/pl/plperl/sql/plperl_trigger.sql144
-rw-r--r--src/pl/plperl/sql/plperl_util.sql12
-rw-r--r--src/pl/plperl/text2macro.pl5
-rw-r--r--src/pl/plpgsql/Makefile2
-rw-r--r--src/pl/plpgsql/src/.cvsignore2
-rw-r--r--src/pl/plpgsql/src/.gitignore3
-rw-r--r--src/pl/plpgsql/src/Makefile31
-rw-r--r--src/pl/plpgsql/src/generate-plerrcodes.pl40
-rw-r--r--src/pl/plpgsql/src/gram.y194
-rw-r--r--src/pl/plpgsql/src/nls.mk4
-rw-r--r--src/pl/plpgsql/src/pl_comp.c193
-rw-r--r--src/pl/plpgsql/src/pl_exec.c534
-rw-r--r--src/pl/plpgsql/src/pl_funcs.c425
-rw-r--r--src/pl/plpgsql/src/pl_handler.c16
-rw-r--r--src/pl/plpgsql/src/pl_scanner.c21
-rw-r--r--src/pl/plpgsql/src/plerrcodes.h784
-rw-r--r--src/pl/plpgsql/src/plpgsql--1.0.sql9
-rw-r--r--src/pl/plpgsql/src/plpgsql--unpackaged--1.0.sql7
-rw-r--r--src/pl/plpgsql/src/plpgsql.control7
-rw-r--r--src/pl/plpgsql/src/plpgsql.h49
-rw-r--r--src/pl/plpgsql/src/po/de.po375
-rw-r--r--src/pl/plpgsql/src/po/es.po327
-rw-r--r--src/pl/plpgsql/src/po/fr.po2
-rw-r--r--src/pl/plpgsql/src/po/ja.po485
-rw-r--r--src/pl/plpgsql/src/po/ko.po723
-rw-r--r--src/pl/plpgsql/src/po/pt_BR.po669
-rw-r--r--src/pl/plpgsql/src/po/ro.po703
-rw-r--r--src/pl/plpgsql/src/po/zh_CN.po743
-rw-r--r--src/pl/plpgsql/src/po/zh_TW.po789
-rw-r--r--src/pl/plpython/.gitignore5
-rw-r--r--src/pl/plpython/Makefile66
-rw-r--r--src/pl/plpython/expected/README16
-rw-r--r--src/pl/plpython/expected/plpython_composite.out361
-rw-r--r--src/pl/plpython/expected/plpython_do.out7
-rw-r--r--src/pl/plpython/expected/plpython_drop.out3
-rw-r--r--src/pl/plpython/expected/plpython_error.out300
-rw-r--r--src/pl/plpython/expected/plpython_error_0.out381
-rw-r--r--src/pl/plpython/expected/plpython_newline.out2
-rw-r--r--src/pl/plpython/expected/plpython_quote.out56
-rw-r--r--src/pl/plpython/expected/plpython_record.out10
-rw-r--r--src/pl/plpython/expected/plpython_schema.out2
-rw-r--r--src/pl/plpython/expected/plpython_setof.out17
-rw-r--r--src/pl/plpython/expected/plpython_spi.out1
-rw-r--r--src/pl/plpython/expected/plpython_subtransaction.out411
-rw-r--r--src/pl/plpython/expected/plpython_subtransaction_0.out384
-rw-r--r--src/pl/plpython/expected/plpython_subtransaction_5.out384
-rw-r--r--src/pl/plpython/expected/plpython_test.out22
-rw-r--r--src/pl/plpython/expected/plpython_trigger.out124
-rw-r--r--src/pl/plpython/expected/plpython_types.out63
-rw-r--r--src/pl/plpython/expected/plpython_types_3.out63
-rw-r--r--src/pl/plpython/expected/plpython_unicode.out1
-rw-r--r--src/pl/plpython/expected/plpython_unicode_0.out50
-rw-r--r--src/pl/plpython/expected/plpython_unicode_2.out52
-rw-r--r--src/pl/plpython/expected/plpython_unicode_3.out14
-rw-r--r--src/pl/plpython/generate-spiexceptions.pl44
-rw-r--r--src/pl/plpython/nls.mk4
-rw-r--r--src/pl/plpython/plpython.c1907
-rw-r--r--src/pl/plpython/plpython2u--1.0.sql9
-rw-r--r--src/pl/plpython/plpython2u--unpackaged--1.0.sql7
-rw-r--r--src/pl/plpython/plpython2u.control7
-rw-r--r--src/pl/plpython/plpython3u--1.0.sql9
-rw-r--r--src/pl/plpython/plpython3u--unpackaged--1.0.sql7
-rw-r--r--src/pl/plpython/plpython3u.control7
-rw-r--r--src/pl/plpython/plpythonu--1.0.sql9
-rw-r--r--src/pl/plpython/plpythonu--unpackaged--1.0.sql7
-rw-r--r--src/pl/plpython/plpythonu.control7
-rw-r--r--src/pl/plpython/po/de.po228
-rw-r--r--src/pl/plpython/po/es.po170
-rw-r--r--src/pl/plpython/po/fr.po166
-rw-r--r--src/pl/plpython/po/ja.po224
-rw-r--r--src/pl/plpython/po/pt_BR.po265
-rw-r--r--src/pl/plpython/po/ro.po312
-rw-r--r--src/pl/plpython/po/tr.po245
-rw-r--r--src/pl/plpython/po/zh_CN.po337
-rw-r--r--src/pl/plpython/po/zh_TW.po314
-rw-r--r--src/pl/plpython/sql/plpython_composite.sql168
-rw-r--r--src/pl/plpython/sql/plpython_drop.sql4
-rw-r--r--src/pl/plpython/sql/plpython_error.sql171
-rw-r--r--src/pl/plpython/sql/plpython_newline.sql2
-rw-r--r--src/pl/plpython/sql/plpython_populate.sql3
-rw-r--r--src/pl/plpython/sql/plpython_quote.sql33
-rw-r--r--src/pl/plpython/sql/plpython_record.sql4
-rw-r--r--src/pl/plpython/sql/plpython_schema.sql3
-rw-r--r--src/pl/plpython/sql/plpython_setof.sql11
-rw-r--r--src/pl/plpython/sql/plpython_spi.sql2
-rw-r--r--src/pl/plpython/sql/plpython_subtransaction.sql244
-rw-r--r--src/pl/plpython/sql/plpython_test.sql13
-rw-r--r--src/pl/plpython/sql/plpython_trigger.sql62
-rw-r--r--src/pl/plpython/sql/plpython_types.sql43
-rw-r--r--src/pl/plpython/sql/plpython_unicode.sql2
-rw-r--r--src/pl/tcl/.gitignore4
-rw-r--r--src/pl/tcl/Makefile33
-rw-r--r--src/pl/tcl/expected/pltcl_queries.out37
-rw-r--r--src/pl/tcl/expected/pltcl_queries_1.out37
-rw-r--r--src/pl/tcl/expected/pltcl_setup.out14
-rw-r--r--src/pl/tcl/modules/.gitignore3
-rw-r--r--src/pl/tcl/modules/Makefile2
-rw-r--r--src/pl/tcl/modules/README3
-rw-r--r--src/pl/tcl/modules/pltcl_delmod.in2
-rw-r--r--src/pl/tcl/modules/pltcl_listmod.in2
-rw-r--r--src/pl/tcl/modules/unknown.pltcl2
-rw-r--r--src/pl/tcl/nls.mk4
-rw-r--r--src/pl/tcl/pltcl--1.0.sql9
-rw-r--r--src/pl/tcl/pltcl--unpackaged--1.0.sql5
-rw-r--r--src/pl/tcl/pltcl.c353
-rw-r--r--src/pl/tcl/pltcl.control7
-rw-r--r--src/pl/tcl/pltclu--1.0.sql9
-rw-r--r--src/pl/tcl/pltclu--unpackaged--1.0.sql5
-rw-r--r--src/pl/tcl/pltclu.control7
-rw-r--r--src/pl/tcl/po/fr.po2
-rw-r--r--src/pl/tcl/po/ja.po21
-rw-r--r--src/pl/tcl/po/ro.po55
-rw-r--r--src/pl/tcl/po/zh_CN.po53
-rw-r--r--src/pl/tcl/po/zh_TW.po56
-rw-r--r--src/pl/tcl/sql/pltcl_queries.sql9
-rw-r--r--src/pl/tcl/sql/pltcl_setup.sql15
-rw-r--r--src/port/.gitignore3
-rw-r--r--src/port/Makefile21
-rw-r--r--src/port/README3
-rw-r--r--src/port/chklocale.c27
-rw-r--r--src/port/crypt.c4
-rw-r--r--src/port/dirent.c9
-rw-r--r--src/port/dirmod.c126
-rw-r--r--src/port/erand48.c2
-rw-r--r--src/port/exec.c7
-rw-r--r--src/port/fseeko.c4
-rw-r--r--src/port/getaddrinfo.c19
-rw-r--r--src/port/gethostname.c4
-rw-r--r--src/port/getopt.c29
-rw-r--r--src/port/getopt_long.c22
-rw-r--r--src/port/getpeereid.c80
-rw-r--r--src/port/getrusage.c4
-rw-r--r--src/port/gettimeofday.c2
-rw-r--r--src/port/inet_aton.c2
-rw-r--r--src/port/inet_net_ntop.c298
-rw-r--r--src/port/isinf.c4
-rw-r--r--src/port/kill.c4
-rw-r--r--src/port/memcmp.c4
-rw-r--r--src/port/noblock.c8
-rw-r--r--src/port/open.c4
-rw-r--r--src/port/path.c54
-rw-r--r--src/port/pgcheckdir.c73
-rw-r--r--src/port/pgmkdirp.c148
-rw-r--r--src/port/pgsleep.c4
-rw-r--r--src/port/pgstrcasecmp.c30
-rw-r--r--src/port/pthread-win32.h2
-rw-r--r--src/port/qsort.c2
-rw-r--r--src/port/qsort_arg.c2
-rw-r--r--src/port/random.c4
-rw-r--r--src/port/rint.c2
-rw-r--r--src/port/snprintf.c52
-rw-r--r--src/port/sprompt.c4
-rw-r--r--src/port/srandom.c4
-rw-r--r--src/port/strdup.c4
-rw-r--r--src/port/strerror.c2
-rw-r--r--src/port/strlcat.c2
-rw-r--r--src/port/strlcpy.c4
-rw-r--r--src/port/strtol.c4
-rw-r--r--src/port/strtoul.c2
-rw-r--r--src/port/thread.c4
-rw-r--r--src/port/unsetenv.c7
-rw-r--r--src/port/win32env.c9
-rw-r--r--src/port/win32error.c8
-rw-r--r--src/port/win32ver.rc6
-rw-r--r--src/template/cygwin2
-rw-r--r--src/template/darwin6
-rw-r--r--src/template/dgux4
-rw-r--r--src/template/freebsd2
-rw-r--r--src/template/hpux2
-rw-r--r--src/template/linux2
-rw-r--r--src/template/netbsd3
-rw-r--r--src/template/nextstep2
-rw-r--r--src/template/osf2
-rw-r--r--src/template/sco1
-rw-r--r--src/test/Makefile2
-rw-r--r--src/test/examples/Makefile2
-rw-r--r--src/test/examples/testlibpq.c2
-rw-r--r--src/test/examples/testlibpq2.c2
-rw-r--r--src/test/examples/testlibpq3.c2
-rw-r--r--src/test/examples/testlibpq4.c8
-rw-r--r--src/test/examples/testlo.c4
-rw-r--r--src/test/isolation/.gitignore12
-rw-r--r--src/test/isolation/Makefile84
-rw-r--r--src/test/isolation/README65
-rw-r--r--src/test/isolation/expected/classroom-scheduling.out299
-rw-r--r--src/test/isolation/expected/multiple-row-versions.out24
-rw-r--r--src/test/isolation/expected/partial-index.out641
-rw-r--r--src/test/isolation/expected/project-manager.out299
-rw-r--r--src/test/isolation/expected/receipt-report.out3379
-rw-r--r--src/test/isolation/expected/referential-integrity.out629
-rw-r--r--src/test/isolation/expected/ri-trigger.out111
-rw-r--r--src/test/isolation/expected/simple-write-skew.out41
-rw-r--r--src/test/isolation/expected/temporal-range-integrity.out299
-rw-r--r--src/test/isolation/expected/total-cash.out281
-rw-r--r--src/test/isolation/expected/two-ids.out1007
-rw-r--r--src/test/isolation/isolation_main.c89
-rw-r--r--src/test/isolation/isolation_schedule11
-rw-r--r--src/test/isolation/isolationtester.c374
-rw-r--r--src/test/isolation/isolationtester.h59
-rw-r--r--src/test/isolation/specparse.y185
-rw-r--r--src/test/isolation/specs/classroom-scheduling.spec29
-rw-r--r--src/test/isolation/specs/multiple-row-versions.spec47
-rw-r--r--src/test/isolation/specs/partial-index.spec32
-rw-r--r--src/test/isolation/specs/project-manager.spec30
-rw-r--r--src/test/isolation/specs/receipt-report.spec47
-rw-r--r--src/test/isolation/specs/referential-integrity.spec32
-rw-r--r--src/test/isolation/specs/ri-trigger.spec53
-rw-r--r--src/test/isolation/specs/simple-write-skew.spec30
-rw-r--r--src/test/isolation/specs/temporal-range-integrity.spec38
-rw-r--r--src/test/isolation/specs/total-cash.spec28
-rw-r--r--src/test/isolation/specs/two-ids.spec40
-rw-r--r--src/test/isolation/specscanner.l111
-rw-r--r--src/test/locale/Makefile4
-rw-r--r--src/test/locale/README4
-rw-r--r--src/test/locale/de_DE.ISO8859-1/Makefile6
-rw-r--r--src/test/locale/de_DE.ISO8859-1/README2
-rw-r--r--src/test/locale/de_DE.ISO8859-1/test-de-sort.in2
-rw-r--r--src/test/locale/gr_GR.ISO8859-7/Makefile6
-rw-r--r--src/test/locale/gr_GR.ISO8859-7/README2
-rw-r--r--src/test/locale/koi8-r/Makefile6
-rw-r--r--src/test/locale/koi8-to-win1251/Makefile6
-rw-r--r--src/test/locale/koi8-to-win1251/README2
-rw-r--r--src/test/locale/test-ctype.c2
-rw-r--r--src/test/mb/README2
-rw-r--r--src/test/mb/mbregress.sh4
-rwxr-xr-xsrc/test/performance/runtests.pl17
-rw-r--r--src/test/performance/sqls/connection1
-rw-r--r--src/test/performance/sqls/crtsimple1
-rw-r--r--src/test/performance/sqls/crtsimpleidx1
-rw-r--r--src/test/performance/sqls/drpsimple1
-rw-r--r--src/test/performance/sqls/inssimple4
-rw-r--r--src/test/performance/sqls/orbsimple1
-rw-r--r--src/test/performance/sqls/slcsimple1
-rw-r--r--src/test/performance/sqls/vacuum1
-rw-r--r--src/test/regress/.gitignore7
-rw-r--r--src/test/regress/GNUmakefile58
-rw-r--r--src/test/regress/data/array.data3
-rw-r--r--src/test/regress/expected/.gitignore3
-rw-r--r--src/test/regress/expected/abstime.out6
-rw-r--r--src/test/regress/expected/advisory_lock.out275
-rw-r--r--src/test/regress/expected/aggregates.out257
-rw-r--r--src/test/regress/expected/alter_table.out462
-rw-r--r--src/test/regress/expected/arrays.out382
-rw-r--r--src/test/regress/expected/bit.out2
-rw-r--r--src/test/regress/expected/bit_1.out2
-rw-r--r--src/test/regress/expected/bitmapops.out2
-rw-r--r--src/test/regress/expected/boolean.out12
-rw-r--r--src/test/regress/expected/box.out36
-rw-r--r--src/test/regress/expected/box_1.out36
-rw-r--r--src/test/regress/expected/char.out6
-rw-r--r--src/test/regress/expected/char_1.out6
-rw-r--r--src/test/regress/expected/char_2.out6
-rw-r--r--src/test/regress/expected/cluster.out2
-rw-r--r--src/test/regress/expected/cluster_1.out2
-rw-r--r--src/test/regress/expected/collate.linux.utf8.out1050
-rw-r--r--src/test/regress/expected/collate.out598
-rw-r--r--src/test/regress/expected/copy2.out6
-rw-r--r--src/test/regress/expected/copy2_1.out6
-rw-r--r--src/test/regress/expected/copyselect.out2
-rw-r--r--src/test/regress/expected/copyselect_1.out2
-rw-r--r--src/test/regress/expected/create_aggregate.out4
-rw-r--r--src/test/regress/expected/create_index.out616
-rw-r--r--src/test/regress/expected/create_misc.out22
-rw-r--r--src/test/regress/expected/create_misc_1.out (renamed from src/test/regress/output/create_misc_1.source)4
-rw-r--r--src/test/regress/expected/create_operator.out16
-rw-r--r--src/test/regress/expected/create_table.out18
-rw-r--r--src/test/regress/expected/create_table_1.out18
-rw-r--r--src/test/regress/expected/create_type.out14
-rw-r--r--src/test/regress/expected/create_type_1.out14
-rw-r--r--src/test/regress/expected/create_view.out12
-rw-r--r--src/test/regress/expected/create_view_1.out12
-rw-r--r--src/test/regress/expected/delete.out23
-rw-r--r--src/test/regress/expected/delete_1.out22
-rw-r--r--src/test/regress/expected/dependency.out8
-rw-r--r--src/test/regress/expected/dependency_1.out2
-rw-r--r--src/test/regress/expected/domain.out141
-rw-r--r--src/test/regress/expected/domain_1.out159
-rw-r--r--src/test/regress/expected/drop_if_exists.out4
-rw-r--r--src/test/regress/expected/enum.out153
-rw-r--r--src/test/regress/expected/errors.out188
-rw-r--r--src/test/regress/expected/float4-exp-three-digits.out4
-rw-r--r--src/test/regress/expected/float4.out2
-rw-r--r--src/test/regress/expected/float4_1.out2
-rw-r--r--src/test/regress/expected/float8-exp-three-digits-win32.out18
-rw-r--r--src/test/regress/expected/float8-small-is-zero.out18
-rw-r--r--src/test/regress/expected/float8-small-is-zero_1.out18
-rw-r--r--src/test/regress/expected/float8.out14
-rw-r--r--src/test/regress/expected/float8_1.out14
-rw-r--r--src/test/regress/expected/foreign_data.out333
-rw-r--r--src/test/regress/expected/foreign_key.out20
-rw-r--r--src/test/regress/expected/foreign_key_1.out20
-rw-r--r--src/test/regress/expected/functional_deps.out241
-rw-r--r--src/test/regress/expected/functional_deps_1.out240
-rw-r--r--src/test/regress/expected/guc.out5
-rw-r--r--src/test/regress/expected/guc_1.out5
-rw-r--r--src/test/regress/expected/hash_index.out16
-rw-r--r--src/test/regress/expected/hash_index_1.out16
-rw-r--r--src/test/regress/expected/horology.out13
-rw-r--r--src/test/regress/expected/inet.out2
-rw-r--r--src/test/regress/expected/inet_1.out2
-rw-r--r--src/test/regress/expected/inherit.out97
-rw-r--r--src/test/regress/expected/insert.out17
-rw-r--r--src/test/regress/expected/int2.out15
-rw-r--r--src/test/regress/expected/int4.out15
-rw-r--r--src/test/regress/expected/int4_1.out15
-rw-r--r--src/test/regress/expected/int8-exp-three-digits.out35
-rw-r--r--src/test/regress/expected/int8.out13
-rw-r--r--src/test/regress/expected/interval.out12
-rw-r--r--src/test/regress/expected/join.out103
-rw-r--r--src/test/regress/expected/limit.out28
-rw-r--r--src/test/regress/expected/money.out63
-rw-r--r--src/test/regress/expected/money_1.out63
-rw-r--r--src/test/regress/expected/oid.out2
-rw-r--r--src/test/regress/expected/oidjoins.out922
-rw-r--r--src/test/regress/expected/opr_sanity.out186
-rw-r--r--src/test/regress/expected/plancache.out4
-rw-r--r--src/test/regress/expected/plancache_1.out20
-rw-r--r--src/test/regress/expected/plpgsql.out369
-rw-r--r--src/test/regress/expected/point.out6
-rw-r--r--src/test/regress/expected/point_1.out6
-rw-r--r--src/test/regress/expected/polygon.out50
-rw-r--r--src/test/regress/expected/polymorphism.out3
-rw-r--r--src/test/regress/expected/polymorphism_1.out3
-rw-r--r--src/test/regress/expected/portals.out16
-rw-r--r--src/test/regress/expected/portals_p2.out26
-rw-r--r--src/test/regress/expected/prepared_xacts.out12
-rw-r--r--src/test/regress/expected/prepared_xacts_1.out12
-rw-r--r--src/test/regress/expected/rangefuncs.out26
-rw-r--r--src/test/regress/expected/rowtypes.out94
-rw-r--r--src/test/regress/expected/rowtypes_1.out97
-rw-r--r--src/test/regress/expected/rules.out139
-rw-r--r--src/test/regress/expected/sanity_check.out6
-rw-r--r--src/test/regress/expected/select.out13
-rw-r--r--src/test/regress/expected/select_1.out13
-rw-r--r--src/test/regress/expected/select_implicit.out20
-rw-r--r--src/test/regress/expected/select_implicit_1.out20
-rw-r--r--src/test/regress/expected/select_implicit_2.out20
-rw-r--r--src/test/regress/expected/sequence.out10
-rw-r--r--src/test/regress/expected/sequence_1.out11
-rw-r--r--src/test/regress/expected/sequence_2.out10
-rw-r--r--src/test/regress/expected/subselect.out13
-rw-r--r--src/test/regress/expected/text.out190
-rw-r--r--src/test/regress/expected/timestamptz.out7
-rw-r--r--src/test/regress/expected/tinterval.out4
-rw-r--r--src/test/regress/expected/transactions.out79
-rw-r--r--src/test/regress/expected/transactions_1.out78
-rw-r--r--src/test/regress/expected/triggers.out707
-rw-r--r--src/test/regress/expected/triggers_1.out543
-rw-r--r--src/test/regress/expected/truncate.out26
-rw-r--r--src/test/regress/expected/truncate_1.out26
-rw-r--r--src/test/regress/expected/tsdicts.out12
-rw-r--r--src/test/regress/expected/type_sanity.out13
-rw-r--r--src/test/regress/expected/typed_table.out28
-rw-r--r--src/test/regress/expected/typed_table_1.out19
-rw-r--r--src/test/regress/expected/update.out9
-rw-r--r--src/test/regress/expected/update_1.out9
-rw-r--r--src/test/regress/expected/varchar.out6
-rw-r--r--src/test/regress/expected/varchar_1.out6
-rw-r--r--src/test/regress/expected/varchar_2.out6
-rw-r--r--src/test/regress/expected/window.out4
-rw-r--r--src/test/regress/expected/with.out808
-rw-r--r--src/test/regress/expected/with_1.out386
-rw-r--r--src/test/regress/expected/xc_distkey.out2
-rw-r--r--src/test/regress/expected/xml.out184
-rw-r--r--src/test/regress/expected/xml_1.out176
-rw-r--r--src/test/regress/input/constraints.source3
-rw-r--r--src/test/regress/input/copy.source5
-rw-r--r--src/test/regress/input/create_function_2.source5
-rw-r--r--src/test/regress/input/misc.source17
-rw-r--r--src/test/regress/input/security_label.source84
-rw-r--r--src/test/regress/output/constraints.source2
-rw-r--r--src/test/regress/output/constraints_1.source2
-rw-r--r--src/test/regress/output/copy.source4
-rw-r--r--src/test/regress/output/copy_1.source4
-rw-r--r--src/test/regress/output/create_function_2.source4
-rw-r--r--src/test/regress/output/misc.source23
-rw-r--r--src/test/regress/output/security_label.source92
-rw-r--r--src/test/regress/parallel_schedule10
-rw-r--r--src/test/regress/pg_regress.c84
-rw-r--r--src/test/regress/pg_regress.h5
-rw-r--r--src/test/regress/pg_regress_main.c11
-rw-r--r--src/test/regress/regress.c8
-rw-r--r--src/test/regress/resultmap3
-rw-r--r--src/test/regress/serial_schedule8
-rw-r--r--src/test/regress/sql/.gitignore8
-rw-r--r--src/test/regress/sql/abstime.sql6
-rw-r--r--src/test/regress/sql/advisory_lock.sql146
-rw-r--r--src/test/regress/sql/aggregates.sql68
-rw-r--r--src/test/regress/sql/alter_table.sql277
-rw-r--r--src/test/regress/sql/arrays.sql46
-rw-r--r--src/test/regress/sql/bit.sql3
-rw-r--r--src/test/regress/sql/bitmapops.sql2
-rw-r--r--src/test/regress/sql/boolean.sql12
-rw-r--r--src/test/regress/sql/box.sql37
-rw-r--r--src/test/regress/sql/case.sql1
-rw-r--r--src/test/regress/sql/char.sql6
-rw-r--r--src/test/regress/sql/cluster.sql2
-rw-r--r--src/test/regress/sql/collate.linux.utf8.sql387
-rw-r--r--src/test/regress/sql/collate.sql222
-rw-r--r--src/test/regress/sql/copy2.sql6
-rw-r--r--src/test/regress/sql/copyselect.sql2
-rw-r--r--src/test/regress/sql/create_aggregate.sql4
-rw-r--r--src/test/regress/sql/create_index.sql122
-rw-r--r--src/test/regress/sql/create_operator.sql18
-rw-r--r--src/test/regress/sql/create_table.sql17
-rw-r--r--src/test/regress/sql/create_type.sql13
-rw-r--r--src/test/regress/sql/create_view.sql12
-rw-r--r--src/test/regress/sql/delete.sql12
-rw-r--r--src/test/regress/sql/domain.sql80
-rw-r--r--src/test/regress/sql/drop.sql13
-rw-r--r--src/test/regress/sql/drop_if_exists.sql5
-rw-r--r--src/test/regress/sql/enum.sql86
-rw-r--r--src/test/regress/sql/errors.sql192
-rw-r--r--src/test/regress/sql/float4.sql3
-rw-r--r--src/test/regress/sql/float8.sql15
-rw-r--r--src/test/regress/sql/foreign_data.sql79
-rw-r--r--src/test/regress/sql/foreign_key.sql20
-rw-r--r--src/test/regress/sql/functional_deps.sql210
-rw-r--r--src/test/regress/sql/hash_index.sql17
-rw-r--r--src/test/regress/sql/horology.sql3
-rw-r--r--src/test/regress/sql/hs_primary_extremes.sql17
-rw-r--r--src/test/regress/sql/inet.sql2
-rw-r--r--src/test/regress/sql/inherit.sql35
-rw-r--r--src/test/regress/sql/insert.sql7
-rw-r--r--src/test/regress/sql/int2.sql5
-rw-r--r--src/test/regress/sql/int4.sql6
-rw-r--r--src/test/regress/sql/int8.sql4
-rw-r--r--src/test/regress/sql/interval.sql12
-rw-r--r--src/test/regress/sql/join.sql72
-rw-r--r--src/test/regress/sql/limit.sql28
-rw-r--r--src/test/regress/sql/lseg.sql1
-rw-r--r--src/test/regress/sql/money.sql14
-rw-r--r--src/test/regress/sql/numeric_big.sql1
-rw-r--r--src/test/regress/sql/numerology.sql1
-rw-r--r--src/test/regress/sql/oid.sql2
-rw-r--r--src/test/regress/sql/oidjoins.sql818
-rw-r--r--src/test/regress/sql/opr_sanity.sql137
-rw-r--r--src/test/regress/sql/path.sql1
-rw-r--r--src/test/regress/sql/plpgsql.sql227
-rw-r--r--src/test/regress/sql/point.sql6
-rw-r--r--src/test/regress/sql/polygon.sql51
-rw-r--r--src/test/regress/sql/polymorphism.sql3
-rw-r--r--src/test/regress/sql/portals.sql16
-rw-r--r--src/test/regress/sql/portals_p2.sql27
-rw-r--r--src/test/regress/sql/prepare.sql1
-rw-r--r--src/test/regress/sql/prepared_xacts.sql12
-rw-r--r--src/test/regress/sql/random.sql1
-rw-r--r--src/test/regress/sql/rangefuncs.sql25
-rw-r--r--src/test/regress/sql/rowtypes.sql62
-rw-r--r--src/test/regress/sql/rules.sql22
-rw-r--r--src/test/regress/sql/select.sql16
-rw-r--r--src/test/regress/sql/select_implicit.sql21
-rw-r--r--src/test/regress/sql/select_into.sql1
-rw-r--r--src/test/regress/sql/select_views.sql1
-rw-r--r--src/test/regress/sql/sequence.sql11
-rw-r--r--src/test/regress/sql/subselect.sql10
-rw-r--r--src/test/regress/sql/text.sql48
-rw-r--r--src/test/regress/sql/timestamptz.sql2
-rw-r--r--src/test/regress/sql/tinterval.sql4
-rw-r--r--src/test/regress/sql/transactions.sql46
-rw-r--r--src/test/regress/sql/triggers.sql440
-rw-r--r--src/test/regress/sql/truncate.sql14
-rw-r--r--src/test/regress/sql/tsdicts.sql12
-rw-r--r--src/test/regress/sql/type_sanity.sql6
-rw-r--r--src/test/regress/sql/typed_table.sql21
-rw-r--r--src/test/regress/sql/update.sql4
-rw-r--r--src/test/regress/sql/varchar.sql6
-rw-r--r--src/test/regress/sql/window.sql4
-rw-r--r--src/test/regress/sql/with.sql289
-rw-r--r--src/test/regress/sql/xml.sql48
-rw-r--r--src/test/regress/standby_schedule2
-rw-r--r--src/test/thread/Makefile4
-rw-r--r--src/test/thread/README11
-rw-r--r--src/test/thread/thread_test.c24
-rw-r--r--src/timezone/.gitignore1
-rw-r--r--src/timezone/Makefile6
-rw-r--r--src/timezone/README2
-rw-r--r--src/timezone/data/africa63
-rw-r--r--src/timezone/data/asia19
-rw-r--r--src/timezone/data/australasia70
-rw-r--r--src/timezone/data/backward6
-rw-r--r--src/timezone/data/etcetera5
-rw-r--r--src/timezone/data/europe68
-rw-r--r--src/timezone/data/leapseconds14
-rw-r--r--src/timezone/data/northamerica238
-rw-r--r--src/timezone/data/southamerica62
-rw-r--r--src/timezone/data/zone.tab15
-rw-r--r--src/timezone/ialloc.c2
-rw-r--r--src/timezone/localtime.c2
-rw-r--r--src/timezone/pgtz.c63
-rw-r--r--src/timezone/pgtz.h4
-rw-r--r--src/timezone/private.h2
-rw-r--r--src/timezone/scheck.c2
-rw-r--r--src/timezone/strftime.c2
-rw-r--r--src/timezone/tzfile.h2
-rw-r--r--src/timezone/tznames/Africa.txt2
-rw-r--r--src/timezone/tznames/America.txt2
-rw-r--r--src/timezone/tznames/Antarctica.txt2
-rw-r--r--src/timezone/tznames/Asia.txt2
-rw-r--r--src/timezone/tznames/Atlantic.txt2
-rw-r--r--src/timezone/tznames/Australia2
-rw-r--r--src/timezone/tznames/Australia.txt2
-rw-r--r--src/timezone/tznames/Default6
-rw-r--r--src/timezone/tznames/Etc.txt2
-rw-r--r--src/timezone/tznames/Europe.txt2
-rw-r--r--src/timezone/tznames/India2
-rw-r--r--src/timezone/tznames/Indian.txt2
-rw-r--r--src/timezone/tznames/Makefile2
-rw-r--r--src/timezone/tznames/Pacific.txt7
-rw-r--r--src/timezone/tznames/README2
-rw-r--r--src/timezone/zic.c14
-rwxr-xr-xsrc/tools/FAQ2txt2
-rw-r--r--src/tools/RELEASE_CHANGES26
-rwxr-xr-xsrc/tools/add_cvs_markers50
-rw-r--r--src/tools/backend/README5
-rw-r--r--src/tools/backend/backend_dirs.html3
-rw-r--r--src/tools/backend/index.html2
-rwxr-xr-xsrc/tools/ccsym2
-rwxr-xr-xsrc/tools/check_keywords.pl6
-rwxr-xr-xsrc/tools/codelines4
-rwxr-xr-xsrc/tools/copyright3
-rw-r--r--src/tools/editors/emacs.samples9
-rw-r--r--src/tools/editors/vim.samples1
-rw-r--r--src/tools/entab/Makefile9
-rw-r--r--src/tools/entab/entab.c2
-rw-r--r--src/tools/entab/entab.man4
-rw-r--r--src/tools/entab/halt.c2
-rwxr-xr-xsrc/tools/find_badmacros3
-rwxr-xr-xsrc/tools/find_gt_lt2
-rwxr-xr-xsrc/tools/find_static11
-rwxr-xr-xsrc/tools/find_typedef8
-rw-r--r--src/tools/findoidjoins/Makefile8
-rw-r--r--src/tools/findoidjoins/README70
-rw-r--r--src/tools/findoidjoins/findoidjoins.c99
-rwxr-xr-xsrc/tools/findoidjoins/make_oidjoins_check30
-rw-r--r--src/tools/fsync/Makefile25
-rw-r--r--src/tools/fsync/README11
-rw-r--r--src/tools/fsync/test_fsync.c384
-rw-r--r--src/tools/git-external-diff24
-rwxr-xr-xsrc/tools/git_changelog284
-rw-r--r--src/tools/ifaddrs/Makefile4
-rw-r--r--src/tools/ifaddrs/README2
-rw-r--r--src/tools/ifaddrs/test_ifaddrs.c2
-rwxr-xr-xsrc/tools/make_ctags2
-rw-r--r--src/tools/make_diff/README7
-rwxr-xr-xsrc/tools/make_diff/cporig2
-rwxr-xr-xsrc/tools/make_diff/difforig2
-rwxr-xr-xsrc/tools/make_diff/rmorig2
-rwxr-xr-xsrc/tools/make_etags2
-rwxr-xr-xsrc/tools/make_keywords2
-rwxr-xr-xsrc/tools/make_mkid2
-rw-r--r--src/tools/msvc/Install.pm73
-rw-r--r--src/tools/msvc/Mkvcbuild.pm67
-rw-r--r--src/tools/msvc/Project.pm2
-rw-r--r--src/tools/msvc/README10
-rw-r--r--src/tools/msvc/Solution.pm27
-rwxr-xr-xsrc/tools/msvc/build.bat2
-rw-r--r--src/tools/msvc/build.pl3
-rwxr-xr-xsrc/tools/msvc/builddoc.bat68
-rw-r--r--src/tools/msvc/builddoc.pl122
-rwxr-xr-xsrc/tools/msvc/clean.bat3
-rw-r--r--src/tools/msvc/config_default.pl2
-rw-r--r--src/tools/msvc/gendef.pl2
-rw-r--r--src/tools/msvc/install.bat2
-rwxr-xr-xsrc/tools/msvc/install.pl2
-rw-r--r--src/tools/msvc/mkvcbuild.pl2
-rwxr-xr-xsrc/tools/msvc/pgbison.bat4
-rwxr-xr-xsrc/tools/msvc/pgflex.bat19
-rw-r--r--src/tools/msvc/vcregress.bat2
-rw-r--r--src/tools/msvc/vcregress.pl47
-rwxr-xr-xsrc/tools/pgcvslog293
-rw-r--r--src/tools/pginclude/README2
-rw-r--r--src/tools/pginclude/cpluspluscheck47
-rwxr-xr-xsrc/tools/pginclude/pgcheckdefines2
-rwxr-xr-xsrc/tools/pginclude/pgcompinclude2
-rwxr-xr-xsrc/tools/pginclude/pgdefine2
-rwxr-xr-xsrc/tools/pginclude/pgfixinclude2
-rwxr-xr-xsrc/tools/pginclude/pgrminclude8
-rw-r--r--src/tools/pgindent/README17
-rw-r--r--src/tools/pgindent/indent.bsd.patch2
-rwxr-xr-xsrc/tools/pgindent/pgcppindent2
-rwxr-xr-xsrc/tools/pgindent/pgindent23
-rw-r--r--src/tools/pgindent/typedefs.list325
-rwxr-xr-xsrc/tools/pgtest12
-rwxr-xr-xsrc/tools/version_stamp.pl6
-rwxr-xr-xsrc/tools/win32tzlist.pl4
-rw-r--r--src/tutorial/Makefile2
-rw-r--r--src/tutorial/README2
-rw-r--r--src/tutorial/advanced.source4
-rw-r--r--src/tutorial/basics.source18
-rw-r--r--src/tutorial/complex.c2
-rw-r--r--src/tutorial/complex.source16
-rw-r--r--src/tutorial/funcs.c2
-rw-r--r--src/tutorial/funcs.source16
-rw-r--r--src/tutorial/funcs_new.c2
-rw-r--r--src/tutorial/syscat.source29
-rw-r--r--src/win32.mak8
3202 files changed, 312423 insertions, 128793 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000..1e15ce5fc1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,32 @@
+# Global excludes across all subdirectories
+*.o
+*.so
+*.so.[0-9]
+*.so.[0-9].[0-9]
+*.sl
+*.sl.[0-9]
+*.sl.[0-9].[0-9]
+*.dylib
+*.dll
+*.a
+*.mo
+objfiles.txt
+.deps/
+*.gcno
+*.gcda
+*.gcov
+*.gcov.out
+lcov.info
+*.vcproj
+win32ver.rc
+*.exe
+lib*dll.def
+
+# Local excludes in root directory
+/GNUmakefile
+/config.log
+/config.status
+/pgsql.sln
+/pgsql.sln.cache
+/Debug/
+/Release/
diff --git a/COPYRIGHT b/COPYRIGHT
index 18259d01b7..0395b0d3cf 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,7 +1,7 @@
Postgres-XC Cluster Database Management System
Portions Copyright (c) 2010-2011, Nippon Telegraph and Telephone Corporation
-Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
+Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
Portions Copyright (c) 1994, The Regents of the University of California
diff --git a/GNUmakefile.in b/GNUmakefile.in
index 86623a3854..79b0da42a8 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -1,64 +1,46 @@
#
# PostgreSQL top level makefile
#
-# $PostgreSQL: pgsql/GNUmakefile.in,v 1.58 2010/03/30 00:10:46 petere Exp $
+# GNUmakefile.in
#
subdir =
top_builddir = .
include $(top_builddir)/src/Makefile.global
+$(call recurse,all install,src config)
+
all:
- $(MAKE) -C src all
- $(MAKE) -C config all
- @echo "All of PostgreSQL successfully made. Ready to install."
+ +@echo "All of PostgreSQL successfully made. Ready to install."
docs:
$(MAKE) -C doc all
+$(call recurse,world,doc src config contrib,all)
world:
- $(MAKE) -C doc all
- $(MAKE) -C src all
- $(MAKE) -C config all
- $(MAKE) -C contrib all
- @echo "PostgreSQL, contrib, and documentation successfully made. Ready to install."
+ +@echo "PostgreSQL, contrib, and documentation successfully made. Ready to install."
html man:
$(MAKE) -C doc $@
install:
- $(MAKE) -C src $@
- $(MAKE) -C config $@
- @echo "PostgreSQL installation complete."
+ +@echo "PostgreSQL installation complete."
install-docs:
$(MAKE) -C doc install
+$(call recurse,install-world,doc src config contrib,install)
install-world:
- $(MAKE) -C doc install
- $(MAKE) -C src install
- $(MAKE) -C config install
- $(MAKE) -C contrib install
- @echo "PostgreSQL, contrib, and documentation installation complete."
+ +@echo "PostgreSQL, contrib, and documentation installation complete."
-installdirs uninstall coverage:
- $(MAKE) -C doc $@
- $(MAKE) -C src $@
- $(MAKE) -C config $@
+$(call recurse,installdirs uninstall coverage,doc src config)
-distprep:
- $(MAKE) -C doc $@
- $(MAKE) -C src $@
- $(MAKE) -C config $@
- $(MAKE) -C contrib $@
+$(call recurse,distprep,doc src config contrib)
# clean, distclean, etc should apply to contrib too, even though
# it's not built by default
+$(call recurse,clean,doc contrib src config)
clean:
- $(MAKE) -C doc $@
- $(MAKE) -C contrib $@
- $(MAKE) -C src $@
- $(MAKE) -C config $@
# Garbage from autoconf:
@rm -rf autom4te.cache/
@@ -78,11 +60,11 @@ check: all
check installcheck installcheck-parallel:
$(MAKE) -C src/test $@
-installcheck-world:
- $(MAKE) -C src/test installcheck
- $(MAKE) -C src/pl installcheck
- $(MAKE) -C src/interfaces/ecpg installcheck
- $(MAKE) -C contrib installcheck
+$(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib,check)
+
+$(call recurse,installcheck-world,src/test src/pl src/interfaces/ecpg contrib,installcheck)
+
+$(call recurse,maintainer-check,doc src config contrib)
GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
./config.status $@
@@ -122,7 +104,7 @@ distdir:
cp $(distdir)/doc/src/sgml/INSTALL $(distdir)/
cp $(distdir)/doc/src/sgml/regress_README $(distdir)/src/test/regress/README
$(MAKE) -C $(distdir) distclean
- rm -f $(distdir)/README.CVS
+ rm -f $(distdir)/README.git
distcheck: dist
rm -rf $(dummy)
@@ -143,4 +125,4 @@ distcheck: dist
rm -rf $(distdir) $(dummy)
@echo "Distribution integrity checks out."
-.PHONY: dist distdir distcheck docs install-docs
+.PHONY: dist distdir distcheck docs install-docs world check-world install-world installcheck-world
diff --git a/Makefile b/Makefile
index b5b2ea54c0..72e9c83733 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@
# GNUmakefile won't exist yet, so we catch that case as well.
-all check install installdirs installcheck installcheck-parallel uninstall clean distclean maintainer-clean dist distcheck world install-world installcheck-world:
+all check install installdirs installcheck installcheck-parallel uninstall clean distclean maintainer-clean dist distcheck world check-world install-world installcheck-world:
@if [ ! -f GNUmakefile ] ; then \
echo "You need to run the 'configure' program first. See the file"; \
echo "'INSTALL' for installation instructions." ; \
diff --git a/README b/README
index 19ed46b441..49d55af5f6 100644
--- a/README
+++ b/README
@@ -1,6 +1,6 @@
PostgreSQL Database Management System
=====================================
-
+
This directory contains the source code distribution of the PostgreSQL
database management system.
@@ -26,4 +26,3 @@ instructions.
The latest version of this software may be obtained at
http://www.postgresql.org/download/. For more information look at our
web site located at http://www.postgresql.org/.
-
diff --git a/README.CVS b/README.git
index 4eb8377a50..83b9a8c581 100644
--- a/README.CVS
+++ b/README.git
@@ -2,13 +2,13 @@
In a release or snapshot tarball of PostgreSQL, documentation files named
INSTALL and HISTORY will appear in this directory. However, these files are
-not stored in CVS and so will not be present if you are using a CVS checkout.
-If you are using CVS, you can view the most recent install instructions at:
+not stored in git and so will not be present if you are using a git checkout.
+If you are using git, you can view the most recent install instructions at:
http://developer.postgresql.org/docs/postgres/installation.html
and the current release notes at:
http://developer.postgresql.org/docs/postgres/release.html
-Users compiling from CVS will also need compatible versions of Bison, Flex,
+Users compiling from git will also need compatible versions of Bison, Flex,
and Perl, as discussed in the install documentation. These programs are not
needed when using a tarball, since the files they are needed to build are
already present in the tarball. (On Windows, however, you need Perl anyway.)
diff --git a/aclocal.m4 b/aclocal.m4
index b007cd0a48..eaf98007e5 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1,4 +1,4 @@
-dnl $PostgreSQL: pgsql/aclocal.m4,v 1.18 2004/04/23 18:15:47 momjian Exp $
+dnl aclocal.m4
m4_include([config/ac_func_accept_argtypes.m4])
m4_include([config/acx_pthread.m4])
m4_include([config/c-compiler.m4])
diff --git a/config/Makefile b/config/Makefile
index 2e881b7704..da1283868e 100644
--- a/config/Makefile
+++ b/config/Makefile
@@ -1,4 +1,4 @@
-# $PostgreSQL: pgsql/config/Makefile,v 1.3 2009/08/26 22:24:42 petere Exp $
+# config/Makefile
subdir = config
top_builddir = ..
diff --git a/config/ac_func_accept_argtypes.m4 b/config/ac_func_accept_argtypes.m4
index 917d59ab86..1e7717922d 100644
--- a/config/ac_func_accept_argtypes.m4
+++ b/config/ac_func_accept_argtypes.m4
@@ -1,13 +1,12 @@
-# $PostgreSQL: pgsql/config/ac_func_accept_argtypes.m4,v 1.6 2003/11/29 19:51:17 pgsql Exp $
+# config/ac_func_accept_argtypes.m4
# This comes from the official Autoconf macro archive at
# <http://research.cys.de/autoconf-archive/>
-# (I removed the $ before the Id CVS keyword below.)
dnl @synopsis AC_FUNC_ACCEPT_ARGTYPES
dnl
dnl Checks the data types of the three arguments to accept(). Results are
-dnl placed into the symbols ACCEPT_TYPE_RETURN and ACCEPT_TYPE_ARG[123],
+dnl placed into the symbols ACCEPT_TYPE_RETURN and ACCEPT_TYPE_ARG[123],
dnl consistent with the following example:
dnl
dnl #define ACCEPT_TYPE_RETURN int
@@ -21,7 +20,7 @@ dnl
dnl NOTE: This is just a modified version of the AC_FUNC_SELECT_ARGTYPES
dnl macro. Credit for that one goes to David MacKenzie et. al.
dnl
-dnl @version Id: ac_func_accept_argtypes.m4,v 1.1 1999/12/03 11:29:29 simons Exp $
+dnl @version $Id: ac_func_accept_argtypes.m4,v 1.1 1999/12/03 11:29:29 simons Exp $
dnl @author Daniel Richard G. <[email protected]>
dnl
@@ -38,7 +37,8 @@ dnl
# which is *not* 'socklen_t *'). If we detect that, then we assume
# 'int' as the result, because that ought to work best.
#
-# On Win32, accept() returns 'unsigned int PASCAL'
+# On Win32, accept() returns 'unsigned int PASCAL'
+# Win64 uses SOCKET for return and arg1
AC_DEFUN([AC_FUNC_ACCEPT_ARGTYPES],
[AC_MSG_CHECKING([types of arguments for accept()])
@@ -46,8 +46,8 @@ AC_DEFUN([AC_FUNC_ACCEPT_ARGTYPES],
[AC_CACHE_VAL(ac_cv_func_accept_arg1,dnl
[AC_CACHE_VAL(ac_cv_func_accept_arg2,dnl
[AC_CACHE_VAL(ac_cv_func_accept_arg3,dnl
- [for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
- for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
+ [for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET'; do
+ for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
AC_TRY_COMPILE(
diff --git a/config/acx_pthread.m4 b/config/acx_pthread.m4
index ceb161a556..6ff241eba1 100644
--- a/config/acx_pthread.m4
+++ b/config/acx_pthread.m4
@@ -142,7 +142,8 @@ main (int argc, char **argv)
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
- if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
+ # Check both linking and compiling, because they might tolerate different options.
+ if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
# we continue with more flags because Linux needs -lpthread
# for libpq builds on PostgreSQL. The test above only
# tests for building binaries, not shared libraries.
diff --git a/config/c-compiler.m4 b/config/c-compiler.m4
index a8df61b649..9398ca6c47 100644
--- a/config/c-compiler.m4
+++ b/config/c-compiler.m4
@@ -1,5 +1,5 @@
# Macros to detect C compiler features
-# $PostgreSQL: pgsql/config/c-compiler.m4,v 1.22 2010/05/25 17:28:20 meskes Exp $
+# config/c-compiler.m4
# PGAC_C_SIGNED
@@ -126,13 +126,21 @@ fi])# PGAC_C_FUNCNAME_SUPPORT
# Given a string, check if the compiler supports the string as a
# command-line option. If it does, add the string to CFLAGS.
AC_DEFUN([PGAC_PROG_CC_CFLAGS_OPT],
-[AC_MSG_CHECKING([if $CC supports $1])
-pgac_save_CFLAGS=$CFLAGS
+[define([Ac_cachevar], [AS_TR_SH([pgac_cv_prog_cc_cflags_$1])])dnl
+AC_CACHE_CHECK([whether $CC supports $1], [Ac_cachevar],
+[pgac_save_CFLAGS=$CFLAGS
CFLAGS="$pgac_save_CFLAGS $1"
+ac_save_c_werror_flag=$ac_c_werror_flag
+ac_c_werror_flag=yes
_AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
- AC_MSG_RESULT(yes),
- [CFLAGS="$pgac_save_CFLAGS"
- AC_MSG_RESULT(no)])
+ [Ac_cachevar=yes],
+ [Ac_cachevar=no])
+ac_c_werror_flag=$ac_save_c_werror_flag
+CFLAGS="$pgac_save_CFLAGS"])
+if test x"$Ac_cachevar" = x"yes"; then
+ CFLAGS="$CFLAGS $1"
+fi
+undefine([Ac_cachevar])dnl
])# PGAC_PROG_CC_CFLAGS_OPT
@@ -145,14 +153,17 @@ _AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
# you can link to a particular function, not just whether you can link.
# In fact, we must actually check that the resulting program runs :-(
AC_DEFUN([PGAC_PROG_CC_LDFLAGS_OPT],
-[AC_MSG_CHECKING([if $CC supports $1])
-pgac_save_LDFLAGS=$LDFLAGS
+[define([Ac_cachevar], [AS_TR_SH([pgac_cv_prog_cc_ldflags_$1])])dnl
+AC_CACHE_CHECK([whether $CC supports $1], [Ac_cachevar],
+[pgac_save_LDFLAGS=$LDFLAGS
LDFLAGS="$pgac_save_LDFLAGS $1"
AC_RUN_IFELSE([AC_LANG_PROGRAM([extern void $2 (); void (*fptr) () = $2;],[])],
- AC_MSG_RESULT(yes),
- [LDFLAGS="$pgac_save_LDFLAGS"
- AC_MSG_RESULT(no)],
- [LDFLAGS="$pgac_save_LDFLAGS"
- AC_MSG_RESULT(assuming no)])
+ [Ac_cachevar=yes],
+ [Ac_cachevar=no],
+ [Ac_cachevar="assuming no"])
+LDFLAGS="$pgac_save_LDFLAGS"])
+if test x"$Ac_cachevar" = x"yes"; then
+ LDFLAGS="$LDFLAGS $1"
+fi
+undefine([Ac_cachevar])dnl
])# PGAC_PROG_CC_LDFLAGS_OPT
-
diff --git a/config/c-library.m4 b/config/c-library.m4
index 5d44685ec0..cddeafaec2 100644
--- a/config/c-library.m4
+++ b/config/c-library.m4
@@ -1,5 +1,5 @@
# Macros that test various C library quirks
-# $PostgreSQL: pgsql/config/c-library.m4,v 1.34 2009/07/02 18:55:40 petere Exp $
+# config/c-library.m4
# PGAC_VAR_INT_TIMEZONE
@@ -297,3 +297,32 @@ int main()
])dnl AC_CACHE_VAL
AC_MSG_RESULT([$pgac_cv_printf_arg_control])
])# PGAC_FUNC_PRINTF_ARG_CONTROL
+
+
+# PGAC_TYPE_LOCALE_T
+# ------------------
+# Check for the locale_t type and find the right header file. Mac OS
+# X needs xlocale.h; standard is locale.h, but glibc also has an
+# xlocale.h file that we should not use.
+#
+AC_DEFUN([PGAC_TYPE_LOCALE_T],
+[AC_CACHE_CHECK([for locale_t], pgac_cv_type_locale_t,
+[AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+[#include <locale.h>
+locale_t x;],
+[])],
+[pgac_cv_type_locale_t=yes],
+[AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+[#include <xlocale.h>
+locale_t x;],
+[])],
+[pgac_cv_type_locale_t='yes (in xlocale.h)'],
+[pgac_cv_type_locale_t=no])])])
+if test "$pgac_cv_type_locale_t" != no; then
+ AC_DEFINE(HAVE_LOCALE_T, 1,
+ [Define to 1 if the system has the type `locale_t'.])
+fi
+if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
+ AC_DEFINE(LOCALE_T_IN_XLOCALE, 1,
+ [Define to 1 if `locale_t' requires <xlocale.h>.])
+fi])])# PGAC_HEADER_XLOCALE
diff --git a/config/config.guess b/config/config.guess
index 115f944a61..40eaed4821 100755
--- a/config/config.guess
+++ b/config/config.guess
@@ -1,10 +1,10 @@
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
-# Free Software Foundation, Inc.
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+# 2011 Free Software Foundation, Inc.
-timestamp='2010-04-03'
+timestamp='2011-05-11'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -57,7 +57,7 @@ GNU config.guess ($timestamp)
Originally written by Per Bothner.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
@@ -92,7 +92,7 @@ if test $# != 0; then
exit 1
fi
-trap 'exit 1' HUP INT TERM
+trap 'exit 1' 1 2 15
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
# compiler to aid in system detection is discouraged as it requires
@@ -106,7 +106,7 @@ trap 'exit 1' HUP INT TERM
set_cc_for_build='
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ;
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
: ${TMPDIR=/tmp} ;
{ tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
@@ -181,7 +181,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
fi
;;
*)
- os=netbsd
+ os=netbsd
;;
esac
# The OS release
@@ -224,7 +224,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
;;
*5.*)
- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
;;
esac
# According to Compaq, /usr/sbin/psrinfo has been available on
@@ -270,7 +270,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# A Xn.n version is an unreleased experimental baselevel.
# 1.2 uses "1.2" for uname -r.
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- exit ;;
+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
+ exitcode=$?
+ trap '' 0
+ exit $exitcode ;;
Alpha\ *:Windows_NT*:*)
# How do we know it's Interix rather than the generic POSIX subsystem?
# Should we change UNAME_MACHINE based on the output of uname instead
@@ -296,7 +299,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
echo s390-ibm-zvmoe
exit ;;
*:OS400:*:*)
- echo powerpc-ibm-os400
+ echo powerpc-ibm-os400
exit ;;
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
echo arm-acorn-riscix${UNAME_RELEASE}
@@ -395,23 +398,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# MiNT. But MiNT is downward compatible to TOS, so this should
# be no problem.
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
+ echo m68k-atari-mint${UNAME_RELEASE}
exit ;;
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
echo m68k-atari-mint${UNAME_RELEASE}
- exit ;;
+ exit ;;
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
+ echo m68k-atari-mint${UNAME_RELEASE}
exit ;;
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
- echo m68k-milan-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-milan-mint${UNAME_RELEASE}
+ exit ;;
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
- echo m68k-hades-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-hades-mint${UNAME_RELEASE}
+ exit ;;
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
- echo m68k-unknown-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-unknown-mint${UNAME_RELEASE}
+ exit ;;
m68k:machten:*:*)
echo m68k-apple-machten${UNAME_RELEASE}
exit ;;
@@ -481,8 +484,8 @@ EOF
echo m88k-motorola-sysv3
exit ;;
AViiON:dgux:*:*)
- # DG/UX returns AViiON for all architectures
- UNAME_PROCESSOR=`/usr/bin/uname -p`
+ # DG/UX returns AViiON for all architectures
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
then
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
@@ -495,7 +498,7 @@ EOF
else
echo i586-dg-dgux${UNAME_RELEASE}
fi
- exit ;;
+ exit ;;
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
echo m88k-dolphin-sysv3
exit ;;
@@ -552,7 +555,7 @@ EOF
echo rs6000-ibm-aix3.2
fi
exit ;;
- *:AIX:*:[456])
+ *:AIX:*:[4567])
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
IBM_ARCH=rs6000
@@ -595,52 +598,52 @@ EOF
9000/[678][0-9][0-9])
if [ -x /usr/bin/getconf ]; then
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
- case "${sc_cpu_version}" in
- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
- 532) # CPU_PA_RISC2_0
- case "${sc_kernel_bits}" in
- 32) HP_ARCH="hppa2.0n" ;;
- 64) HP_ARCH="hppa2.0w" ;;
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+ case "${sc_cpu_version}" in
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+ 532) # CPU_PA_RISC2_0
+ case "${sc_kernel_bits}" in
+ 32) HP_ARCH="hppa2.0n" ;;
+ 64) HP_ARCH="hppa2.0w" ;;
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
- esac ;;
- esac
+ esac ;;
+ esac
fi
if [ "${HP_ARCH}" = "" ]; then
eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
+ sed 's/^ //' << EOF >$dummy.c
- #define _HPUX_SOURCE
- #include <stdlib.h>
- #include <unistd.h>
+ #define _HPUX_SOURCE
+ #include <stdlib.h>
+ #include <unistd.h>
- int main ()
- {
- #if defined(_SC_KERNEL_BITS)
- long bits = sysconf(_SC_KERNEL_BITS);
- #endif
- long cpu = sysconf (_SC_CPU_VERSION);
+ int main ()
+ {
+ #if defined(_SC_KERNEL_BITS)
+ long bits = sysconf(_SC_KERNEL_BITS);
+ #endif
+ long cpu = sysconf (_SC_CPU_VERSION);
- switch (cpu)
- {
- case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
- case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
- case CPU_PA_RISC2_0:
- #if defined(_SC_KERNEL_BITS)
- switch (bits)
- {
- case 64: puts ("hppa2.0w"); break;
- case 32: puts ("hppa2.0n"); break;
- default: puts ("hppa2.0"); break;
- } break;
- #else /* !defined(_SC_KERNEL_BITS) */
- puts ("hppa2.0"); break;
- #endif
- default: puts ("hppa1.0"); break;
- }
- exit (0);
- }
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+ case CPU_PA_RISC2_0:
+ #if defined(_SC_KERNEL_BITS)
+ switch (bits)
+ {
+ case 64: puts ("hppa2.0w"); break;
+ case 32: puts ("hppa2.0n"); break;
+ default: puts ("hppa2.0"); break;
+ } break;
+ #else /* !defined(_SC_KERNEL_BITS) */
+ puts ("hppa2.0"); break;
+ #endif
+ default: puts ("hppa1.0"); break;
+ }
+ exit (0);
+ }
EOF
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
test -z "$HP_ARCH" && HP_ARCH=hppa
@@ -731,22 +734,22 @@ EOF
exit ;;
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
echo c1-convex-bsd
- exit ;;
+ exit ;;
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
if getsysinfo -f scalar_acc
then echo c32-convex-bsd
else echo c2-convex-bsd
fi
- exit ;;
+ exit ;;
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
echo c34-convex-bsd
- exit ;;
+ exit ;;
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
echo c38-convex-bsd
- exit ;;
+ exit ;;
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
echo c4-convex-bsd
- exit ;;
+ exit ;;
CRAY*Y-MP:*:*:*)
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit ;;
@@ -770,14 +773,14 @@ EOF
exit ;;
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
- exit ;;
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
5000:UNIX_System_V:4.*:*)
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
- echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
exit ;;
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
@@ -805,14 +808,14 @@ EOF
echo ${UNAME_MACHINE}-pc-mingw32
exit ;;
i*:windows32*:*)
- # uname -m includes "-pc" on this system.
- echo ${UNAME_MACHINE}-mingw32
+ # uname -m includes "-pc" on this system.
+ echo ${UNAME_MACHINE}-mingw32
exit ;;
i*:PW*:*)
echo ${UNAME_MACHINE}-pc-pw32
exit ;;
*:Interix*:*)
- case ${UNAME_MACHINE} in
+ case ${UNAME_MACHINE} in
x86)
echo i586-pc-interix${UNAME_RELEASE}
exit ;;
@@ -867,7 +870,7 @@ EOF
EV6) UNAME_MACHINE=alphaev6 ;;
EV67) UNAME_MACHINE=alphaev67 ;;
EV68*) UNAME_MACHINE=alphaev68 ;;
- esac
+ esac
objdump --private-headers /bin/sh | grep -q ld.so.1
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
@@ -879,7 +882,13 @@ EOF
then
echo ${UNAME_MACHINE}-unknown-linux-gnu
else
- echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_PCS_VFP
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
+ fi
fi
exit ;;
avr32*:Linux:*:*)
@@ -892,7 +901,7 @@ EOF
echo crisv32-axis-linux-gnu
exit ;;
frv:Linux:*:*)
- echo frv-unknown-linux-gnu
+ echo frv-unknown-linux-gnu
exit ;;
i*86:Linux:*:*)
LIBC=gnu
@@ -960,7 +969,7 @@ EOF
echo ${UNAME_MACHINE}-ibm-linux
exit ;;
sh64*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
sh*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
@@ -968,6 +977,9 @@ EOF
sparc:Linux:*:* | sparc64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
+ tile*:Linux:*:*)
+ echo ${UNAME_MACHINE}-tilera-linux-gnu
+ exit ;;
vax:Linux:*:*)
echo ${UNAME_MACHINE}-dec-linux-gnu
exit ;;
@@ -975,7 +987,7 @@ EOF
echo x86_64-unknown-linux-gnu
exit ;;
xtensa*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
i*86:DYNIX/ptx:4*:*)
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
@@ -984,11 +996,11 @@ EOF
echo i386-sequent-sysv4
exit ;;
i*86:UNIX_SV:4.2MP:2.*)
- # Unixware is an offshoot of SVR4, but it has its own version
- # number series starting with 2...
- # I am not positive that other SVR4 systems won't match this,
+ # Unixware is an offshoot of SVR4, but it has its own version
+ # number series starting with 2...
+ # I am not positive that other SVR4 systems won't match this,
# I just have to hope. -- rms.
- # Use sysv4.2uw... so that sysv4* matches it.
+ # Use sysv4.2uw... so that sysv4* matches it.
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
exit ;;
i*86:OS/2:*:*)
@@ -1020,7 +1032,7 @@ EOF
fi
exit ;;
i*86:*:5:[678]*)
- # UnixWare 7.x, OpenUNIX and OpenServer 6.
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
case `/bin/uname -X | grep "^Machine"` in
*486*) UNAME_MACHINE=i486 ;;
*Pentium) UNAME_MACHINE=i586 ;;
@@ -1048,13 +1060,13 @@ EOF
exit ;;
pc:*:*:*)
# Left here for compatibility:
- # uname -m prints for DJGPP always 'pc', but it prints nothing about
- # the processor, so we play safe by assuming i586.
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
+ # the processor, so we play safe by assuming i586.
# Note: whatever this is, it MUST be the same as what config.sub
# prints for the "djgpp" host, or else GDB configury will decide that
# this is a cross-build.
echo i586-pc-msdosdjgpp
- exit ;;
+ exit ;;
Intel:Mach:3*:*)
echo i386-pc-mach3
exit ;;
@@ -1089,8 +1101,8 @@ EOF
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
- && { echo i486-ncr-sysv4; exit; } ;;
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4; exit; } ;;
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
OS_REL='.3'
test -r /etc/.relid \
@@ -1133,10 +1145,10 @@ EOF
echo ns32k-sni-sysv
fi
exit ;;
- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
- echo i586-unisys-sysv4
- exit ;;
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+ echo i586-unisys-sysv4
+ exit ;;
*:UNIX_System_V:4*:FTX*)
# From Gerald Hewes <[email protected]>.
# How about differentiating between stratus architectures? -djm
@@ -1162,11 +1174,11 @@ EOF
exit ;;
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
if [ -d /usr/nec ]; then
- echo mips-nec-sysv${UNAME_RELEASE}
+ echo mips-nec-sysv${UNAME_RELEASE}
else
- echo mips-unknown-sysv${UNAME_RELEASE}
+ echo mips-unknown-sysv${UNAME_RELEASE}
fi
- exit ;;
+ exit ;;
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
echo powerpc-be-beos
exit ;;
@@ -1231,6 +1243,9 @@ EOF
*:QNX:*:4*)
echo i386-pc-qnx
exit ;;
+ NEO-?:NONSTOP_KERNEL:*:*)
+ echo neo-tandem-nsk${UNAME_RELEASE}
+ exit ;;
NSE-?:NONSTOP_KERNEL:*:*)
echo nse-tandem-nsk${UNAME_RELEASE}
exit ;;
@@ -1276,13 +1291,13 @@ EOF
echo pdp10-unknown-its
exit ;;
SEI:*:*:SEIUX)
- echo mips-sei-seiux${UNAME_RELEASE}
+ echo mips-sei-seiux${UNAME_RELEASE}
exit ;;
*:DragonFly:*:*)
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
exit ;;
*:*VMS:*:*)
- UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
case "${UNAME_MACHINE}" in
A*) echo alpha-dec-vms ; exit ;;
I*) echo ia64-dec-vms ; exit ;;
@@ -1322,11 +1337,11 @@ main ()
#include <sys/param.h>
printf ("m68k-sony-newsos%s\n",
#ifdef NEWSOS4
- "4"
+ "4"
#else
- ""
+ ""
#endif
- ); exit (0);
+ ); exit (0);
#endif
#endif
diff --git a/config/config.sub b/config/config.sub
index ae35431611..30fdca8121 100755
--- a/config/config.sub
+++ b/config/config.sub
@@ -1,10 +1,10 @@
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
-# Free Software Foundation, Inc.
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+# 2011 Free Software Foundation, Inc.
-timestamp='2010-03-22'
+timestamp='2011-03-23'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
@@ -76,7 +76,7 @@ version="\
GNU config.sub ($timestamp)
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
@@ -124,8 +124,9 @@ esac
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
- nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
- uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
+ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
+ linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
+ knetbsd*-gnu* | netbsd*-gnu* | \
kopensolaris*-gnu* | \
storm-chaos* | os2-emx* | rtmk-nova*)
os=-$maybe_os
@@ -157,8 +158,8 @@ case $os in
os=
basic_machine=$1
;;
- -bluegene*)
- os=-cnk
+ -bluegene*)
+ os=-cnk
;;
-sim | -cisco | -oki | -wec | -winbond)
os=
@@ -174,10 +175,10 @@ case $os in
os=-chorusos
basic_machine=$1
;;
- -chorusrdb)
- os=-chorusrdb
+ -chorusrdb)
+ os=-chorusrdb
basic_machine=$1
- ;;
+ ;;
-hiux*)
os=-hiuxwe2
;;
@@ -282,11 +283,13 @@ case $basic_machine in
| moxie \
| mt \
| msp430 \
+ | nds32 | nds32le | nds32be \
| nios | nios2 \
| ns16k | ns32k \
+ | open8 \
| or32 \
| pdp10 | pdp11 | pj | pjl \
- | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+ | powerpc | powerpc64 | powerpc64le | powerpcle \
| pyramid \
| rx \
| score \
@@ -294,12 +297,12 @@ case $basic_machine in
| sh64 | sh64le \
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
- | spu | strongarm \
- | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
+ | spu \
+ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
| ubicom32 \
| v850 | v850e \
| we32k \
- | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
+ | x86 | xc16x | xstormy16 | xtensa \
| z8k | z80)
basic_machine=$basic_machine-unknown
;;
@@ -323,6 +326,18 @@ case $basic_machine in
basic_machine=mt-unknown
;;
+ strongarm | thumb | xscale)
+ basic_machine=arm-unknown
+ ;;
+
+ xscaleeb)
+ basic_machine=armeb-unknown
+ ;;
+
+ xscaleel)
+ basic_machine=armel-unknown
+ ;;
+
# We use `pc' rather than `unknown'
# because (1) that's what they normally are, and
# (2) the word "unknown" tends to confuse beginning users.
@@ -377,26 +392,28 @@ case $basic_machine in
| mmix-* \
| mt-* \
| msp430-* \
+ | nds32-* | nds32le-* | nds32be-* \
| nios-* | nios2-* \
| none-* | np1-* | ns16k-* | ns32k-* \
+ | open8-* \
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
- | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
| pyramid-* \
| romp-* | rs6000-* | rx-* \
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
| sparclite-* \
- | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
- | tahoe-* | thumb-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
+ | tahoe-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
| tile-* | tilegx-* \
| tron-* \
| ubicom32-* \
| v850-* | v850e-* | vax-* \
| we32k-* \
- | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
+ | x86-* | x86_64-* | xc16x-* | xps100-* \
| xstormy16-* | xtensa*-* \
| ymp-* \
| z8k-* | z80-*)
@@ -421,7 +438,7 @@ case $basic_machine in
basic_machine=a29k-amd
os=-udi
;;
- abacus)
+ abacus)
basic_machine=abacus-unknown
;;
adobe68k)
@@ -504,7 +521,7 @@ case $basic_machine in
basic_machine=c90-cray
os=-unicos
;;
- cegcc)
+ cegcc)
basic_machine=arm-unknown
os=-cegcc
;;
@@ -536,7 +553,7 @@ case $basic_machine in
basic_machine=craynv-cray
os=-unicosmp
;;
- cr16)
+ cr16 | cr16-*)
basic_machine=cr16-unknown
os=-elf
;;
@@ -752,7 +769,7 @@ case $basic_machine in
basic_machine=ns32k-utek
os=-sysv
;;
- microblaze)
+ microblaze)
basic_machine=microblaze-xilinx
;;
mingw32)
@@ -859,6 +876,12 @@ case $basic_machine in
np1)
basic_machine=np1-gould
;;
+ neo-tandem)
+ basic_machine=neo-tandem
+ ;;
+ nse-tandem)
+ basic_machine=nse-tandem
+ ;;
nsr-tandem)
basic_machine=nsr-tandem
;;
@@ -941,9 +964,10 @@ case $basic_machine in
;;
power) basic_machine=power-ibm
;;
- ppc) basic_machine=powerpc-unknown
+ ppc | ppcbe) basic_machine=powerpc-unknown
;;
- ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ppc-* | ppcbe-*)
+ basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppcle | powerpclittle | ppc-le | powerpc-little)
basic_machine=powerpcle-unknown
@@ -1037,6 +1061,9 @@ case $basic_machine in
basic_machine=i860-stratus
os=-sysv4
;;
+ strongarm-* | thumb-*)
+ basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
sun2)
basic_machine=m68000-sun
;;
@@ -1093,8 +1120,8 @@ case $basic_machine in
basic_machine=t90-cray
os=-unicos
;;
- # This must be matched before tile*.
- tilegx*)
+ # This must be matched before tile*.
+ tilegx*)
basic_machine=tilegx-unknown
os=-linux-gnu
;;
@@ -1169,6 +1196,9 @@ case $basic_machine in
xps | xps100)
basic_machine=xps100-honeywell
;;
+ xscale-* | xscalee[bl]-*)
+ basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
+ ;;
ymp)
basic_machine=ymp-cray
os=-unicos
@@ -1266,11 +1296,11 @@ esac
if [ x"$os" != x"" ]
then
case $os in
- # First match some system type aliases
- # that might get confused with valid system types.
+ # First match some system type aliases
+ # that might get confused with valid system types.
# -solaris* is a basic system type, with this one exception.
- -auroraux)
- os=-auroraux
+ -auroraux)
+ os=-auroraux
;;
-solaris1 | -solaris1.*)
os=`echo $os | sed -e 's|solaris1|sunos4|'`
@@ -1307,7 +1337,8 @@ case $os in
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -chorusos* | -chorusrdb* | -cegcc* \
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
+ | -mingw32* | -linux-gnu* | -linux-android* \
+ | -linux-newlib* | -linux-uclibc* \
| -uxpv* | -beos* | -mpeix* | -udk* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
@@ -1354,7 +1385,7 @@ case $os in
-opened*)
os=-openedition
;;
- -os400*)
+ -os400*)
os=-os400
;;
-wince*)
@@ -1403,7 +1434,7 @@ case $os in
-sinix*)
os=-sysv4
;;
- -tpf*)
+ -tpf*)
os=-tpf
;;
-triton*)
@@ -1448,8 +1479,8 @@ case $os in
-dicos*)
os=-dicos
;;
- -nacl*)
- ;;
+ -nacl*)
+ ;;
-none)
;;
*)
@@ -1472,10 +1503,10 @@ else
# system, and we'll never get to this point.
case $basic_machine in
- score-*)
+ score-*)
os=-elf
;;
- spu-*)
+ spu-*)
os=-elf
;;
*-acorn)
@@ -1487,8 +1518,8 @@ case $basic_machine in
arm*-semi)
os=-aout
;;
- c4x-* | tic4x-*)
- os=-coff
+ c4x-* | tic4x-*)
+ os=-coff
;;
tic54x-*)
os=-coff
@@ -1524,7 +1555,7 @@ case $basic_machine in
m68*-cisco)
os=-aout
;;
- mep-*)
+ mep-*)
os=-elf
;;
mips*-cisco)
@@ -1551,7 +1582,7 @@ case $basic_machine in
*-ibm)
os=-aix
;;
- *-knuth)
+ *-knuth)
os=-mmixware
;;
*-wec)
diff --git a/config/docbook.m4 b/config/docbook.m4
index 0d8c1fad7e..636aefed4c 100644
--- a/config/docbook.m4
+++ b/config/docbook.m4
@@ -1,4 +1,4 @@
-# $PostgreSQL: pgsql/config/docbook.m4,v 1.11 2009/08/04 22:04:37 petere Exp $
+# config/docbook.m4
# PGAC_PROG_JADE
# --------------
diff --git a/config/general.m4 b/config/general.m4
index 52f850ea25..95d65ceb09 100644
--- a/config/general.m4
+++ b/config/general.m4
@@ -1,4 +1,4 @@
-# $PostgreSQL: pgsql/config/general.m4,v 1.11 2009/07/02 18:55:40 petere Exp $
+# config/general.m4
# This file defines new macros to process configure command line
# arguments, to replace the brain-dead AC_ARG_WITH and AC_ARG_ENABLE.
@@ -90,7 +90,7 @@ dnl values. But we only want it to appear once in the help. We achieve
dnl that by making the help string look the same, which is why we need to
dnl save the default that was passed in previously.
m4_define([_pgac_helpdefault], m4_ifdef([pgac_defined_$1_$2_bool], [m4_defn([pgac_defined_$1_$2_bool])], [$3]))dnl
-PGAC_ARG([$1], [$2], [m4_if(_pgac_helpdefault, yes, -)], [$4], [$5], [$6],
+PGAC_ARG([$1], [$2], [m4_if(_pgac_helpdefault, yes, -)], [$4], [$5], [$6],
[AC_MSG_ERROR([no argument expected for --$1-$2 option])],
[m4_case([$3],
yes, [pgac_arg_to_variable([$1], [$2])=yes
diff --git a/config/install-sh b/config/install-sh
index bdcfd39c63..fdca6338c2 100755
--- a/config/install-sh
+++ b/config/install-sh
@@ -1,7 +1,7 @@
#!/bin/sh
# install - install a program, script, or datafile
-# $PostgreSQL: pgsql/config/install-sh,v 1.8 2009/08/26 22:24:42 petere Exp $
+# config/install-sh
scriptversion=2009-08-26.20
diff --git a/config/missing b/config/missing
index 5426c6d2ec..6df77e9473 100755
--- a/config/missing
+++ b/config/missing
@@ -1,6 +1,6 @@
#! /bin/sh
-# $PostgreSQL: pgsql/config/missing,v 1.7 2010/02/22 21:16:50 momjian Exp $
+# config/missing
# This is *not* the GNU `missing' script, although it is similar in
# concept. You can call it from the makefiles to get consistent
diff --git a/config/perl.m4 b/config/perl.m4
index 165034b0fd..d602a5bb1b 100644
--- a/config/perl.m4
+++ b/config/perl.m4
@@ -1,4 +1,4 @@
-# $PostgreSQL: pgsql/config/perl.m4,v 1.9 2010/02/23 18:35:06 tgl Exp $
+# config/perl.m4
# PGAC_PATH_PERL
@@ -24,7 +24,7 @@ fi
if test -z "$PERL"; then
AC_MSG_WARN([
-*** Without Perl you will not be able to build PostgreSQL from CVS.
+*** Without Perl you will not be able to build PostgreSQL from Git.
*** You can obtain Perl from any CPAN mirror site.
*** (If you are using the official distribution of PostgreSQL then you do not
*** need to worry about this, because the Perl output is pre-generated.)])
diff --git a/config/prep_buildtree b/config/prep_buildtree
index 57d7719673..5b72c392f6 100644
--- a/config/prep_buildtree
+++ b/config/prep_buildtree
@@ -22,7 +22,11 @@ sourcetree=`cd $1 && pwd`
buildtree=`cd ${2:-'.'} && pwd`
-for item in `find "$sourcetree" -type d \( -name CVS -prune -o -print \)`; do
+# We must not auto-create the subdirectories holding built documentation.
+# If we did, it would interfere with installation of prebuilt docs from
+# the source tree, if a VPATH build is done from a distribution tarball.
+# See bug #5595.
+for item in `find "$sourcetree" -type d \( \( -name CVS -prune \) -o \( -name .git -prune \) -o -print \) | grep -v "$sourcetree/doc/src/sgml/\+"`; do
subdir=`expr "$item" : "$sourcetree\(.*\)"`
if test ! -d "$buildtree/$subdir"; then
mkdir -p "$buildtree/$subdir" || exit 1
diff --git a/config/programs.m4 b/config/programs.m4
index 594729cbb1..565195d06d 100644
--- a/config/programs.m4
+++ b/config/programs.m4
@@ -1,4 +1,4 @@
-# $PostgreSQL: pgsql/config/programs.m4,v 1.28 2010/02/22 21:16:50 momjian Exp $
+# config/programs.m4
# PGAC_PATH_BISON
@@ -27,7 +27,7 @@ fi
if test -z "$BISON"; then
AC_MSG_WARN([
-*** Without Bison you will not be able to build PostgreSQL from CVS nor
+*** Without Bison you will not be able to build PostgreSQL from Git nor
*** change any of the parser definition files. You can obtain Bison from
*** a GNU mirror site. (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this, because the Bison
@@ -89,7 +89,7 @@ fi
if test x"$pgac_cv_path_flex" = x"no"; then
AC_MSG_WARN([
-*** Without Flex you will not be able to build PostgreSQL from CVS nor
+*** Without Flex you will not be able to build PostgreSQL from Git nor
*** change any of the scanner definition files. You can obtain Flex from
*** a GNU mirror site. (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this because the Flex
@@ -117,7 +117,7 @@ AC_SUBST(FLEXFLAGS)
AC_DEFUN([PGAC_CHECK_READLINE],
[AC_REQUIRE([AC_CANONICAL_HOST])
-AC_CACHE_VAL([pgac_cv_check_readline],
+AC_CACHE_CHECK([for library containing readline], [pgac_cv_check_readline],
[pgac_cv_check_readline=no
pgac_save_LIBS=$LIBS
if test x"$with_libedit_preferred" != x"yes"
@@ -125,7 +125,6 @@ then READLINE_ORDER="-lreadline -ledit"
else READLINE_ORDER="-ledit -lreadline"
fi
for pgac_rllib in $READLINE_ORDER ; do
- AC_MSG_CHECKING([for ${pgac_rllib}])
for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
AC_TRY_LINK_FUNC([readline], [[
@@ -144,14 +143,11 @@ for pgac_rllib in $READLINE_ORDER ; do
]])
done
if test "$pgac_cv_check_readline" != no ; then
- AC_MSG_RESULT([yes ($pgac_cv_check_readline)])
break
- else
- AC_MSG_RESULT(no)
fi
done
LIBS=$pgac_save_LIBS
-])[]dnl AC_CACHE_VAL
+])[]dnl AC_CACHE_CHECK
if test "$pgac_cv_check_readline" != no ; then
LIBS="$pgac_cv_check_readline $LIBS"
@@ -167,8 +163,8 @@ fi
# Readline versions < 2.1 don't have rl_completion_append_character
AC_DEFUN([PGAC_VAR_RL_COMPLETION_APPEND_CHARACTER],
-[AC_MSG_CHECKING([for rl_completion_append_character])
-AC_TRY_LINK([#include <stdio.h>
+[AC_CACHE_CHECK([for rl_completion_append_character], pgac_cv_var_rl_completion_append_character,
+[AC_TRY_LINK([#include <stdio.h>
#ifdef HAVE_READLINE_READLINE_H
# include <readline/readline.h>
#elif defined(HAVE_READLINE_H)
@@ -176,10 +172,12 @@ AC_TRY_LINK([#include <stdio.h>
#endif
],
[rl_completion_append_character = 'x';],
-[AC_MSG_RESULT(yes)
+[pgac_cv_var_rl_completion_append_character=yes],
+[pgac_cv_var_rl_completion_append_character=no])])
+if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
AC_DEFINE(HAVE_RL_COMPLETION_APPEND_CHARACTER, 1,
- [Define to 1 if you have the global variable 'rl_completion_append_character'.])],
-[AC_MSG_RESULT(no)])])# PGAC_VAR_RL_COMPLETION_APPEND_CHARACTER
+ [Define to 1 if you have the global variable 'rl_completion_append_character'.])
+fi])# PGAC_VAR_RL_COMPLETION_APPEND_CHARACTER
diff --git a/config/python.m4 b/config/python.m4
index 7b6a14ed21..ec357c2e48 100644
--- a/config/python.m4
+++ b/config/python.m4
@@ -1,7 +1,7 @@
#
# Autoconf macros for configuring the build of Python extension modules
#
-# $PostgreSQL: pgsql/config/python.m4,v 1.18 2010/03/17 22:02:44 petere Exp $
+# config/python.m4
#
# PGAC_PATH_PYTHON
diff --git a/config/tcl.m4 b/config/tcl.m4
index ae0d3b78be..e8860573a6 100644
--- a/config/tcl.m4
+++ b/config/tcl.m4
@@ -1,4 +1,4 @@
-# $PostgreSQL: pgsql/config/tcl.m4,v 1.8 2009/02/03 01:24:57 adunstan Exp $
+# config/tcl.m4
# Autoconf macros to check for Tcl related things
diff --git a/configure b/configure
index 57676d71ce..abba43d594 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.63 for PostgreSQL 9.0beta3.
+# Generated by GNU Autoconf 2.63 for PostgreSQL 9.1beta2.
#
# Report bugs to <[email protected]>.
#
@@ -9,7 +9,7 @@
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
#
-# Copyright (c) 1996-2010, PostgreSQL Global Development Group
+# Copyright (c) 1996-2011, PostgreSQL Global Development Group
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
@@ -599,8 +599,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='PostgreSQL'
PACKAGE_TARNAME='postgresql'
-PACKAGE_VERSION='9.0beta3'
-PACKAGE_STRING='PostgreSQL 9.0beta3'
+PACKAGE_VERSION='9.1beta2'
+PACKAGE_STRING='PostgreSQL 9.1beta2'
PACKAGE_BUGREPORT='[email protected]'
ac_unique_file="src/backend/access/common/heaptuple.c"
@@ -668,6 +668,7 @@ PTHREAD_CFLAGS
PTHREAD_LIBS
PTHREAD_CC
acx_pthread_config
+have_win32_dbghelp
HAVE_IPV6
LIBOBJS
OSSP_UUID_LIBS
@@ -715,6 +716,7 @@ with_libxslt
with_libxml
XML2_CONFIG
with_ossp_uuid
+with_selinux
with_openssl
with_bonjour
with_ldap
@@ -837,6 +839,7 @@ with_pam
with_ldap
with_bonjour
with_openssl
+with_selinux
with_readline
with_libedit_preferred
with_ossp_uuid
@@ -1413,7 +1416,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures PostgreSQL 9.0beta3 to adapt to many kinds of systems.
+\`configure' configures PostgreSQL 9.1beta2 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1478,7 +1481,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of PostgreSQL 9.0beta3:";;
+ short | recursive ) echo "Configuration of PostgreSQL 9.1beta2:";;
esac
cat <<\_ACEOF
@@ -1533,11 +1536,11 @@ Optional Packages:
--with-ldap build with LDAP support
--with-bonjour build with Bonjour support
--with-openssl build with OpenSSL support
+ --with-selinux build with SELinux support
--without-readline do not use GNU Readline nor BSD Libedit for editing
--with-libedit-preferred
prefer BSD Libedit over GNU Readline
- --with-ossp-uuid use OSSP UUID library when building
- contrib/uuid-ossp
+ --with-ossp-uuid build contrib/uuid-ossp, requires OSSP UUID library
--with-libxml build with XML support
--with-libxslt use XSLT support when building contrib/xml2
--with-system-tzdata=DIR
@@ -1625,7 +1628,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-PostgreSQL configure 9.0beta3
+PostgreSQL configure 9.1beta2
generated by GNU Autoconf 2.63
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1633,7 +1636,7 @@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
-Copyright (c) 1996-2010, PostgreSQL Global Development Group
+Copyright (c) 1996-2011, PostgreSQL Global Development Group
_ACEOF
exit
fi
@@ -1641,7 +1644,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by PostgreSQL $as_me 9.0beta3, which was
+It was created by PostgreSQL $as_me 9.1beta2, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ $0 $@
@@ -2191,6 +2194,7 @@ case $host_os in
bsdi*) template=bsdi ;;
cygwin*) template=cygwin ;;
darwin*) template=darwin ;;
+dragonfly*) template=netbsd ;;
dgux*) template=dgux ;;
freebsd*) template=freebsd ;;
hpux*) template=hpux ;;
@@ -4000,10 +4004,15 @@ fi
if test "$GCC" = yes -a "$ICC" = no; then
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
# These work in some but not all gcc versions
- { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
-$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
-pgac_save_CFLAGS=$CFLAGS
+ { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
+$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
+if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ pgac_save_CFLAGS=$CFLAGS
CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
+ac_save_c_werror_flag=$ac_c_werror_flag
+ac_c_werror_flag=yes
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -4037,23 +4046,33 @@ $as_echo "$ac_try_echo") >&5
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
- { $as_echo "$as_me:$LINENO: result: yes" >&5
-$as_echo "yes" >&6; }
+ pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- CFLAGS="$pgac_save_CFLAGS"
- { $as_echo "$as_me:$LINENO: result: no" >&5
-$as_echo "no" >&6; }
+ pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_c_werror_flag=$ac_save_c_werror_flag
+CFLAGS="$pgac_save_CFLAGS"
+fi
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
+$as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
+if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
+ CFLAGS="$CFLAGS -Wdeclaration-after-statement"
+fi
- { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
-$as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
-pgac_save_CFLAGS=$CFLAGS
+ { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
+$as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
+if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ pgac_save_CFLAGS=$CFLAGS
CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
+ac_save_c_werror_flag=$ac_c_werror_flag
+ac_c_werror_flag=yes
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -4087,24 +4106,95 @@ $as_echo "$ac_try_echo") >&5
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
- { $as_echo "$as_me:$LINENO: result: yes" >&5
-$as_echo "yes" >&6; }
+ pgac_cv_prog_cc_cflags__Wendif_labels=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- CFLAGS="$pgac_save_CFLAGS"
- { $as_echo "$as_me:$LINENO: result: no" >&5
-$as_echo "no" >&6; }
+ pgac_cv_prog_cc_cflags__Wendif_labels=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_c_werror_flag=$ac_save_c_werror_flag
+CFLAGS="$pgac_save_CFLAGS"
+fi
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
+$as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
+if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
+ CFLAGS="$CFLAGS -Wendif-labels"
+fi
+
+ # This was included in -Wall/-Wformat in older GCC versions
+ { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
+$as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
+if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ pgac_save_CFLAGS=$CFLAGS
+CFLAGS="$pgac_save_CFLAGS -Wformat-security"
+ac_save_c_werror_flag=$ac_c_werror_flag
+ac_c_werror_flag=yes
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ pgac_cv_prog_cc_cflags__Wformat_security=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ pgac_cv_prog_cc_cflags__Wformat_security=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_c_werror_flag=$ac_save_c_werror_flag
+CFLAGS="$pgac_save_CFLAGS"
+fi
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
+$as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
+if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
+ CFLAGS="$CFLAGS -Wformat-security"
+fi
# Disable strict-aliasing rules; needed for gcc 3.3+
- { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
-$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
-pgac_save_CFLAGS=$CFLAGS
+ { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
+$as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
+if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ pgac_save_CFLAGS=$CFLAGS
CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
+ac_save_c_werror_flag=$ac_c_werror_flag
+ac_c_werror_flag=yes
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -4138,24 +4228,34 @@ $as_echo "$ac_try_echo") >&5
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
- { $as_echo "$as_me:$LINENO: result: yes" >&5
-$as_echo "yes" >&6; }
+ pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- CFLAGS="$pgac_save_CFLAGS"
- { $as_echo "$as_me:$LINENO: result: no" >&5
-$as_echo "no" >&6; }
+ pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_c_werror_flag=$ac_save_c_werror_flag
+CFLAGS="$pgac_save_CFLAGS"
+fi
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
+$as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
+if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
+ CFLAGS="$CFLAGS -fno-strict-aliasing"
+fi
# Disable optimizations that assume no overflow; needed for gcc 4.3+
- { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
-$as_echo_n "checking if $CC supports -fwrapv... " >&6; }
-pgac_save_CFLAGS=$CFLAGS
+ { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
+$as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
+if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ pgac_save_CFLAGS=$CFLAGS
CFLAGS="$pgac_save_CFLAGS -fwrapv"
+ac_save_c_werror_flag=$ac_c_werror_flag
+ac_c_werror_flag=yes
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -4189,26 +4289,36 @@ $as_echo "$ac_try_echo") >&5
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
- { $as_echo "$as_me:$LINENO: result: yes" >&5
-$as_echo "yes" >&6; }
+ pgac_cv_prog_cc_cflags__fwrapv=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- CFLAGS="$pgac_save_CFLAGS"
- { $as_echo "$as_me:$LINENO: result: no" >&5
-$as_echo "no" >&6; }
+ pgac_cv_prog_cc_cflags__fwrapv=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_c_werror_flag=$ac_save_c_werror_flag
+CFLAGS="$pgac_save_CFLAGS"
+fi
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
+$as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
+if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
+ CFLAGS="$CFLAGS -fwrapv"
+fi
elif test "$ICC" = yes; then
# Intel's compiler has a bug/misoptimization in checking for
# division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
- { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
-$as_echo_n "checking if $CC supports -mp1... " >&6; }
-pgac_save_CFLAGS=$CFLAGS
+ { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
+$as_echo_n "checking whether $CC supports -mp1... " >&6; }
+if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ pgac_save_CFLAGS=$CFLAGS
CFLAGS="$pgac_save_CFLAGS -mp1"
+ac_save_c_werror_flag=$ac_c_werror_flag
+ac_c_werror_flag=yes
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -4242,24 +4352,34 @@ $as_echo "$ac_try_echo") >&5
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
- { $as_echo "$as_me:$LINENO: result: yes" >&5
-$as_echo "yes" >&6; }
+ pgac_cv_prog_cc_cflags__mp1=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- CFLAGS="$pgac_save_CFLAGS"
- { $as_echo "$as_me:$LINENO: result: no" >&5
-$as_echo "no" >&6; }
+ pgac_cv_prog_cc_cflags__mp1=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_c_werror_flag=$ac_save_c_werror_flag
+CFLAGS="$pgac_save_CFLAGS"
+fi
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
+$as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
+if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
+ CFLAGS="$CFLAGS -mp1"
+fi
# Make sure strict aliasing is off (though this is said to be the default)
- { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
-$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
-pgac_save_CFLAGS=$CFLAGS
+ { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
+$as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
+if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ pgac_save_CFLAGS=$CFLAGS
CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
+ac_save_c_werror_flag=$ac_c_werror_flag
+ac_c_werror_flag=yes
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -4293,25 +4413,35 @@ $as_echo "$ac_try_echo") >&5
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
- { $as_echo "$as_me:$LINENO: result: yes" >&5
-$as_echo "yes" >&6; }
+ pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- CFLAGS="$pgac_save_CFLAGS"
- { $as_echo "$as_me:$LINENO: result: no" >&5
-$as_echo "no" >&6; }
+ pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_c_werror_flag=$ac_save_c_werror_flag
+CFLAGS="$pgac_save_CFLAGS"
+fi
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
+$as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
+if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
+ CFLAGS="$CFLAGS -fno-strict-aliasing"
+fi
elif test "$PORTNAME" = "aix"; then
# AIX's xlc has to have strict aliasing turned off too
- { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
-$as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
-pgac_save_CFLAGS=$CFLAGS
+ { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
+$as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
+if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ pgac_save_CFLAGS=$CFLAGS
CFLAGS="$pgac_save_CFLAGS -qnoansialias"
+ac_save_c_werror_flag=$ac_c_werror_flag
+ac_c_werror_flag=yes
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -4345,18 +4475,86 @@ $as_echo "$ac_try_echo") >&5
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
- { $as_echo "$as_me:$LINENO: result: yes" >&5
-$as_echo "yes" >&6; }
+ pgac_cv_prog_cc_cflags__qnoansialias=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- CFLAGS="$pgac_save_CFLAGS"
- { $as_echo "$as_me:$LINENO: result: no" >&5
-$as_echo "no" >&6; }
+ pgac_cv_prog_cc_cflags__qnoansialias=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_c_werror_flag=$ac_save_c_werror_flag
+CFLAGS="$pgac_save_CFLAGS"
+fi
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
+$as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
+if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
+ CFLAGS="$CFLAGS -qnoansialias"
+fi
+
+elif test "$PORTNAME" = "hpux"; then
+ # On some versions of HP-UX, libm functions do not set errno by default.
+ # Fix that by using +Olibmerrno if the compiler recognizes it.
+ { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
+$as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
+if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ pgac_save_CFLAGS=$CFLAGS
+CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
+ac_save_c_werror_flag=$ac_c_werror_flag
+ac_c_werror_flag=yes
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ pgac_cv_prog_cc_cflags_pOlibmerrno=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ pgac_cv_prog_cc_cflags_pOlibmerrno=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_c_werror_flag=$ac_save_c_werror_flag
+CFLAGS="$pgac_save_CFLAGS"
+fi
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
+$as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
+if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
+ CFLAGS="$CFLAGS +Olibmerrno"
+fi
fi
@@ -5315,6 +5513,40 @@ fi
$as_echo "$with_openssl" >&6; }
+#
+# SELinux
+#
+{ $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
+$as_echo_n "checking whether to build with SELinux support... " >&6; }
+
+
+
+# Check whether --with-selinux was given.
+if test "${with_selinux+set}" = set; then
+ withval=$with_selinux;
+ case $withval in
+ yes)
+ :
+ ;;
+ no)
+ :
+ ;;
+ *)
+ { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
+$as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+ esac
+
+else
+ with_selinux=no
+
+fi
+
+
+
+{ $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
+$as_echo "$with_selinux" >&6; }
#
# Readline
@@ -6739,13 +6971,13 @@ fi
if test -z "$BISON"; then
{ $as_echo "$as_me:$LINENO: WARNING:
-*** Without Bison you will not be able to build PostgreSQL from CVS nor
+*** Without Bison you will not be able to build PostgreSQL from Git nor
*** change any of the parser definition files. You can obtain Bison from
*** a GNU mirror site. (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this, because the Bison
*** output is pre-generated.)" >&5
$as_echo "$as_me: WARNING:
-*** Without Bison you will not be able to build PostgreSQL from CVS nor
+*** Without Bison you will not be able to build PostgreSQL from Git nor
*** change any of the parser definition files. You can obtain Bison from
*** a GNU mirror site. (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this, because the Bison
@@ -6803,13 +7035,13 @@ fi
$as_echo "$pgac_cv_path_flex" >&6; }
if test x"$pgac_cv_path_flex" = x"no"; then
{ $as_echo "$as_me:$LINENO: WARNING:
-*** Without Flex you will not be able to build PostgreSQL from CVS nor
+*** Without Flex you will not be able to build PostgreSQL from Git nor
*** change any of the scanner definition files. You can obtain Flex from
*** a GNU mirror site. (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this because the Flex
*** output is pre-generated.)" >&5
$as_echo "$as_me: WARNING:
-*** Without Flex you will not be able to build PostgreSQL from CVS nor
+*** Without Flex you will not be able to build PostgreSQL from Git nor
*** change any of the scanner definition files. You can obtain Flex from
*** a GNU mirror site. (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this because the Flex
@@ -6890,12 +7122,12 @@ fi
if test -z "$PERL"; then
{ $as_echo "$as_me:$LINENO: WARNING:
-*** Without Perl you will not be able to build PostgreSQL from CVS.
+*** Without Perl you will not be able to build PostgreSQL from Git.
*** You can obtain Perl from any CPAN mirror site.
*** (If you are using the official distribution of PostgreSQL then you do not
*** need to worry about this, because the Perl output is pre-generated.)" >&5
$as_echo "$as_me: WARNING:
-*** Without Perl you will not be able to build PostgreSQL from CVS.
+*** Without Perl you will not be able to build PostgreSQL from Git.
*** You can obtain Perl from any CPAN mirror site.
*** (If you are using the official distribution of PostgreSQL then you do not
*** need to worry about this, because the Perl output is pre-generated.)" >&2;}
@@ -8082,6 +8314,8 @@ fi
if test "$with_readline" = yes; then
+{ $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
+$as_echo_n "checking for library containing readline... " >&6; }
if test "${pgac_cv_check_readline+set}" = set; then
$as_echo_n "(cached) " >&6
else
@@ -8092,8 +8326,6 @@ then READLINE_ORDER="-lreadline -ledit"
else READLINE_ORDER="-ledit -lreadline"
fi
for pgac_rllib in $READLINE_ORDER ; do
- { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
-$as_echo_n "checking for ${pgac_rllib}... " >&6; }
for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
cat >conftest.$ac_ext <<_ACEOF
@@ -8165,18 +8397,14 @@ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
done
if test "$pgac_cv_check_readline" != no ; then
- { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
-$as_echo "yes ($pgac_cv_check_readline)" >&6; }
break
- else
- { $as_echo "$as_me:$LINENO: result: no" >&5
-$as_echo "no" >&6; }
fi
done
LIBS=$pgac_save_LIBS
fi
-
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
+$as_echo "$pgac_cv_check_readline" >&6; }
if test "$pgac_cv_check_readline" != no ; then
LIBS="$pgac_cv_check_readline $LIBS"
@@ -9246,6 +9474,89 @@ fi
fi
+# for contrib/sepgsql
+if test "$with_selinux" = yes; then
+
+{ $as_echo "$as_me:$LINENO: checking for selinux_sepgsql_context_path in -lselinux" >&5
+$as_echo_n "checking for selinux_sepgsql_context_path in -lselinux... " >&6; }
+if test "${ac_cv_lib_selinux_selinux_sepgsql_context_path+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lselinux $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char selinux_sepgsql_context_path ();
+int
+main ()
+{
+return selinux_sepgsql_context_path ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_selinux_selinux_sepgsql_context_path=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_selinux_selinux_sepgsql_context_path=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_sepgsql_context_path" >&5
+$as_echo "$ac_cv_lib_selinux_selinux_sepgsql_context_path" >&6; }
+if test "x$ac_cv_lib_selinux_selinux_sepgsql_context_path" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBSELINUX 1
+_ACEOF
+
+ LIBS="-lselinux $LIBS"
+
+else
+ { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.93 or newer, is required for SELinux support" >&5
+$as_echo "$as_me: error: library 'libselinux', version 2.0.93 or newer, is required for SELinux support" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+fi
+
# for contrib/uuid-ossp
if test "$with_ossp_uuid" = yes ; then
{ $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
@@ -9680,7 +9991,8 @@ done
-for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
+
+for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -16607,66 +16919,23 @@ _ACEOF
fi
-{ $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
-$as_echo_n "checking for struct cmsgcred... " >&6; }
-if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
+{ $as_echo "$as_me:$LINENO: checking for locale_t" >&5
+$as_echo_n "checking for locale_t... " >&6; }
+if test "${pgac_cv_type_locale_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
- ac_cv_type_struct_cmsgcred=no
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ucred.h>
-
-int
-main ()
-{
-if (sizeof (struct cmsgcred))
- return 0;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
-$as_echo "$ac_try_echo") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ucred.h>
-
+#include <locale.h>
+locale_t x;
int
main ()
{
-if (sizeof ((struct cmsgcred)))
- return 0;
+
;
return 0;
}
@@ -16689,94 +16958,23 @@ $as_echo "$ac_try_echo") >&5
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
- :
+ pgac_cv_type_locale_t=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_type_struct_cmsgcred=yes
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-else
- $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
-$as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
-if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_STRUCT_CMSGCRED 1
-_ACEOF
-
-
-fi
-{ $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
-$as_echo_n "checking for struct fcred... " >&6; }
-if test "${ac_cv_type_struct_fcred+set}" = set; then
- $as_echo_n "(cached) " >&6
-else
- ac_cv_type_struct_fcred=no
-cat >conftest.$ac_ext <<_ACEOF
+ cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ucred.h>
-
+#include <xlocale.h>
+locale_t x;
int
main ()
{
-if (sizeof (struct fcred))
- return 0;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
-$as_echo "$ac_try_echo") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ucred.h>
-int
-main ()
-{
-if (sizeof ((struct fcred)))
- return 0;
;
return 0;
}
@@ -16799,55 +16997,57 @@ $as_echo "$ac_try_echo") >&5
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
- :
+ pgac_cv_type_locale_t='yes (in xlocale.h)'
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_type_struct_fcred=yes
+ pgac_cv_type_locale_t=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-else
- $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
-$as_echo "$ac_cv_type_struct_fcred" >&6; }
-if test "x$ac_cv_type_struct_fcred" = x""yes; then
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
+$as_echo "$pgac_cv_type_locale_t" >&6; }
+if test "$pgac_cv_type_locale_t" != no; then
-cat >>confdefs.h <<_ACEOF
-#define HAVE_STRUCT_FCRED 1
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LOCALE_T 1
_ACEOF
+fi
+if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
+
+cat >>confdefs.h <<\_ACEOF
+#define LOCALE_T_IN_XLOCALE 1
+_ACEOF
fi
-{ $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
-$as_echo_n "checking for struct sockcred... " >&6; }
-if test "${ac_cv_type_struct_sockcred+set}" = set; then
+
+{ $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
+$as_echo_n "checking for struct cmsgcred... " >&6; }
+if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
$as_echo_n "(cached) " >&6
else
- ac_cv_type_struct_sockcred=no
+ ac_cv_type_struct_cmsgcred=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <sys/param.h>
-#include <sys/types.h>
#include <sys/socket.h>
+#ifdef HAVE_SYS_UCRED_H
#include <sys/ucred.h>
+#endif
int
main ()
{
-if (sizeof (struct sockcred))
+if (sizeof (struct cmsgcred))
return 0;
;
return 0;
@@ -16877,15 +17077,15 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <sys/param.h>
-#include <sys/types.h>
#include <sys/socket.h>
+#ifdef HAVE_SYS_UCRED_H
#include <sys/ucred.h>
+#endif
int
main ()
{
-if (sizeof ((struct sockcred)))
+if (sizeof ((struct cmsgcred)))
return 0;
;
return 0;
@@ -16914,7 +17114,7 @@ else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_type_struct_sockcred=yes
+ ac_cv_type_struct_cmsgcred=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
@@ -16927,12 +17127,12 @@ fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
-$as_echo "$ac_cv_type_struct_sockcred" >&6; }
-if test "x$ac_cv_type_struct_sockcred" = x""yes; then
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
+$as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
+if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
cat >>confdefs.h <<_ACEOF
-#define HAVE_STRUCT_SOCKCRED 1
+#define HAVE_STRUCT_CMSGCRED 1
_ACEOF
@@ -18473,8 +18673,8 @@ else
if test "${ac_cv_func_accept_arg3+set}" = set; then
$as_echo_n "(cached) " >&6
else
- for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
- for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
+ for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET'; do
+ for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
cat >conftest.$ac_ext <<_ACEOF
@@ -18653,7 +18853,7 @@ fi
-for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
+for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -20224,7 +20424,8 @@ LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
-for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
+
+for ac_func in crypt erand48 getopt getpeereid getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -20714,6 +20915,23 @@ esac
fi
+# mingw has adopted a GNU-centric interpretation of optind/optreset,
+# so always use our version on Windows.
+if test "$PORTNAME" = "win32"; then
+ case " $LIBOBJS " in
+ *" getopt.$ac_objext "* ) ;;
+ *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
+ ;;
+esac
+
+ case " $LIBOBJS " in
+ *" getopt_long.$ac_objext "* ) ;;
+ *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
+ ;;
+esac
+
+fi
+
# Cygwin's erand48() is broken (always returns zero) in some releases,
# so force use of ours.
if test "$PORTNAME" = "cygwin"; then
@@ -20836,25 +21054,25 @@ fi
done
-case " $LIBOBJS " in
+ case " $LIBOBJS " in
*" kill.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS kill.$ac_objext"
;;
esac
-case " $LIBOBJS " in
+ case " $LIBOBJS " in
*" open.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS open.$ac_objext"
;;
esac
-case " $LIBOBJS " in
+ case " $LIBOBJS " in
*" win32env.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS win32env.$ac_objext"
;;
esac
-case " $LIBOBJS " in
+ case " $LIBOBJS " in
*" win32error.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS win32error.$ac_objext"
;;
@@ -20865,12 +21083,137 @@ cat >>confdefs.h <<\_ACEOF
#define HAVE_SYMLINK 1
_ACEOF
+ { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
+$as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
+if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_type_MINIDUMP_TYPE=no
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <string.h>
+#include <dbghelp.h>
+
+int
+main ()
+{
+if (sizeof (MINIDUMP_TYPE))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <string.h>
+#include <dbghelp.h>
+
+int
+main ()
+{
+if (sizeof ((MINIDUMP_TYPE)))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_type_MINIDUMP_TYPE=yes
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
+$as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
+if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_MINIDUMP_TYPE 1
+_ACEOF
+
+pgac_minidump_type=yes
+else
+ pgac_minidump_type=no
+fi
+
+fi
+if test x"$pgac_minidump_type" = x"yes" ; then
+ have_win32_dbghelp=yes
+
+else
+ have_win32_dbghelp=no
+
fi
if test "$with_readline" = yes; then
{ $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
$as_echo_n "checking for rl_completion_append_character... " >&6; }
-cat >conftest.$ac_ext <<_ACEOF
+if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -20912,24 +21255,27 @@ $as_echo "$ac_try_echo") >&5
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
- { $as_echo "$as_me:$LINENO: result: yes" >&5
-$as_echo "yes" >&6; }
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
-_ACEOF
-
+ pgac_cv_var_rl_completion_append_character=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- { $as_echo "$as_me:$LINENO: result: no" >&5
-$as_echo "no" >&6; }
+ pgac_cv_var_rl_completion_append_character=no
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
+$as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
+if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
+_ACEOF
+
+fi
for ac_func in rl_completion_matches rl_filename_completion_function
@@ -21139,7 +21485,10 @@ fi
{ $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
$as_echo_n "checking for sigsetjmp... " >&6; }
-cat >conftest.$ac_ext <<_ACEOF
+if test "${pgac_cv_func_sigsetjmp+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -21175,24 +21524,27 @@ $as_echo "$ac_try_echo") >&5
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_SIGSETJMP 1
-_ACEOF
-
-{ $as_echo "$as_me:$LINENO: result: yes" >&5
-$as_echo "yes" >&6; }
+ pgac_cv_func_sigsetjmp=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- { $as_echo "$as_me:$LINENO: result: no" >&5
-$as_echo "no" >&6; }
+ pgac_cv_func_sigsetjmp=no
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
+$as_echo "$pgac_cv_func_sigsetjmp" >&6; }
+if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SIGSETJMP 1
+_ACEOF
+
+fi
{ $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
$as_echo_n "checking whether sys_siglist is declared... " >&6; }
@@ -22332,7 +22684,8 @@ main (int argc, char **argv)
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
- if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
+ # Check both linking and compiling, because they might tolerate different options.
+ if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
# we continue with more flags because Linux needs -lpthread
# for libpq builds on PostgreSQL. The test above only
# tests for building binaries, not shared libraries.
@@ -27774,6 +28127,13 @@ _ACEOF
SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
fi
+# Select latch implementation type.
+if test "$PORTNAME" != "win32"; then
+ LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
+else
+ LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
+fi
+
# If not set in template file, set bytes to use libc memset()
if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
MEMSET_LOOP_LIMIT=1024
@@ -28395,6 +28755,154 @@ fi
CPPFLAGS=$ac_save_CPPFLAGS
fi
+# check for <Python.h>
+if test "$with_python" = yes; then
+ ac_save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$python_includespec $CPPFLAGS"
+ if test "${ac_cv_header_Python_h+set}" = set; then
+ { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
+$as_echo_n "checking for Python.h... " >&6; }
+if test "${ac_cv_header_Python_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
+$as_echo "$ac_cv_header_Python_h" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
+$as_echo_n "checking Python.h usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <Python.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
+$as_echo_n "checking Python.h presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <Python.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ---------------------------------------- ##
+## Report this to [email protected] ##
+## ---------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for Python.h" >&5
+$as_echo_n "checking for Python.h... " >&6; }
+if test "${ac_cv_header_Python_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_header_Python_h=$ac_header_preproc
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
+$as_echo "$ac_cv_header_Python_h" >&6; }
+
+fi
+if test "x$ac_cv_header_Python_h" = x""yes; then
+ :
+else
+ { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
+$as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+
+ CPPFLAGS=$ac_save_CPPFLAGS
+fi
+
#
# Check for DocBook and tools
#
@@ -28841,14 +29349,15 @@ else
fi
if test "$PORTNAME" = "darwin"; then
- { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
-$as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
-pgac_save_LDFLAGS=$LDFLAGS
+ { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
+$as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
+if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ pgac_save_LDFLAGS=$LDFLAGS
LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
if test "$cross_compiling" = yes; then
- LDFLAGS="$pgac_save_LDFLAGS"
- { $as_echo "$as_me:$LINENO: result: assuming no" >&5
-$as_echo "assuming no" >&6; }
+ pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
@@ -28887,33 +29396,38 @@ $as_echo "$ac_try_echo") >&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- { $as_echo "$as_me:$LINENO: result: yes" >&5
-$as_echo "yes" >&6; }
+ pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
-LDFLAGS="$pgac_save_LDFLAGS"
- { $as_echo "$as_me:$LINENO: result: no" >&5
-$as_echo "no" >&6; }
+pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
+LDFLAGS="$pgac_save_LDFLAGS"
+fi
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
+$as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
+if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
+ LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
+fi
elif test "$PORTNAME" = "openbsd"; then
- { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
-$as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
-pgac_save_LDFLAGS=$LDFLAGS
+ { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
+$as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
+if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ pgac_save_LDFLAGS=$LDFLAGS
LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
if test "$cross_compiling" = yes; then
- LDFLAGS="$pgac_save_LDFLAGS"
- { $as_echo "$as_me:$LINENO: result: assuming no" >&5
-$as_echo "assuming no" >&6; }
+ pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
@@ -28952,33 +29466,38 @@ $as_echo "$ac_try_echo") >&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- { $as_echo "$as_me:$LINENO: result: yes" >&5
-$as_echo "yes" >&6; }
+ pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
-LDFLAGS="$pgac_save_LDFLAGS"
- { $as_echo "$as_me:$LINENO: result: no" >&5
-$as_echo "no" >&6; }
+pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
+LDFLAGS="$pgac_save_LDFLAGS"
+fi
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
+$as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
+if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
+ LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
+fi
else
- { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
-$as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
-pgac_save_LDFLAGS=$LDFLAGS
+ { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
+$as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
+if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ pgac_save_LDFLAGS=$LDFLAGS
LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
if test "$cross_compiling" = yes; then
- LDFLAGS="$pgac_save_LDFLAGS"
- { $as_echo "$as_me:$LINENO: result: assuming no" >&5
-$as_echo "assuming no" >&6; }
+ pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
@@ -29017,23 +29536,27 @@ $as_echo "$ac_try_echo") >&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- { $as_echo "$as_me:$LINENO: result: yes" >&5
-$as_echo "yes" >&6; }
+ pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
-LDFLAGS="$pgac_save_LDFLAGS"
- { $as_echo "$as_me:$LINENO: result: no" >&5
-$as_echo "no" >&6; }
+pgac_cv_prog_cc_ldflags__Wl___as_needed=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
+LDFLAGS="$pgac_save_LDFLAGS"
+fi
+{ $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
+$as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
+if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
+ LDFLAGS="$LDFLAGS -Wl,--as-needed"
+fi
fi
@@ -29049,7 +29572,8 @@ $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
# Create compiler version string
if test x"$GCC" = x"yes" ; then
- cc_string="GCC `${CC} --version | sed q`"
+ cc_string=`${CC} --version | sed q`
+ case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
elif test x"$SUN_STUDIO_CC" = x"yes" ; then
cc_string=`${CC} -V 2>&1 | sed q`
else
@@ -29099,7 +29623,7 @@ fi
ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
-ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
+ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
if test "$PORTNAME" = "win32"; then
@@ -29533,7 +30057,7 @@ exec 6>&1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by PostgreSQL $as_me 9.0beta3, which was
+This file was extended by PostgreSQL $as_me 9.1beta2, which was
generated by GNU Autoconf 2.63. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -29600,7 +30124,7 @@ Report bugs to <[email protected]>."
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
-PostgreSQL config.status 9.0beta3
+PostgreSQL config.status 9.1beta2
configured by $0, generated by GNU Autoconf 2.63,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
@@ -29723,6 +30247,7 @@ do
"src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
"src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
"src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
+ "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
"src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
"src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
"src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
diff --git a/configure.in b/configure.in
index f5270c26b1..e6232afeaa 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.632 2010/07/09 02:43:12 scrappy Exp $
+dnl configure.in
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -17,13 +17,13 @@ dnl Read the Autoconf manual for details.
dnl
m4_pattern_forbid(^PGAC_)dnl to catch undefined macros
-AC_INIT([PostgreSQL], [9.0beta3], [[email protected]])
+AC_INIT([PostgreSQL], [9.1beta2], [[email protected]])
m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.63], [], [m4_fatal([Autoconf version 2.63 is required.
Untested combinations of 'autoconf' and PostgreSQL versions are not
recommended. You can remove the check from 'configure.in' but it is then
your responsibility whether the result works or not.])])
-AC_COPYRIGHT([Copyright (c) 1996-2010, PostgreSQL Global Development Group])
+AC_COPYRIGHT([Copyright (c) 1996-2011, PostgreSQL Global Development Group])
AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c])
AC_CONFIG_AUX_DIR(config)
AC_PREFIX_DEFAULT(/usr/local/pgsql)
@@ -58,6 +58,7 @@ case $host_os in
bsdi*) template=bsdi ;;
cygwin*) template=cygwin ;;
darwin*) template=darwin ;;
+dragonfly*) template=netbsd ;;
dgux*) template=dgux ;;
freebsd*) template=freebsd ;;
hpux*) template=hpux ;;
@@ -230,7 +231,7 @@ AC_SUBST(enable_coverage)
#
PGAC_ARG_BOOL(enable, dtrace, no,
[build with DTrace support],
-[AC_DEFINE([ENABLE_DTRACE], 1,
+[AC_DEFINE([ENABLE_DTRACE], 1,
[Define to 1 to enable DTrace support. (--enable-dtrace)])
AC_CHECK_PROGS(DTRACE, dtrace)
if test -z "$DTRACE"; then
@@ -262,14 +263,14 @@ AC_DEFINE_UNQUOTED([BLCKSZ], ${BLCKSZ}, [
can set it bigger if you need bigger tuples (although TOAST should
reduce the need to have large tuples, since fields can be spread
across multiple tuples).
-
+
BLCKSZ must be a power of 2. The maximum possible value of BLCKSZ
is currently 2^15 (32768). This is determined by the 15-bit widths
of the lp_off and lp_len fields in ItemIdData (see
include/storage/itemid.h).
-
+
Changing BLCKSZ requires an initdb.
-])
+])
#
# Relation segment size
@@ -288,7 +289,7 @@ AC_DEFINE_UNQUOTED([RELSEG_SIZE], ${RELSEG_SIZE}, [
RELSEG_SIZE is the maximum number of blocks allowed in one disk file.
Thus, the maximum size of a single file is RELSEG_SIZE * BLCKSZ;
relations bigger than that are divided into multiple files.
-
+
RELSEG_SIZE * BLCKSZ must be less than your OS' limit on file size.
This is often 2 GB or 4GB in a 32-bit operating system, unless you
have large file support enabled. By default, we make the limit 1 GB
@@ -329,7 +330,7 @@ AC_DEFINE_UNQUOTED([XLOG_BLCKSZ], ${XLOG_BLCKSZ}, [
buffers, else direct I/O may fail.
Changing XLOG_BLCKSZ requires an initdb.
-])
+])
#
# WAL segment size
@@ -429,6 +430,8 @@ if test "$GCC" = yes -a "$ICC" = no; then
# These work in some but not all gcc versions
PGAC_PROG_CC_CFLAGS_OPT([-Wdeclaration-after-statement])
PGAC_PROG_CC_CFLAGS_OPT([-Wendif-labels])
+ # This was included in -Wall/-Wformat in older GCC versions
+ PGAC_PROG_CC_CFLAGS_OPT([-Wformat-security])
# Disable strict-aliasing rules; needed for gcc 3.3+
PGAC_PROG_CC_CFLAGS_OPT([-fno-strict-aliasing])
# Disable optimizations that assume no overflow; needed for gcc 4.3+
@@ -442,6 +445,10 @@ elif test "$ICC" = yes; then
elif test "$PORTNAME" = "aix"; then
# AIX's xlc has to have strict aliasing turned off too
PGAC_PROG_CC_CFLAGS_OPT([-qnoansialias])
+elif test "$PORTNAME" = "hpux"; then
+ # On some versions of HP-UX, libm functions do not set errno by default.
+ # Fix that by using +Olibmerrno if the compiler recognizes it.
+ PGAC_PROG_CC_CFLAGS_OPT([+Olibmerrno])
fi
# supply -g if --enable-debug
@@ -461,7 +468,7 @@ fi
# enable profiling if --enable-profiling
if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
if test "$GCC" = yes; then
- AC_DEFINE([PROFILE_PID_DIR], 1,
+ AC_DEFINE([PROFILE_PID_DIR], 1,
[Define to 1 to allow profiling output to be saved separately for each process.])
CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
else
@@ -676,6 +683,13 @@ PGAC_ARG_BOOL(with, openssl, no, [build with OpenSSL support],
AC_MSG_RESULT([$with_openssl])
AC_SUBST(with_openssl)
+#
+# SELinux
+#
+AC_MSG_CHECKING([whether to build with SELinux support])
+PGAC_ARG_BOOL(with, selinux, no, [build with SELinux support])
+AC_SUBST(with_selinux)
+AC_MSG_RESULT([$with_selinux])
#
# Readline
@@ -703,7 +717,7 @@ PGAC_ARG_BOOL(with, libedit-preferred, no,
#
# OSSP UUID library
#
-PGAC_ARG_BOOL(with, ossp-uuid, no, [use OSSP UUID library when building contrib/uuid-ossp])
+PGAC_ARG_BOOL(with, ossp-uuid, no, [build contrib/uuid-ossp, requires OSSP UUID library])
AC_SUBST(with_ossp_uuid)
@@ -948,6 +962,12 @@ if test "$with_libxslt" = yes ; then
AC_CHECK_LIB(xslt, xsltCleanupGlobals, [], [AC_MSG_ERROR([library 'xslt' is required for XSLT support])])
fi
+# for contrib/sepgsql
+if test "$with_selinux" = yes; then
+ AC_CHECK_LIB(selinux, selinux_sepgsql_context_path, [],
+ [AC_MSG_ERROR([library 'libselinux', version 2.0.93 or newer, is required for SELinux support])])
+fi
+
# for contrib/uuid-ossp
if test "$with_ossp_uuid" = yes ; then
AC_CHECK_LIB(ossp-uuid, uuid_export,
@@ -964,7 +984,7 @@ AC_SUBST(OSSP_UUID_LIBS)
##
dnl sys/socket.h is required by AC_FUNC_ACCEPT_ARGTYPES
-AC_CHECK_HEADERS([crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h])
+AC_CHECK_HEADERS([crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h])
# On BSD, cpp test for net/if.h will fail unless sys/socket.h
# is included first.
@@ -1103,11 +1123,13 @@ AC_TYPE_INTPTR_T
AC_TYPE_UINTPTR_T
AC_TYPE_LONG_LONG_INT
-AC_CHECK_TYPES([struct cmsgcred, struct fcred, struct sockcred], [], [],
-[#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ucred.h>])
+PGAC_TYPE_LOCALE_T
+
+AC_CHECK_TYPES([struct cmsgcred], [], [],
+[#include <sys/socket.h>
+#ifdef HAVE_SYS_UCRED_H
+#include <sys/ucred.h>
+#endif])
AC_CHECK_TYPES([struct option], [], [],
[#ifdef HAVE_GETOPT_H
@@ -1141,7 +1163,7 @@ if test "$with_krb5" = yes; then
AC_MSG_CHECKING(for krb5_free_unparsed_name)
AC_TRY_LINK([#include <krb5.h>],
[krb5_free_unparsed_name(NULL,NULL);],
- [AC_DEFINE(HAVE_KRB5_FREE_UNPARSED_NAME, 1, [Define to 1 if you have krb5_free_unparsed_name])
+ [AC_DEFINE(HAVE_KRB5_FREE_UNPARSED_NAME, 1, [Define to 1 if you have krb5_free_unparsed_name])
AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)])
fi
@@ -1156,8 +1178,8 @@ AC_SYS_LARGEFILE
AC_CHECK_SIZEOF([off_t])
# If we don't have largefile support, can't handle segsize >= 2GB.
-if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
- AC_MSG_ERROR([Large file support is not enabled. Segment size cannot be larger than 1GB.])
+if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
+ AC_MSG_ERROR([Large file support is not enabled. Segment size cannot be larger than 1GB.])
fi
@@ -1169,7 +1191,7 @@ PGAC_VAR_INT_TIMEZONE
AC_FUNC_ACCEPT_ARGTYPES
PGAC_FUNC_GETTIMEOFDAY_1ARG
-AC_CHECK_FUNCS([cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs])
+AC_CHECK_FUNCS([cbrt dlopen fcvt fdatasync getifaddrs getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l])
AC_REPLACE_FUNCS(fseeko)
case $host_os in
@@ -1228,8 +1250,8 @@ if test "$PORTNAME" = "win32"; then
#
# To properly translate all NLS languages strings, we must support the
# *printf() %$ format, which allows *printf() arguments to be selected
- # by position in the translated string.
- #
+ # by position in the translated string.
+ #
# libintl versions < 0.13 use the native *printf() functions, and Win32
# *printf() doesn't understand %$, so we must use our /port versions,
# which do understand %$. libintl versions >= 0.13 include their own
@@ -1288,7 +1310,7 @@ fi
pgac_save_LIBS="$LIBS"
LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
-AC_REPLACE_FUNCS([crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul])
+AC_REPLACE_FUNCS([crypt erand48 getopt getpeereid getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul])
case $host_os in
@@ -1328,6 +1350,13 @@ if test "$PORTNAME" = "solaris"; then
AC_LIBOBJ(getopt)
fi
+# mingw has adopted a GNU-centric interpretation of optind/optreset,
+# so always use our version on Windows.
+if test "$PORTNAME" = "win32"; then
+ AC_LIBOBJ(getopt)
+ AC_LIBOBJ(getopt_long)
+fi
+
# Cygwin's erand48() is broken (always returns zero) in some releases,
# so force use of ours.
if test "$PORTNAME" = "cygwin"; then
@@ -1336,13 +1365,23 @@ fi
# Win32 support
if test "$PORTNAME" = "win32"; then
-AC_REPLACE_FUNCS(gettimeofday)
-AC_LIBOBJ(kill)
-AC_LIBOBJ(open)
-AC_LIBOBJ(win32env)
-AC_LIBOBJ(win32error)
-AC_DEFINE([HAVE_SYMLINK], 1,
- [Define to 1 if you have the `symlink' function.])
+ AC_REPLACE_FUNCS(gettimeofday)
+ AC_LIBOBJ(kill)
+ AC_LIBOBJ(open)
+ AC_LIBOBJ(win32env)
+ AC_LIBOBJ(win32error)
+ AC_DEFINE([HAVE_SYMLINK], 1,
+ [Define to 1 if you have the `symlink' function.])
+ AC_CHECK_TYPES(MINIDUMP_TYPE, [pgac_minidump_type=yes], [pgac_minidump_type=no], [
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <string.h>
+#include <dbghelp.h>])
+fi
+if test x"$pgac_minidump_type" = x"yes" ; then
+ AC_SUBST(have_win32_dbghelp,yes)
+else
+ AC_SUBST(have_win32_dbghelp,no)
fi
if test "$with_readline" = yes; then
@@ -1355,12 +1394,14 @@ fi
dnl Cannot use AC_CHECK_FUNC because sigsetjmp may be a macro
dnl (especially on GNU libc)
dnl See also comments in c.h.
-AC_MSG_CHECKING(for sigsetjmp)
-AC_TRY_LINK([#include <setjmp.h>],
+AC_CACHE_CHECK([for sigsetjmp], pgac_cv_func_sigsetjmp,
+[AC_TRY_LINK([#include <setjmp.h>],
[sigjmp_buf x; sigsetjmp(x, 1);],
- [AC_DEFINE(HAVE_SIGSETJMP, 1, [Define to 1 if you have sigsetjmp().])
-AC_MSG_RESULT(yes)],
- [AC_MSG_RESULT(no)])
+ [pgac_cv_func_sigsetjmp=yes],
+ [pgac_cv_func_sigsetjmp=no])])
+if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
+ AC_DEFINE(HAVE_SIGSETJMP, 1, [Define to 1 if you have sigsetjmp().])
+fi
AC_DECL_SYS_SIGLIST
@@ -1588,7 +1629,7 @@ AC_CHECK_SIZEOF([size_t])
AC_CHECK_SIZEOF([long])
# Decide whether float4 is passed by value: user-selectable, enabled by default
-AC_MSG_CHECKING([whether to build with float4 passed by value])
+AC_MSG_CHECKING([whether to build with float4 passed by value])
PGAC_ARG_BOOL(enable, float4-byval, yes, [disable float4 passed by value],
[AC_DEFINE([USE_FLOAT4_BYVAL], 1,
[Define to 1 if you want float4 values to be passed by value. (--enable-float4-byval)])
@@ -1700,6 +1741,13 @@ else
SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
fi
+# Select latch implementation type.
+if test "$PORTNAME" != "win32"; then
+ LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
+else
+ LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
+fi
+
# If not set in template file, set bytes to use libc memset()
if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
MEMSET_LOOP_LIMIT=1024
@@ -1724,6 +1772,14 @@ if test "$with_tcl" = yes; then
CPPFLAGS=$ac_save_CPPFLAGS
fi
+# check for <Python.h>
+if test "$with_python" = yes; then
+ ac_save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$python_includespec $CPPFLAGS"
+ AC_CHECK_HEADER(Python.h, [], [AC_MSG_ERROR([header file <Python.h> is required for Python])])
+ CPPFLAGS=$ac_save_CPPFLAGS
+fi
+
#
# Check for DocBook and tools
#
@@ -1797,7 +1853,8 @@ AC_MSG_NOTICE([using LDFLAGS=$LDFLAGS])
# Create compiler version string
if test x"$GCC" = x"yes" ; then
- cc_string="GCC `${CC} --version | sed q`"
+ cc_string=`${CC} --version | sed q`
+ case $cc_string in [[A-Za-z]]*) ;; *) cc_string="GCC $cc_string";; esac
elif test x"$SUN_STUDIO_CC" = x"yes" ; then
cc_string=`${CC} -V 2>&1 | sed q`
else
@@ -1841,6 +1898,7 @@ AC_CONFIG_LINKS([
src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c
src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}
src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}
+ src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}
src/include/dynloader.h:src/backend/port/dynloader/${template}.h
src/include/pg_config_os.h:src/include/port/${template}.h
src/Makefile.port:src/makefiles/Makefile.${template}
@@ -1848,7 +1906,7 @@ AC_CONFIG_LINKS([
if test "$PORTNAME" = "win32"; then
AC_CONFIG_COMMANDS([check_win32_symlinks],[
-# Links sometimes fail undetected on Mingw -
+# Links sometimes fail undetected on Mingw -
# so here we detect it and warn the user
for FILE in $CONFIG_LINKS
do
diff --git a/contrib/Makefile b/contrib/Makefile
index a1b7d913f5..696776795e 100644
--- a/contrib/Makefile
+++ b/contrib/Makefile
@@ -1,4 +1,4 @@
-# $PostgreSQL: pgsql/contrib/Makefile,v 1.93 2010/06/14 16:17:56 sriggs Exp $
+# contrib/Makefile
subdir = contrib
top_builddir = ..
@@ -6,6 +6,7 @@ include $(top_builddir)/src/Makefile.global
SUBDIRS = \
adminpack \
+ auth_delay \
auto_explain \
btree_gin \
btree_gist \
@@ -15,7 +16,9 @@ SUBDIRS = \
dblink \
dict_int \
dict_xsyn \
+ dummy_seclabel \
earthdistance \
+ file_fdw \
fuzzystrmatch \
hstore \
intagg \
@@ -31,6 +34,7 @@ SUBDIRS = \
pg_freespacemap \
pg_standby \
pg_stat_statements \
+ pg_test_fsync \
pg_trgm \
pg_upgrade \
pg_upgrade_support \
@@ -58,18 +62,12 @@ ifeq ($(with_libxml),yes)
SUBDIRS += xml2
endif
+ifeq ($(with_selinux),yes)
+SUBDIRS += sepgsql
+endif
+
# Missing:
# start-scripts \ (does not have a makefile)
-all install installdirs uninstall distprep clean distclean maintainer-clean:
- @for dir in $(SUBDIRS); do \
- $(MAKE) -C $$dir $@ || exit; \
- done
-
-# We'd like check operations to run all the subtests before failing.
-check installcheck:
- @CHECKERR=0; for dir in $(SUBDIRS); do \
- $(MAKE) -C $$dir $@ || CHECKERR=$$?; \
- done; \
- exit $$CHECKERR
+$(recurse)
diff --git a/contrib/README b/contrib/README
index a04c04346e..a1d42a11cb 100644
--- a/contrib/README
+++ b/contrib/README
@@ -28,6 +28,11 @@ adminpack -
File and log manipulation routines, used by pgAdmin
by Dave Page <[email protected]>
+auth_delay
+ Add a short delay after a failed authentication attempt, to make
+ brute-force attacks on database passwords a bit harder.
+ by KaiGai Kohei <[email protected]>
+
auto_explain -
Log EXPLAIN output for long-running queries
by Takahiro Itagaki <[email protected]>
@@ -66,7 +71,11 @@ dict_xsyn -
earthdistance -
Functions for computing distances between two points on Earth
- by Bruno Wolff III <[email protected]> and Hal Snyder <[email protected]>
+ by Bruno Wolff III <[email protected]> and Hal Snyder <[email protected]>
+
+file_fdw
+ Foreign-data wrapper for server-side CSV/TEXT files
+ by Shigeru Hanada <[email protected]>
fuzzystrmatch -
Levenshtein, metaphone, and soundex fuzzy string matching
@@ -86,17 +95,17 @@ intarray -
isn -
PostgreSQL type extensions for ISBN, ISSN, ISMN, EAN13 product numbers
- by Germ�n M�ndez Bravo (Kronuz) <[email protected]>
+ by Germán Méndez Bravo (Kronuz) <[email protected]>
lo -
Large Object maintenance
- by Peter Mount <[email protected]>
+ by Peter Mount <[email protected]>
ltree -
Tree-like data structures
by Teodor Sigaev <[email protected]> and Oleg Bartunov <[email protected]>
-oid2name -
+oid2name -
Maps numeric files to table names
by B Palmer <[email protected]>
@@ -124,6 +133,10 @@ pg_stat_statements -
Track statement execution times across a whole database cluster
by Takahiro Itagaki <[email protected]>
+pg_test_fsync -
+ Test different wal_sync_method settings
+ by Bruce Momjian <[email protected]>
+
pg_trgm -
Functions for determining the similarity of text based on trigram
matching.
@@ -154,6 +167,10 @@ seg -
Confidence-interval datatype (GiST indexing example)
by Gene Selkov, Jr. <[email protected]>
+sepgsql -
+ External security provider using SELinux
+ by KaiGai Kohei <[email protected]>
+
spi -
Various trigger functions, examples for using SPI.
@@ -161,7 +178,7 @@ sslinfo -
Functions to get information about SSL certificates
by Victor Wagner <[email protected]>
-start-scripts -
+start-scripts -
Scripts for starting the server at boot time on various platforms.
tablefunc -
diff --git a/contrib/adminpack/Makefile b/contrib/adminpack/Makefile
index e1262fb2e9..5cbc8f0c71 100644
--- a/contrib/adminpack/Makefile
+++ b/contrib/adminpack/Makefile
@@ -1,10 +1,11 @@
-# $PostgreSQL: pgsql/contrib/adminpack/Makefile,v 1.6 2007/11/10 23:59:50 momjian Exp $
+# contrib/adminpack/Makefile
MODULE_big = adminpack
-PG_CPPFLAGS = -I$(libpq_srcdir)
-DATA_built = adminpack.sql
-DATA = uninstall_adminpack.sql
OBJS = adminpack.o
+PG_CPPFLAGS = -I$(libpq_srcdir)
+
+EXTENSION = adminpack
+DATA = adminpack--1.0.sql
ifdef USE_PGXS
PG_CONFIG = pg_config
diff --git a/contrib/adminpack/adminpack.sql.in b/contrib/adminpack/adminpack--1.0.sql
index de29bacd51..090702231c 100644
--- a/contrib/adminpack/adminpack.sql.in
+++ b/contrib/adminpack/adminpack--1.0.sql
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/contrib/adminpack/adminpack.sql.in,v 1.6 2007/11/13 04:24:27 momjian Exp $ */
+/* contrib/adminpack/adminpack--1.0.sql */
/* ***********************************************
* Administrative functions for PostgreSQL
@@ -6,27 +6,27 @@
/* generic file access functions */
-CREATE OR REPLACE FUNCTION pg_catalog.pg_file_write(text, text, bool)
+CREATE FUNCTION pg_catalog.pg_file_write(text, text, bool)
RETURNS bigint
AS 'MODULE_PATHNAME', 'pg_file_write'
LANGUAGE C VOLATILE STRICT;
-CREATE OR REPLACE FUNCTION pg_catalog.pg_file_rename(text, text, text)
+CREATE FUNCTION pg_catalog.pg_file_rename(text, text, text)
RETURNS bool
AS 'MODULE_PATHNAME', 'pg_file_rename'
LANGUAGE C VOLATILE;
-CREATE OR REPLACE FUNCTION pg_catalog.pg_file_rename(text, text)
+CREATE FUNCTION pg_catalog.pg_file_rename(text, text)
RETURNS bool
AS 'SELECT pg_catalog.pg_file_rename($1, $2, NULL::pg_catalog.text);'
LANGUAGE SQL VOLATILE STRICT;
-CREATE OR REPLACE FUNCTION pg_catalog.pg_file_unlink(text)
+CREATE FUNCTION pg_catalog.pg_file_unlink(text)
RETURNS bool
AS 'MODULE_PATHNAME', 'pg_file_unlink'
LANGUAGE C VOLATILE STRICT;
-CREATE OR REPLACE FUNCTION pg_catalog.pg_logdir_ls()
+CREATE FUNCTION pg_catalog.pg_logdir_ls()
RETURNS setof record
AS 'MODULE_PATHNAME', 'pg_logdir_ls'
LANGUAGE C VOLATILE STRICT;
@@ -34,17 +34,17 @@ LANGUAGE C VOLATILE STRICT;
/* Renaming of existing backend functions for pgAdmin compatibility */
-CREATE OR REPLACE FUNCTION pg_catalog.pg_file_read(text, bigint, bigint)
+CREATE FUNCTION pg_catalog.pg_file_read(text, bigint, bigint)
RETURNS text
AS 'pg_read_file'
LANGUAGE INTERNAL VOLATILE STRICT;
-CREATE OR REPLACE FUNCTION pg_catalog.pg_file_length(text)
+CREATE FUNCTION pg_catalog.pg_file_length(text)
RETURNS bigint
AS 'SELECT size FROM pg_catalog.pg_stat_file($1)'
LANGUAGE SQL VOLATILE STRICT;
-CREATE OR REPLACE FUNCTION pg_catalog.pg_logfile_rotate()
+CREATE FUNCTION pg_catalog.pg_logfile_rotate()
RETURNS int4
AS 'pg_rotate_logfile'
LANGUAGE INTERNAL VOLATILE STRICT;
diff --git a/contrib/adminpack/adminpack.c b/contrib/adminpack/adminpack.c
index 5271ef6ea2..99fa02e813 100644
--- a/contrib/adminpack/adminpack.c
+++ b/contrib/adminpack/adminpack.c
@@ -3,12 +3,12 @@
* adminpack.c
*
*
- * Copyright (c) 2002-2010, PostgreSQL Global Development Group
+ * Copyright (c) 2002-2011, PostgreSQL Global Development Group
*
* Author: Andreas Pflug <[email protected]>
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/contrib/adminpack/adminpack.c,v 1.13 2010/01/02 16:57:32 momjian Exp $
+ * contrib/adminpack/adminpack.c
*
*-------------------------------------------------------------------------
*/
@@ -73,32 +73,31 @@ convert_and_check_filename(text *arg, bool logAllowed)
canonicalize_path(filename); /* filename can change length here */
- /* Disallow ".." in the path */
- if (path_contains_parent_reference(filename))
- ereport(ERROR,
- (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
- (errmsg("reference to parent directory (\"..\") not allowed"))));
-
if (is_absolute_path(filename))
{
- /* Allow absolute references within DataDir */
- if (path_is_prefix_of_path(DataDir, filename))
- return filename;
- /* The log directory might be outside our datadir, but allow it */
- if (logAllowed &&
- is_absolute_path(Log_directory) &&
- path_is_prefix_of_path(Log_directory, filename))
- return filename;
+ /* Disallow '/a/b/data/..' */
+ if (path_contains_parent_reference(filename))
+ ereport(ERROR,
+ (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
+ (errmsg("reference to parent directory (\"..\") not allowed"))));
+ /*
+ * Allow absolute paths if within DataDir or Log_directory, even
+ * though Log_directory might be outside DataDir.
+ */
+ if (!path_is_prefix_of_path(DataDir, filename) &&
+ (!logAllowed || !is_absolute_path(Log_directory) ||
+ !path_is_prefix_of_path(Log_directory, filename)))
+ ereport(ERROR,
+ (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
+ (errmsg("absolute path not allowed"))));
+ }
+ else if (!path_is_relative_and_below_cwd(filename))
ereport(ERROR,
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
- (errmsg("absolute path not allowed"))));
- return NULL; /* keep compiler quiet */
- }
- else
- {
- return filename;
- }
+ (errmsg("path must be in or below the current directory"))));
+
+ return filename;
}
diff --git a/contrib/adminpack/adminpack.control b/contrib/adminpack/adminpack.control
new file mode 100644
index 0000000000..c79413f378
--- /dev/null
+++ b/contrib/adminpack/adminpack.control
@@ -0,0 +1,6 @@
+# adminpack extension
+comment = 'administrative functions for PostgreSQL'
+default_version = '1.0'
+module_pathname = '$libdir/adminpack'
+relocatable = false
+schema = pg_catalog
diff --git a/contrib/adminpack/uninstall_adminpack.sql b/contrib/adminpack/uninstall_adminpack.sql
deleted file mode 100644
index 893f081461..0000000000
--- a/contrib/adminpack/uninstall_adminpack.sql
+++ /dev/null
@@ -1,10 +0,0 @@
-/* $PostgreSQL: pgsql/contrib/adminpack/uninstall_adminpack.sql,v 1.4 2007/11/13 04:24:27 momjian Exp $ */
-
-DROP FUNCTION pg_catalog.pg_file_write(text, text, bool) ;
-DROP FUNCTION pg_catalog.pg_file_rename(text, text, text) ;
-DROP FUNCTION pg_catalog.pg_file_rename(text, text) ;
-DROP FUNCTION pg_catalog.pg_file_unlink(text) ;
-DROP FUNCTION pg_catalog.pg_logdir_ls() ;
-DROP FUNCTION pg_catalog.pg_file_read(text, bigint, bigint) ;
-DROP FUNCTION pg_catalog.pg_file_length(text) ;
-DROP FUNCTION pg_catalog.pg_logfile_rotate() ;
diff --git a/contrib/auth_delay/Makefile b/contrib/auth_delay/Makefile
new file mode 100644
index 0000000000..09d2d5418c
--- /dev/null
+++ b/contrib/auth_delay/Makefile
@@ -0,0 +1,14 @@
+# contrib/auth_delay/Makefile
+
+MODULES = auth_delay
+
+ifdef USE_PGXS
+PG_CONFIG = pg_config
+PGXS := $(shell $(PG_CONFIG) --pgxs)
+include $(PGXS)
+else
+subdir = contrib/auth_delay
+top_builddir = ../..
+include $(top_builddir)/src/Makefile.global
+include $(top_srcdir)/contrib/contrib-global.mk
+endif
diff --git a/contrib/auth_delay/auth_delay.c b/contrib/auth_delay/auth_delay.c
new file mode 100644
index 0000000000..4e0d5959d1
--- /dev/null
+++ b/contrib/auth_delay/auth_delay.c
@@ -0,0 +1,71 @@
+/* -------------------------------------------------------------------------
+ *
+ * auth_delay.c
+ *
+ * Copyright (C) 2010-2011, PostgreSQL Global Development Group
+ *
+ * IDENTIFICATION
+ * contrib/auth_delay/auth_delay.c
+ *
+ * -------------------------------------------------------------------------
+ */
+#include "postgres.h"
+
+#include "libpq/auth.h"
+#include "port.h"
+#include "utils/guc.h"
+#include "utils/timestamp.h"
+
+PG_MODULE_MAGIC;
+
+void _PG_init(void);
+
+/* GUC Variables */
+static int auth_delay_milliseconds;
+
+/* Original Hook */
+static ClientAuthentication_hook_type original_client_auth_hook = NULL;
+
+/*
+ * Check authentication
+ */
+static void
+auth_delay_checks(Port *port, int status)
+{
+ /*
+ * Any other plugins which use ClientAuthentication_hook.
+ */
+ if (original_client_auth_hook)
+ original_client_auth_hook(port, status);
+
+ /*
+ * Inject a short delay if authentication failed.
+ */
+ if (status != STATUS_OK)
+ {
+ pg_usleep(1000L * auth_delay_milliseconds);
+ }
+}
+
+/*
+ * Module Load Callback
+ */
+void
+_PG_init(void)
+{
+ /* Define custom GUC variables */
+ DefineCustomIntVariable("auth_delay.milliseconds",
+ "Milliseconds to delay before reporting authentication failure",
+ NULL,
+ &auth_delay_milliseconds,
+ 0,
+ 0, INT_MAX,
+ PGC_SIGHUP,
+ GUC_UNIT_MS,
+ NULL,
+ NULL,
+ NULL);
+ /* Install Hooks */
+ original_client_auth_hook = ClientAuthentication_hook;
+ ClientAuthentication_hook = auth_delay_checks;
+}
diff --git a/contrib/auto_explain/Makefile b/contrib/auto_explain/Makefile
index e9eaae0ece..2d1443fe48 100644
--- a/contrib/auto_explain/Makefile
+++ b/contrib/auto_explain/Makefile
@@ -1,4 +1,4 @@
-# $PostgreSQL: pgsql/contrib/auto_explain/Makefile,v 1.1 2008/11/19 02:59:28 tgl Exp $
+# contrib/auto_explain/Makefile
MODULE_big = auto_explain
OBJS = auto_explain.o
diff --git a/contrib/auto_explain/auto_explain.c b/contrib/auto_explain/auto_explain.c
index ffc1a4a106..b320698748 100644
--- a/contrib/auto_explain/auto_explain.c
+++ b/contrib/auto_explain/auto_explain.c
@@ -3,10 +3,10 @@
* auto_explain.c
*
*
- * Copyright (c) 2008-2010, PostgreSQL Global Development Group
+ * Copyright (c) 2008-2011, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/contrib/auto_explain/auto_explain.c,v 1.14 2010/02/26 02:00:31 momjian Exp $
+ * contrib/auto_explain/auto_explain.c
*
*-------------------------------------------------------------------------
*/
@@ -40,6 +40,7 @@ static int nesting_level = 0;
/* Saved hook values in case of unload */
static ExecutorStart_hook_type prev_ExecutorStart = NULL;
static ExecutorRun_hook_type prev_ExecutorRun = NULL;
+static ExecutorFinish_hook_type prev_ExecutorFinish = NULL;
static ExecutorEnd_hook_type prev_ExecutorEnd = NULL;
#define auto_explain_enabled() \
@@ -53,6 +54,7 @@ static void explain_ExecutorStart(QueryDesc *queryDesc, int eflags);
static void explain_ExecutorRun(QueryDesc *queryDesc,
ScanDirection direction,
long count);
+static void explain_ExecutorFinish(QueryDesc *queryDesc);
static void explain_ExecutorEnd(QueryDesc *queryDesc);
@@ -72,6 +74,7 @@ _PG_init(void)
PGC_SUSET,
GUC_UNIT_MS,
NULL,
+ NULL,
NULL);
DefineCustomBoolVariable("auto_explain.log_analyze",
@@ -82,6 +85,7 @@ _PG_init(void)
PGC_SUSET,
0,
NULL,
+ NULL,
NULL);
DefineCustomBoolVariable("auto_explain.log_verbose",
@@ -92,6 +96,7 @@ _PG_init(void)
PGC_SUSET,
0,
NULL,
+ NULL,
NULL);
DefineCustomBoolVariable("auto_explain.log_buffers",
@@ -102,6 +107,7 @@ _PG_init(void)
PGC_SUSET,
0,
NULL,
+ NULL,
NULL);
DefineCustomEnumVariable("auto_explain.log_format",
@@ -113,6 +119,7 @@ _PG_init(void)
PGC_SUSET,
0,
NULL,
+ NULL,
NULL);
DefineCustomBoolVariable("auto_explain.log_nested_statements",
@@ -123,6 +130,7 @@ _PG_init(void)
PGC_SUSET,
0,
NULL,
+ NULL,
NULL);
EmitWarningsOnPlaceholders("auto_explain");
@@ -132,6 +140,8 @@ _PG_init(void)
ExecutorStart_hook = explain_ExecutorStart;
prev_ExecutorRun = ExecutorRun_hook;
ExecutorRun_hook = explain_ExecutorRun;
+ prev_ExecutorFinish = ExecutorFinish_hook;
+ ExecutorFinish_hook = explain_ExecutorFinish;
prev_ExecutorEnd = ExecutorEnd_hook;
ExecutorEnd_hook = explain_ExecutorEnd;
}
@@ -145,6 +155,7 @@ _PG_fini(void)
/* Uninstall hooks. */
ExecutorStart_hook = prev_ExecutorStart;
ExecutorRun_hook = prev_ExecutorRun;
+ ExecutorFinish_hook = prev_ExecutorFinish;
ExecutorEnd_hook = prev_ExecutorEnd;
}
@@ -212,6 +223,29 @@ explain_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, long count)
}
/*
+ * ExecutorFinish hook: all we need do is track nesting depth
+ */
+static void
+explain_ExecutorFinish(QueryDesc *queryDesc)
+{
+ nesting_level++;
+ PG_TRY();
+ {
+ if (prev_ExecutorFinish)
+ prev_ExecutorFinish(queryDesc);
+ else
+ standard_ExecutorFinish(queryDesc);
+ nesting_level--;
+ }
+ PG_CATCH();
+ {
+ nesting_level--;
+ PG_RE_THROW();
+ }
+ PG_END_TRY();
+}
+
+/*
* ExecutorEnd hook: log results if needed
*/
static void
diff --git a/contrib/btree_gin/.gitignore b/contrib/btree_gin/.gitignore
new file mode 100644
index 0000000000..5dcb3ff972
--- /dev/null
+++ b/contrib/btree_gin/.gitignore
@@ -0,0 +1,4 @@
+# Generated subdirectories
+/log/
+/results/
+/tmp_check/
diff --git a/contrib/btree_gin/Makefile b/contrib/btree_gin/Makefile
index e6b6394c23..09fd3e6e11 100644
--- a/contrib/btree_gin/Makefile
+++ b/contrib/btree_gin/Makefile
@@ -1,10 +1,11 @@
-# $PostgreSQL: pgsql/contrib/btree_gin/Makefile,v 1.1 2009/03/25 23:20:01 tgl Exp $
+# contrib/btree_gin/Makefile
MODULE_big = btree_gin
-OBJS = btree_gin.o
+OBJS = btree_gin.o
+
+EXTENSION = btree_gin
+DATA = btree_gin--1.0.sql btree_gin--unpackaged--1.0.sql
-DATA_built = btree_gin.sql
-DATA = uninstall_btree_gin.sql
REGRESS = install_btree_gin int2 int4 int8 float4 float8 money oid \
timestamp timestamptz time timetz date interval \
macaddr inet cidr text varchar char bytea bit varbit \
diff --git a/contrib/btree_gin/btree_gin.sql.in b/contrib/btree_gin/btree_gin--1.0.sql
index bc7ec3bbcb..07f93640f3 100644
--- a/contrib/btree_gin/btree_gin.sql.in
+++ b/contrib/btree_gin/btree_gin--1.0.sql
@@ -1,24 +1,21 @@
-/* $PostgreSQL: pgsql/contrib/btree_gin/btree_gin.sql.in,v 1.1 2009/03/25 23:20:01 tgl Exp $ */
+/* contrib/btree_gin/btree_gin--1.0.sql */
--- Adjust this setting to control where the objects get created.
-SET search_path = public;
-
-CREATE OR REPLACE FUNCTION gin_btree_consistent(internal, int2, anyelement, int4, internal, internal)
+CREATE FUNCTION gin_btree_consistent(internal, int2, anyelement, int4, internal, internal)
RETURNS bool
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_extract_value_int2(int2, internal)
+CREATE FUNCTION gin_extract_value_int2(int2, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_compare_prefix_int2(int2, int2, int2, internal)
+CREATE FUNCTION gin_compare_prefix_int2(int2, int2, int2, internal)
RETURNS int4
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_extract_query_int2(int2, internal, int2, internal, internal)
+CREATE FUNCTION gin_extract_query_int2(int2, internal, int2, internal, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
@@ -38,17 +35,17 @@ AS
FUNCTION 5 gin_compare_prefix_int2(int2,int2,int2, internal),
STORAGE int2;
-CREATE OR REPLACE FUNCTION gin_extract_value_int4(int4, internal)
+CREATE FUNCTION gin_extract_value_int4(int4, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_compare_prefix_int4(int4, int4, int2, internal)
+CREATE FUNCTION gin_compare_prefix_int4(int4, int4, int2, internal)
RETURNS int4
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_extract_query_int4(int4, internal, int2, internal, internal)
+CREATE FUNCTION gin_extract_query_int4(int4, internal, int2, internal, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
@@ -68,17 +65,17 @@ AS
FUNCTION 5 gin_compare_prefix_int4(int4,int4,int2, internal),
STORAGE int4;
-CREATE OR REPLACE FUNCTION gin_extract_value_int8(int8, internal)
+CREATE FUNCTION gin_extract_value_int8(int8, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_compare_prefix_int8(int8, int8, int2, internal)
+CREATE FUNCTION gin_compare_prefix_int8(int8, int8, int2, internal)
RETURNS int4
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_extract_query_int8(int8, internal, int2, internal, internal)
+CREATE FUNCTION gin_extract_query_int8(int8, internal, int2, internal, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
@@ -98,17 +95,17 @@ AS
FUNCTION 5 gin_compare_prefix_int8(int8,int8,int2, internal),
STORAGE int8;
-CREATE OR REPLACE FUNCTION gin_extract_value_float4(float4, internal)
+CREATE FUNCTION gin_extract_value_float4(float4, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_compare_prefix_float4(float4, float4, int2, internal)
+CREATE FUNCTION gin_compare_prefix_float4(float4, float4, int2, internal)
RETURNS int4
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_extract_query_float4(float4, internal, int2, internal, internal)
+CREATE FUNCTION gin_extract_query_float4(float4, internal, int2, internal, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
@@ -128,17 +125,17 @@ AS
FUNCTION 5 gin_compare_prefix_float4(float4,float4,int2, internal),
STORAGE float4;
-CREATE OR REPLACE FUNCTION gin_extract_value_float8(float8, internal)
+CREATE FUNCTION gin_extract_value_float8(float8, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_compare_prefix_float8(float8, float8, int2, internal)
+CREATE FUNCTION gin_compare_prefix_float8(float8, float8, int2, internal)
RETURNS int4
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_extract_query_float8(float8, internal, int2, internal, internal)
+CREATE FUNCTION gin_extract_query_float8(float8, internal, int2, internal, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
@@ -158,17 +155,17 @@ AS
FUNCTION 5 gin_compare_prefix_float8(float8,float8,int2, internal),
STORAGE float8;
-CREATE OR REPLACE FUNCTION gin_extract_value_money(money, internal)
+CREATE FUNCTION gin_extract_value_money(money, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_compare_prefix_money(money, money, int2, internal)
+CREATE FUNCTION gin_compare_prefix_money(money, money, int2, internal)
RETURNS int4
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_extract_query_money(money, internal, int2, internal, internal)
+CREATE FUNCTION gin_extract_query_money(money, internal, int2, internal, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
@@ -188,17 +185,17 @@ AS
FUNCTION 5 gin_compare_prefix_money(money,money,int2, internal),
STORAGE money;
-CREATE OR REPLACE FUNCTION gin_extract_value_oid(oid, internal)
+CREATE FUNCTION gin_extract_value_oid(oid, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_compare_prefix_oid(oid, oid, int2, internal)
+CREATE FUNCTION gin_compare_prefix_oid(oid, oid, int2, internal)
RETURNS int4
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_extract_query_oid(oid, internal, int2, internal, internal)
+CREATE FUNCTION gin_extract_query_oid(oid, internal, int2, internal, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
@@ -218,17 +215,17 @@ AS
FUNCTION 5 gin_compare_prefix_oid(oid,oid,int2, internal),
STORAGE oid;
-CREATE OR REPLACE FUNCTION gin_extract_value_timestamp(timestamp, internal)
+CREATE FUNCTION gin_extract_value_timestamp(timestamp, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_compare_prefix_timestamp(timestamp, timestamp, int2, internal)
+CREATE FUNCTION gin_compare_prefix_timestamp(timestamp, timestamp, int2, internal)
RETURNS int4
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_extract_query_timestamp(timestamp, internal, int2, internal, internal)
+CREATE FUNCTION gin_extract_query_timestamp(timestamp, internal, int2, internal, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
@@ -248,17 +245,17 @@ AS
FUNCTION 5 gin_compare_prefix_timestamp(timestamp,timestamp,int2, internal),
STORAGE timestamp;
-CREATE OR REPLACE FUNCTION gin_extract_value_timestamptz(timestamptz, internal)
+CREATE FUNCTION gin_extract_value_timestamptz(timestamptz, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_compare_prefix_timestamptz(timestamptz, timestamptz, int2, internal)
+CREATE FUNCTION gin_compare_prefix_timestamptz(timestamptz, timestamptz, int2, internal)
RETURNS int4
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_extract_query_timestamptz(timestamptz, internal, int2, internal, internal)
+CREATE FUNCTION gin_extract_query_timestamptz(timestamptz, internal, int2, internal, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
@@ -278,17 +275,17 @@ AS
FUNCTION 5 gin_compare_prefix_timestamptz(timestamptz,timestamptz,int2, internal),
STORAGE timestamptz;
-CREATE OR REPLACE FUNCTION gin_extract_value_time(time, internal)
+CREATE FUNCTION gin_extract_value_time(time, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_compare_prefix_time(time, time, int2, internal)
+CREATE FUNCTION gin_compare_prefix_time(time, time, int2, internal)
RETURNS int4
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_extract_query_time(time, internal, int2, internal, internal)
+CREATE FUNCTION gin_extract_query_time(time, internal, int2, internal, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
@@ -308,17 +305,17 @@ AS
FUNCTION 5 gin_compare_prefix_time(time,time,int2, internal),
STORAGE time;
-CREATE OR REPLACE FUNCTION gin_extract_value_timetz(timetz, internal)
+CREATE FUNCTION gin_extract_value_timetz(timetz, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_compare_prefix_timetz(timetz, timetz, int2, internal)
+CREATE FUNCTION gin_compare_prefix_timetz(timetz, timetz, int2, internal)
RETURNS int4
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_extract_query_timetz(timetz, internal, int2, internal, internal)
+CREATE FUNCTION gin_extract_query_timetz(timetz, internal, int2, internal, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
@@ -338,17 +335,17 @@ AS
FUNCTION 5 gin_compare_prefix_timetz(timetz,timetz,int2, internal),
STORAGE timetz;
-CREATE OR REPLACE FUNCTION gin_extract_value_date(date, internal)
+CREATE FUNCTION gin_extract_value_date(date, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_compare_prefix_date(date, date, int2, internal)
+CREATE FUNCTION gin_compare_prefix_date(date, date, int2, internal)
RETURNS int4
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_extract_query_date(date, internal, int2, internal, internal)
+CREATE FUNCTION gin_extract_query_date(date, internal, int2, internal, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
@@ -368,17 +365,17 @@ AS
FUNCTION 5 gin_compare_prefix_date(date,date,int2, internal),
STORAGE date;
-CREATE OR REPLACE FUNCTION gin_extract_value_interval(interval, internal)
+CREATE FUNCTION gin_extract_value_interval(interval, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
-CREATE OR REPLACE FUNCTION gin_compare_prefix_interval(interval, interval, int2, internal)
+CREATE FUNCTION gin_compare_prefix_interval(interval, interva