Remove useless whitespace at end of lines
authorPeter Eisentraut <[email protected]>
Tue, 23 Nov 2010 20:27:50 +0000 (22:27 +0200)
committerPeter Eisentraut <[email protected]>
Tue, 23 Nov 2010 20:34:55 +0000 (22:34 +0200)
517 files changed:
README
config/ac_func_accept_argtypes.m4
config/general.m4
configure.in
contrib/README
contrib/btree_gin/Makefile
contrib/btree_gin/expected/cidr.out
contrib/btree_gin/expected/date.out
contrib/btree_gin/expected/inet.out
contrib/btree_gin/expected/interval.out
contrib/btree_gin/expected/macaddr.out
contrib/btree_gin/expected/time.out
contrib/btree_gin/expected/timestamp.out
contrib/btree_gin/expected/timestamptz.out
contrib/btree_gin/expected/timetz.out
contrib/btree_gin/sql/cidr.sql
contrib/btree_gin/sql/date.sql
contrib/btree_gin/sql/inet.sql
contrib/btree_gin/sql/interval.sql
contrib/btree_gin/sql/macaddr.sql
contrib/btree_gin/sql/time.sql
contrib/btree_gin/sql/timestamp.sql
contrib/btree_gin/sql/timestamptz.sql
contrib/btree_gin/sql/timetz.sql
contrib/btree_gist/btree_gist.sql.in
contrib/btree_gist/uninstall_btree_gist.sql
contrib/citext/citext.sql.in
contrib/citext/expected/citext.out
contrib/citext/expected/citext_1.out
contrib/citext/sql/citext.sql
contrib/cube/CHANGES
contrib/cube/cube.sql.in
contrib/cube/cubeparse.y
contrib/cube/cubescan.l
contrib/cube/expected/cube.out
contrib/cube/expected/cube_1.out
contrib/cube/expected/cube_2.out
contrib/cube/sql/cube.sql
contrib/dblink/Makefile
contrib/dblink/dblink.sql.in
contrib/dblink/expected/dblink.out
contrib/dblink/sql/dblink.sql
contrib/earthdistance/earthdistance.sql.in
contrib/fuzzystrmatch/fuzzystrmatch.sql.in
contrib/hstore/expected/hstore.out
contrib/hstore/sql/hstore.sql
contrib/intarray/Makefile
contrib/intarray/bench/bench.pl
contrib/intarray/bench/create_test.pl
contrib/isn/ISBN.h
contrib/ltree/ltree.sql.in
contrib/ltree/uninstall_ltree.sql
contrib/pg_buffercache/Makefile
contrib/pg_buffercache/pg_buffercache.sql.in
contrib/pg_freespacemap/Makefile
contrib/pg_trgm/pg_trgm.sql.in
contrib/pg_trgm/uninstall_pg_trgm.sql
contrib/pg_upgrade/IMPLEMENTATION
contrib/pg_upgrade/TESTING
contrib/pg_upgrade/relfilenode.c
contrib/pgcrypto/expected/blowfish.out
contrib/pgcrypto/expected/crypt-blowfish.out
contrib/pgcrypto/expected/rijndael.out
contrib/pgcrypto/rijndael.tbl
contrib/pgcrypto/sql/blowfish.sql
contrib/pgcrypto/sql/crypt-blowfish.sql
contrib/pgcrypto/sql/rijndael.sql
contrib/seg/expected/seg.out
contrib/seg/expected/seg_1.out
contrib/seg/seg.sql.in
contrib/seg/segparse.y
contrib/seg/segscan.l
contrib/seg/sort-segments.pl
contrib/seg/sql/seg.sql
contrib/spi/autoinc.example
contrib/spi/autoinc.sql.in
contrib/spi/insert_username.example
contrib/spi/insert_username.sql.in
contrib/spi/moddatetime.example
contrib/spi/refint.example
contrib/spi/timetravel.example
contrib/spi/timetravel.sql.in
contrib/start-scripts/osx/PostgreSQL
contrib/test_parser/expected/test_parser.out
contrib/test_parser/sql/test_parser.sql
contrib/tsearch2/expected/tsearch2.out
contrib/tsearch2/expected/tsearch2_1.out
contrib/tsearch2/sql/tsearch2.sql
contrib/tsearch2/tsearch2.sql.in
contrib/unaccent/Makefile
contrib/xml2/expected/xml2.out
contrib/xml2/expected/xml2_1.out
contrib/xml2/sql/xml2.sql
doc/bug.template
doc/src/sgml/Makefile
doc/src/sgml/auto-explain.sgml
doc/src/sgml/biblio.sgml
doc/src/sgml/charset.sgml
doc/src/sgml/config.sgml
doc/src/sgml/contacts.sgml
doc/src/sgml/contrib.sgml
doc/src/sgml/datatype.sgml
doc/src/sgml/datetime.sgml
doc/src/sgml/dfunc.sgml
doc/src/sgml/docguide.sgml
doc/src/sgml/ecpg.sgml
doc/src/sgml/extend.sgml
doc/src/sgml/external-projects.sgml
doc/src/sgml/filelist.sgml
doc/src/sgml/func.sgml
doc/src/sgml/history.sgml
doc/src/sgml/info.sgml
doc/src/sgml/install-windows.sgml
doc/src/sgml/keywords.sgml
doc/src/sgml/legal.sgml
doc/src/sgml/libpq.sgml
doc/src/sgml/lobj.sgml
doc/src/sgml/mvcc.sgml
doc/src/sgml/pgarchivecleanup.sgml
doc/src/sgml/pgupgrade.sgml
doc/src/sgml/plperl.sgml
doc/src/sgml/pltcl.sgml
doc/src/sgml/problems.sgml
doc/src/sgml/ref/abort.sgml
doc/src/sgml/ref/alter_aggregate.sgml
doc/src/sgml/ref/alter_conversion.sgml
doc/src/sgml/ref/alter_database.sgml
doc/src/sgml/ref/alter_domain.sgml
doc/src/sgml/ref/alter_function.sgml
doc/src/sgml/ref/alter_group.sgml
doc/src/sgml/ref/alter_index.sgml
doc/src/sgml/ref/alter_language.sgml
doc/src/sgml/ref/alter_large_object.sgml
doc/src/sgml/ref/alter_opclass.sgml
doc/src/sgml/ref/alter_operator.sgml
doc/src/sgml/ref/alter_opfamily.sgml
doc/src/sgml/ref/alter_schema.sgml
doc/src/sgml/ref/alter_sequence.sgml
doc/src/sgml/ref/alter_tablespace.sgml
doc/src/sgml/ref/alter_tsconfig.sgml
doc/src/sgml/ref/alter_tsdictionary.sgml
doc/src/sgml/ref/alter_tsparser.sgml
doc/src/sgml/ref/alter_tstemplate.sgml
doc/src/sgml/ref/alter_user.sgml
doc/src/sgml/ref/alter_view.sgml
doc/src/sgml/ref/begin.sgml
doc/src/sgml/ref/close.sgml
doc/src/sgml/ref/clusterdb.sgml
doc/src/sgml/ref/comment.sgml
doc/src/sgml/ref/commit.sgml
doc/src/sgml/ref/commit_prepared.sgml
doc/src/sgml/ref/create_aggregate.sgml
doc/src/sgml/ref/create_conversion.sgml
doc/src/sgml/ref/create_function.sgml
doc/src/sgml/ref/create_group.sgml
doc/src/sgml/ref/create_opclass.sgml
doc/src/sgml/ref/create_operator.sgml
doc/src/sgml/ref/create_opfamily.sgml
doc/src/sgml/ref/create_role.sgml
doc/src/sgml/ref/create_sequence.sgml
doc/src/sgml/ref/create_table_as.sgml
doc/src/sgml/ref/create_tsconfig.sgml
doc/src/sgml/ref/create_tsdictionary.sgml
doc/src/sgml/ref/create_tsparser.sgml
doc/src/sgml/ref/create_tstemplate.sgml
doc/src/sgml/ref/create_user.sgml
doc/src/sgml/ref/createdb.sgml
doc/src/sgml/ref/createlang.sgml
doc/src/sgml/ref/createuser.sgml
doc/src/sgml/ref/drop_cast.sgml
doc/src/sgml/ref/drop_conversion.sgml
doc/src/sgml/ref/drop_database.sgml
doc/src/sgml/ref/drop_domain.sgml
doc/src/sgml/ref/drop_function.sgml
doc/src/sgml/ref/drop_index.sgml
doc/src/sgml/ref/drop_language.sgml
doc/src/sgml/ref/drop_opclass.sgml
doc/src/sgml/ref/drop_operator.sgml
doc/src/sgml/ref/drop_opfamily.sgml
doc/src/sgml/ref/drop_role.sgml
doc/src/sgml/ref/drop_rule.sgml
doc/src/sgml/ref/drop_schema.sgml
doc/src/sgml/ref/drop_sequence.sgml
doc/src/sgml/ref/drop_table.sgml
doc/src/sgml/ref/drop_tablespace.sgml
doc/src/sgml/ref/drop_trigger.sgml
doc/src/sgml/ref/drop_tsconfig.sgml
doc/src/sgml/ref/drop_tsdictionary.sgml
doc/src/sgml/ref/drop_tsparser.sgml
doc/src/sgml/ref/drop_tstemplate.sgml
doc/src/sgml/ref/drop_type.sgml
doc/src/sgml/ref/drop_view.sgml
doc/src/sgml/ref/dropdb.sgml
doc/src/sgml/ref/droplang.sgml
doc/src/sgml/ref/dropuser.sgml
doc/src/sgml/ref/ecpg-ref.sgml
doc/src/sgml/ref/end.sgml
doc/src/sgml/ref/fetch.sgml
doc/src/sgml/ref/initdb.sgml
doc/src/sgml/ref/lock.sgml
doc/src/sgml/ref/move.sgml
doc/src/sgml/ref/pg_config-ref.sgml
doc/src/sgml/ref/pg_controldata.sgml
doc/src/sgml/ref/pg_dumpall.sgml
doc/src/sgml/ref/pg_resetxlog.sgml
doc/src/sgml/ref/postgres-ref.sgml
doc/src/sgml/ref/prepare.sgml
doc/src/sgml/ref/reindexdb.sgml
doc/src/sgml/ref/release_savepoint.sgml
doc/src/sgml/ref/rollback_prepared.sgml
doc/src/sgml/ref/savepoint.sgml
doc/src/sgml/ref/security_label.sgml
doc/src/sgml/ref/set.sgml
doc/src/sgml/ref/values.sgml
doc/src/sgml/regress.sgml
doc/src/sgml/rowtypes.sgml
doc/src/sgml/runtime.sgml
doc/src/sgml/sql.sgml
doc/src/sgml/start.sgml
doc/src/sgml/stylesheet.css
doc/src/sgml/stylesheet.dsl
doc/src/sgml/vacuumlo.sgml
doc/src/sgml/wal.sgml
doc/src/sgml/xindex.sgml
doc/src/sgml/xoper.sgml
doc/src/sgml/xtypes.sgml
src/Makefile.global.in
src/Makefile.shlib
src/backend/Makefile
src/backend/access/gin/README
src/backend/access/gist/README
src/backend/access/nbtree/README
src/backend/access/transam/xlog.c
src/backend/bootstrap/Makefile
src/backend/catalog/information_schema.sql
src/backend/catalog/objectaddress.c
src/backend/catalog/system_views.sql
src/backend/commands/comment.c
src/backend/commands/copy.c
src/backend/commands/explain.c
src/backend/commands/tablespace.c
src/backend/libpq/README.SSL
src/backend/nodes/README
src/backend/optimizer/plan/README
src/backend/parser/scan.l
src/backend/port/Makefile
src/backend/port/aix/mkldexport.sh
src/backend/port/darwin/README
src/backend/port/tas/sunstudio_sparc.s
src/backend/snowball/Makefile
src/backend/storage/buffer/README
src/backend/storage/freespace/README
src/backend/storage/ipc/README
src/backend/storage/lmgr/Makefile
src/backend/storage/lmgr/README
src/backend/tsearch/wparser_def.c
src/backend/utils/Gen_fmgrtab.pl
src/backend/utils/adt/numeric.c
src/backend/utils/adt/varlena.c
src/backend/utils/adt/xml.c
src/backend/utils/mb/Unicode/UCS_to_EUC_CN.pl
src/backend/utils/mb/Unicode/UCS_to_EUC_JIS_2004.pl
src/backend/utils/mb/Unicode/UCS_to_EUC_JP.pl
src/backend/utils/mb/Unicode/UCS_to_EUC_KR.pl
src/backend/utils/mb/Unicode/UCS_to_EUC_TW.pl
src/backend/utils/mb/Unicode/UCS_to_SHIFT_JIS_2004.pl
src/backend/utils/mb/Unicode/UCS_to_SJIS.pl
src/backend/utils/mb/Unicode/ucs2utf.pl
src/backend/utils/misc/Makefile
src/backend/utils/misc/check_guc
src/backend/utils/misc/guc-file.l
src/backend/utils/misc/postgresql.conf.sample
src/backend/utils/mmgr/README
src/bcc32.mak
src/bin/pg_dump/README
src/bin/pg_dump/pg_dump.c
src/bin/psql/psqlscan.l
src/include/catalog/objectaddress.h
src/include/pg_config.h.win32
src/include/storage/s_lock.h
src/interfaces/ecpg/README.dynSQL
src/interfaces/ecpg/ecpglib/prepare.c
src/interfaces/ecpg/preproc/Makefile
src/interfaces/ecpg/preproc/check_rules.pl
src/interfaces/ecpg/preproc/ecpg.addons
src/interfaces/ecpg/preproc/ecpg.header
src/interfaces/ecpg/preproc/ecpg.tokens
src/interfaces/ecpg/preproc/ecpg.trailer
src/interfaces/ecpg/preproc/ecpg.type
src/interfaces/ecpg/preproc/parse.pl
src/interfaces/ecpg/preproc/pgc.l
src/interfaces/ecpg/test/Makefile.regress
src/interfaces/ecpg/test/compat_informix/describe.pgc
src/interfaces/ecpg/test/compat_informix/sqlda.pgc
src/interfaces/ecpg/test/compat_informix/test_informix.pgc
src/interfaces/ecpg/test/compat_informix/test_informix2.pgc
src/interfaces/ecpg/test/expected/compat_informix-describe.c
src/interfaces/ecpg/test/expected/compat_informix-sqlda.c
src/interfaces/ecpg/test/expected/compat_informix-test_informix.c
src/interfaces/ecpg/test/expected/compat_informix-test_informix2.c
src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.c
src/interfaces/ecpg/test/expected/preproc-array_of_struct.c
src/interfaces/ecpg/test/expected/preproc-cursor.c
src/interfaces/ecpg/test/expected/preproc-init.c
src/interfaces/ecpg/test/expected/preproc-outofscope.c
src/interfaces/ecpg/test/expected/preproc-variable.c
src/interfaces/ecpg/test/expected/preproc-whenever.c
src/interfaces/ecpg/test/expected/sql-array.c
src/interfaces/ecpg/test/expected/sql-code100.c
src/interfaces/ecpg/test/expected/sql-describe.c
src/interfaces/ecpg/test/expected/sql-dynalloc.c
src/interfaces/ecpg/test/expected/sql-dynalloc2.c
src/interfaces/ecpg/test/expected/sql-fetch.c
src/interfaces/ecpg/test/expected/sql-sqlda.c
src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc
src/interfaces/ecpg/test/preproc/array_of_struct.pgc
src/interfaces/ecpg/test/preproc/cursor.pgc
src/interfaces/ecpg/test/preproc/init.pgc
src/interfaces/ecpg/test/preproc/outofscope.pgc
src/interfaces/ecpg/test/preproc/variable.pgc
src/interfaces/ecpg/test/preproc/whenever.pgc
src/interfaces/ecpg/test/sql/Makefile
src/interfaces/ecpg/test/sql/array.pgc
src/interfaces/ecpg/test/sql/code100.pgc
src/interfaces/ecpg/test/sql/describe.pgc
src/interfaces/ecpg/test/sql/dynalloc.pgc
src/interfaces/ecpg/test/sql/dynalloc2.pgc
src/interfaces/ecpg/test/sql/fetch.pgc
src/interfaces/ecpg/test/sql/sqlda.pgc
src/interfaces/libpq/bcc32.mak
src/interfaces/libpq/pg_service.conf.sample
src/interfaces/libpq/win32.mak
src/makefiles/Makefile.darwin
src/makefiles/Makefile.irix
src/makefiles/pgxs.mk
src/pl/plperl/GNUmakefile
src/pl/plperl/SPI.xs
src/pl/plperl/Util.xs
src/pl/plperl/expected/plperl.out
src/pl/plperl/expected/plperl_plperlu.out
src/pl/plperl/expected/plperl_trigger.out
src/pl/plperl/plc_trusted.pl
src/pl/plperl/plperl.c
src/pl/plperl/sql/plperl.sql
src/pl/plperl/sql/plperl_plperlu.sql
src/pl/plperl/sql/plperl_trigger.sql
src/pl/plperl/text2macro.pl
src/pl/plpgsql/src/gram.y
src/pl/plpython/expected/plpython_newline.out
src/pl/plpython/expected/plpython_schema.out
src/pl/plpython/expected/plpython_trigger.out
src/pl/plpython/sql/plpython_newline.sql
src/pl/plpython/sql/plpython_schema.sql
src/pl/plpython/sql/plpython_trigger.sql
src/pl/tcl/expected/pltcl_setup.out
src/pl/tcl/sql/pltcl_setup.sql
src/test/examples/Makefile
src/test/locale/Makefile
src/test/locale/README
src/test/locale/de_DE.ISO8859-1/Makefile
src/test/locale/gr_GR.ISO8859-7/Makefile
src/test/locale/koi8-r/Makefile
src/test/locale/koi8-to-win1251/Makefile
src/test/mb/mbregress.sh
src/test/performance/runtests.pl
src/test/regress/GNUmakefile
src/test/regress/expected/abstime.out
src/test/regress/expected/aggregates.out
src/test/regress/expected/alter_table.out
src/test/regress/expected/arrays.out
src/test/regress/expected/bit.out
src/test/regress/expected/bitmapops.out
src/test/regress/expected/boolean.out
src/test/regress/expected/box.out
src/test/regress/expected/char.out
src/test/regress/expected/char_1.out
src/test/regress/expected/char_2.out
src/test/regress/expected/cluster.out
src/test/regress/expected/copyselect.out
src/test/regress/expected/create_aggregate.out
src/test/regress/expected/create_index.out
src/test/regress/expected/create_misc.out
src/test/regress/expected/create_operator.out
src/test/regress/expected/create_table.out
src/test/regress/expected/create_type.out
src/test/regress/expected/create_view.out
src/test/regress/expected/drop_if_exists.out
src/test/regress/expected/errors.out
src/test/regress/expected/float4-exp-three-digits.out
src/test/regress/expected/float4.out
src/test/regress/expected/float8-exp-three-digits-win32.out
src/test/regress/expected/float8-small-is-zero.out
src/test/regress/expected/float8-small-is-zero_1.out
src/test/regress/expected/float8.out
src/test/regress/expected/foreign_key.out
src/test/regress/expected/hash_index.out
src/test/regress/expected/inet.out
src/test/regress/expected/inherit.out
src/test/regress/expected/int2.out
src/test/regress/expected/int8-exp-three-digits.out
src/test/regress/expected/int8.out
src/test/regress/expected/interval.out
src/test/regress/expected/limit.out
src/test/regress/expected/numeric.out
src/test/regress/expected/oid.out
src/test/regress/expected/oidjoins.out
src/test/regress/expected/plpgsql.out
src/test/regress/expected/point.out
src/test/regress/expected/polygon.out
src/test/regress/expected/portals.out
src/test/regress/expected/portals_p2.out
src/test/regress/expected/rules.out
src/test/regress/expected/select.out
src/test/regress/expected/select_implicit.out
src/test/regress/expected/select_implicit_1.out
src/test/regress/expected/select_implicit_2.out
src/test/regress/expected/sequence.out
src/test/regress/expected/sequence_1.out
src/test/regress/expected/subselect.out
src/test/regress/expected/timestamp.out
src/test/regress/expected/timestamptz.out
src/test/regress/expected/tinterval.out
src/test/regress/expected/transactions.out
src/test/regress/expected/triggers.out
src/test/regress/expected/truncate.out
src/test/regress/expected/tsdicts.out
src/test/regress/expected/tsearch.out
src/test/regress/expected/type_sanity.out
src/test/regress/expected/varchar.out
src/test/regress/expected/varchar_1.out
src/test/regress/expected/varchar_2.out
src/test/regress/expected/window.out
src/test/regress/input/copy.source
src/test/regress/input/create_function_2.source
src/test/regress/input/misc.source
src/test/regress/output/copy.source
src/test/regress/output/create_function_2.source
src/test/regress/output/misc.source
src/test/regress/sql/abstime.sql
src/test/regress/sql/aggregates.sql
src/test/regress/sql/alter_table.sql
src/test/regress/sql/arrays.sql
src/test/regress/sql/bit.sql
src/test/regress/sql/bitmapops.sql
src/test/regress/sql/boolean.sql
src/test/regress/sql/box.sql
src/test/regress/sql/char.sql
src/test/regress/sql/cluster.sql
src/test/regress/sql/copyselect.sql
src/test/regress/sql/create_aggregate.sql
src/test/regress/sql/create_index.sql
src/test/regress/sql/create_misc.sql
src/test/regress/sql/create_operator.sql
src/test/regress/sql/create_table.sql
src/test/regress/sql/create_type.sql
src/test/regress/sql/create_view.sql
src/test/regress/sql/drop.sql
src/test/regress/sql/drop_if_exists.sql
src/test/regress/sql/errors.sql
src/test/regress/sql/float4.sql
src/test/regress/sql/float8.sql
src/test/regress/sql/foreign_key.sql
src/test/regress/sql/hash_index.sql
src/test/regress/sql/hs_primary_extremes.sql
src/test/regress/sql/inet.sql
src/test/regress/sql/inherit.sql
src/test/regress/sql/int2.sql
src/test/regress/sql/int8.sql
src/test/regress/sql/interval.sql
src/test/regress/sql/limit.sql
src/test/regress/sql/numeric.sql
src/test/regress/sql/oid.sql
src/test/regress/sql/oidjoins.sql
src/test/regress/sql/plpgsql.sql
src/test/regress/sql/point.sql
src/test/regress/sql/polygon.sql
src/test/regress/sql/portals.sql
src/test/regress/sql/portals_p2.sql
src/test/regress/sql/rules.sql
src/test/regress/sql/select.sql
src/test/regress/sql/select_implicit.sql
src/test/regress/sql/sequence.sql
src/test/regress/sql/subselect.sql
src/test/regress/sql/timestamp.sql
src/test/regress/sql/timestamptz.sql
src/test/regress/sql/tinterval.sql
src/test/regress/sql/transactions.sql
src/test/regress/sql/triggers.sql
src/test/regress/sql/truncate.sql
src/test/regress/sql/tsdicts.sql
src/test/regress/sql/tsearch.sql
src/test/regress/sql/type_sanity.sql
src/test/regress/sql/varchar.sql
src/test/regress/sql/window.sql
src/test/thread/README
src/tools/RELEASE_CHANGES
src/tools/backend/README
src/tools/backend/backend_dirs.html
src/tools/check_keywords.pl
src/tools/editors/emacs.samples
src/tools/entab/Makefile
src/tools/entab/entab.man
src/tools/find_static
src/tools/find_typedef
src/tools/make_diff/README
src/tools/msvc/Mkvcbuild.pm
src/tools/msvc/README
src/tools/pginclude/pgrminclude
src/tools/pgindent/README
src/tools/pgindent/pgindent
src/tools/pgtest
src/tutorial/advanced.source
src/tutorial/basics.source
src/tutorial/complex.source
src/tutorial/funcs.source
src/tutorial/syscat.source
src/win32.mak

diff --git a/README b/README
index 0790fd21abdb59e00bd68a0c027c219fd3ec38b2..49d55af5f6bfc75d78e7b6defdb7aa4ac1e1be63 100644 (file)
--- 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.
 
index 7a86ccaae578ffe3720f6946cd740f1df356b9d6..7cb5cb3776773663d2f05dd33496d6b28544a3bb 100644 (file)
@@ -6,7 +6,7 @@
 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
@@ -37,7 +37,7 @@ 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'
 
 AC_DEFUN([AC_FUNC_ACCEPT_ARGTYPES],
 [AC_MSG_CHECKING([types of arguments for accept()])
index eb83815931619ee5e921fdc2fe22f24deba5d390..95d65ceb093d1ac06c3eede583be761c02e11be2 100644 (file)
@@ -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
index 4bfa45990319ff28d0a4acec5266d8d2a958bf73..3a0d43f8084d70cb5ec0ff611422cddeee50aa15 100644 (file)
@@ -230,7 +230,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 +262,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 +288,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 +329,7 @@ AC_DEFINE_UNQUOTED([XLOG_BLCKSZ], ${XLOG_BLCKSZ}, [
  buffers, else direct I/O may fail.
 
  Changing XLOG_BLCKSZ requires an initdb.
-]) 
+])
 
 #
 # WAL segment size
@@ -461,7 +461,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
@@ -1141,7 +1141,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 +1156,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
 
 
@@ -1228,8 +1228,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
@@ -1590,7 +1590,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)])
@@ -1858,7 +1858,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
index a04c04346edadfad1334d763c61ced6fd8f89506..6d29cfe2b31f2ea1e913117a5ca3d323fdfd9015 100644 (file)
@@ -90,13 +90,13 @@ isn -
 
 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]>
 
@@ -161,7 +161,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 -
index cba68af5959e9e6fdf9b9025a644aaa54873240b..8bc53f72daa054b423f8373b57a6f315e7967a8f 100644 (file)
@@ -1,7 +1,7 @@
 # contrib/btree_gin/Makefile
 
 MODULE_big = btree_gin
-OBJS = btree_gin.o 
+OBJS = btree_gin.o
 
 DATA_built = btree_gin.sql
 DATA = uninstall_btree_gin.sql
index 28ff9195b167fc0e00e58c94e1f69404fb11d1db..3d1198a4d747f896e1d933d208ac334e85750153 100644 (file)
@@ -2,7 +2,7 @@ set enable_seqscan=off;
 CREATE TABLE test_cidr (
        i cidr
 );
-INSERT INTO test_cidr VALUES 
+INSERT INTO test_cidr VALUES
        ( '1.2.3.4' ),
        ( '1.2.4.4' ),
        ( '1.2.5.4' ),
index 8da6ee4843c902c38a9f52d109e5da35520ff9e4..40dfa308cf753cd89580b159ae92fe8a851eb55c 100644 (file)
@@ -2,7 +2,7 @@ set enable_seqscan=off;
 CREATE TABLE test_date (
        i date
 );
-INSERT INTO test_date VALUES 
+INSERT INTO test_date VALUES
        ( '2004-10-23' ),
        ( '2004-10-24' ),
        ( '2004-10-25' ),
index bb2eaafc7f40bade88992accd596a107f2a8572d..aa6147fb7d36976e447181c9e1d3f13dab4e9a17 100644 (file)
@@ -2,7 +2,7 @@ set enable_seqscan=off;
 CREATE TABLE test_inet (
        i inet
 );
-INSERT INTO test_inet VALUES 
+INSERT INTO test_inet VALUES
        ( '1.2.3.4/16' ),
        ( '1.2.4.4/16' ),
        ( '1.2.5.4/16' ),
index a3b99c1f2832b0ffb00d54669e7b391bf35a6b0f..1f6ef54070eedd4c2a6515538534a1eaf314b88a 100644 (file)
@@ -2,7 +2,7 @@ set enable_seqscan=off;
 CREATE TABLE test_interval (
        i interval
 );
-INSERT INTO test_interval VALUES 
+INSERT INTO test_interval VALUES
        ( '03:55:08' ),
        ( '04:55:08' ),
        ( '05:55:08' ),
index d26d1f9ad37fe09573469269cdfffe4f013fab4b..ebceb01862f3972b95faf8b8a100eae51508573c 100644 (file)
@@ -2,7 +2,7 @@ set enable_seqscan=off;
 CREATE TABLE test_macaddr (
        i macaddr
 );
-INSERT INTO test_macaddr VALUES 
+INSERT INTO test_macaddr VALUES
        ( '22:00:5c:03:55:08' ),
        ( '22:00:5c:04:55:08' ),
        ( '22:00:5c:05:55:08' ),
index bf65946835f7b3b1257fccc4c0eae6b5065e629f..be6b084038c9ed788bfef0956cf1819c11b212de 100644 (file)
@@ -2,7 +2,7 @@ set enable_seqscan=off;
 CREATE TABLE test_time (
        i time
 );
-INSERT INTO test_time VALUES 
+INSERT INTO test_time VALUES
        ( '03:55:08' ),
        ( '04:55:08' ),
        ( '05:55:08' ),
index 00b0b66106d08870eba37133378b4771f4b94e3a..a236cdc94a9d2bc0ee5fd83311f644085934ab47 100644 (file)
@@ -2,7 +2,7 @@ set enable_seqscan=off;
 CREATE TABLE test_timestamp (
        i timestamp
 );
-INSERT INTO test_timestamp VALUES 
+INSERT INTO test_timestamp VALUES
        ( '2004-10-26 03:55:08' ),
        ( '2004-10-26 04:55:08' ),
        ( '2004-10-26 05:55:08' ),
index 8550d6b4d9f2ec1366494ad6e86f5c24f8b26f87..d53963d2a04b86f1892dda74f16fc4c82cfb655d 100644 (file)
@@ -2,7 +2,7 @@ set enable_seqscan=off;
 CREATE TABLE test_timestamptz (
        i timestamptz
 );
-INSERT INTO test_timestamptz VALUES 
+INSERT INTO test_timestamptz VALUES
        ( '2004-10-26 03:55:08' ),
        ( '2004-10-26 04:55:08' ),
        ( '2004-10-26 05:55:08' ),
index 184bc310f64eec7b2552c89f7cbbfc08775aa642..45aee71371b0ac738be6659f762e41d8e2dbc9fb 100644 (file)
@@ -2,7 +2,7 @@ set enable_seqscan=off;
 CREATE TABLE test_timetz (
        i timetz
 );
-INSERT INTO test_timetz VALUES 
+INSERT INTO test_timetz VALUES
        ( '03:55:08 GMT+2' ),
        ( '04:55:08 GMT+2' ),
        ( '05:55:08 GMT+2' ),
index a608a3ec78b6ded8ac13353f2a2734974a8c954b..4a76e5f10b063626ba11e770a14ecf2759d4e2ae 100644 (file)
@@ -4,7 +4,7 @@ CREATE TABLE test_cidr (
        i cidr
 );
 
-INSERT INTO test_cidr VALUES 
+INSERT INTO test_cidr VALUES
        ( '1.2.3.4' ),
        ( '1.2.4.4' ),
        ( '1.2.5.4' ),
index c486f272a42fe17553fff800093e6fc8bc35ea49..35086f6b81b9bd74ae639054213711c34d0bc72e 100644 (file)
@@ -4,7 +4,7 @@ CREATE TABLE test_date (
        i date
 );
 
-INSERT INTO test_date VALUES 
+INSERT INTO test_date VALUES
        ( '2004-10-23' ),
        ( '2004-10-24' ),
        ( '2004-10-25' ),
index fadc1c47ec1acf4b69111dd8700657940de0e58b..e5ec087856bd567ff21738b98271f67fffca323f 100644 (file)
@@ -4,7 +4,7 @@ CREATE TABLE test_inet (
        i inet
 );
 
-INSERT INTO test_inet VALUES 
+INSERT INTO test_inet VALUES
        ( '1.2.3.4/16' ),
        ( '1.2.4.4/16' ),
        ( '1.2.5.4/16' ),
index f245e4d4b3b75ba722b49105de0ea207acef07a3..e385158783370660ee958acb55cfddbc9b61c7cf 100644 (file)
@@ -4,7 +4,7 @@ CREATE TABLE test_interval (
        i interval
 );
 
-INSERT INTO test_interval VALUES 
+INSERT INTO test_interval VALUES
        ( '03:55:08' ),
        ( '04:55:08' ),
        ( '05:55:08' ),
index e0402869a8c66b0ab1504d5be463b372bd834205..66566aa604fb1cf816d5151af05d5a2739b717fa 100644 (file)
@@ -4,7 +4,7 @@ CREATE TABLE test_macaddr (
        i macaddr
 );
 
-INSERT INTO test_macaddr VALUES 
+INSERT INTO test_macaddr VALUES
        ( '22:00:5c:03:55:08' ),
        ( '22:00:5c:04:55:08' ),
        ( '22:00:5c:05:55:08' ),
index afb1e16ebf4b1eaeca4d62b697311e460ec95ec6..62d709a8460ba7643954ddf67f51654ae2cc1026 100644 (file)
@@ -4,7 +4,7 @@ CREATE TABLE test_time (
        i time
 );
 
-INSERT INTO test_time VALUES 
+INSERT INTO test_time VALUES
        ( '03:55:08' ),
        ( '04:55:08' ),
        ( '05:55:08' ),
index 6e00cd7e40dc6626cf69d81f22725007d204cdb7..56727e81c4aff0db26504bc764213c9330abcb14 100644 (file)
@@ -4,7 +4,7 @@ CREATE TABLE test_timestamp (
        i timestamp
 );
 
-INSERT INTO test_timestamp VALUES 
+INSERT INTO test_timestamp VALUES
        ( '2004-10-26 03:55:08' ),
        ( '2004-10-26 04:55:08' ),
        ( '2004-10-26 05:55:08' ),
index 26c01ef804754015fcc5213921d0ed8c2c087d37..e6cfdb1b07447a64ec64e2dcccebb4e56d0dd4c7 100644 (file)
@@ -4,7 +4,7 @@ CREATE TABLE test_timestamptz (
        i timestamptz
 );
 
-INSERT INTO test_timestamptz VALUES 
+INSERT INTO test_timestamptz VALUES
        ( '2004-10-26 03:55:08' ),
        ( '2004-10-26 04:55:08' ),
        ( '2004-10-26 05:55:08' ),
index a72b105fc15a056ad89b4d1498f05f7f4d5eb3f0..ca947b753e4478440825d0933004dd8df81c0bdc 100644 (file)
@@ -4,7 +4,7 @@ CREATE TABLE test_timetz (
        i timetz
 );
 
-INSERT INTO test_timetz VALUES 
+INSERT INTO test_timetz VALUES
        ( '03:55:08 GMT+2' ),
        ( '04:55:08 GMT+2' ),
        ( '05:55:08 GMT+2' ),
index 339087018a646db94675c63fd4702ea48e8a403a..01cd30f2defd046bbed982d0ce4072fcc44cdff8 100644 (file)
@@ -136,7 +136,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_oid_ops
-DEFAULT FOR TYPE oid USING gist 
+DEFAULT FOR TYPE oid USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -194,7 +194,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_int2_ops
-DEFAULT FOR TYPE int2 USING gist 
+DEFAULT FOR TYPE int2 USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -251,7 +251,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_int4_ops
-DEFAULT FOR TYPE int4 USING gist 
+DEFAULT FOR TYPE int4 USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -308,7 +308,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_int8_ops
-DEFAULT FOR TYPE int8 USING gist 
+DEFAULT FOR TYPE int8 USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -366,7 +366,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_float4_ops
-DEFAULT FOR TYPE float4 USING gist 
+DEFAULT FOR TYPE float4 USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -426,7 +426,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_float8_ops
-DEFAULT FOR TYPE float8 USING gist 
+DEFAULT FOR TYPE float8 USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -448,7 +448,7 @@ AS
 --
 --
 -- timestamp ops
--- 
+--
 --
 --
 
@@ -461,7 +461,7 @@ CREATE OR REPLACE FUNCTION gbt_tstz_consistent(internal,timestamptz,int2,oid,int
 RETURNS bool
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
-      
+
 CREATE OR REPLACE FUNCTION gbt_ts_compress(internal)
 RETURNS internal
 AS 'MODULE_PATHNAME'
@@ -476,12 +476,12 @@ CREATE OR REPLACE FUNCTION gbt_ts_penalty(internal,internal,internal)
 RETURNS internal
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
-   
+
 CREATE OR REPLACE FUNCTION gbt_ts_picksplit(internal, internal)
 RETURNS internal
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
-      
+
 CREATE OR REPLACE FUNCTION gbt_ts_union(bytea, internal)
 RETURNS gbtreekey16
 AS 'MODULE_PATHNAME'
@@ -494,7 +494,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_timestamp_ops
-DEFAULT FOR TYPE timestamp USING gist 
+DEFAULT FOR TYPE timestamp USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -514,7 +514,7 @@ AS
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_timestamptz_ops
-DEFAULT FOR TYPE timestamptz USING gist 
+DEFAULT FOR TYPE timestamptz USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -536,7 +536,7 @@ AS
 --
 --
 -- time ops
--- 
+--
 --
 --
 
@@ -564,12 +564,12 @@ CREATE OR REPLACE FUNCTION gbt_time_penalty(internal,internal,internal)
 RETURNS internal
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
-   
+
 CREATE OR REPLACE FUNCTION gbt_time_picksplit(internal, internal)
 RETURNS internal
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
-      
+
 CREATE OR REPLACE FUNCTION gbt_time_union(bytea, internal)
 RETURNS gbtreekey16
 AS 'MODULE_PATHNAME'
@@ -582,7 +582,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_time_ops
-DEFAULT FOR TYPE time USING gist 
+DEFAULT FOR TYPE time USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -600,7 +600,7 @@ AS
        STORAGE         gbtreekey16;
 
 CREATE OPERATOR CLASS gist_timetz_ops
-DEFAULT FOR TYPE timetz USING gist 
+DEFAULT FOR TYPE timetz USING gist
 AS
        OPERATOR        1       <   ,
        OPERATOR        2       <=  ,
@@ -622,7 +622,7 @@ AS
 --
 --
 -- date ops
--- 
+--
 --
 --
 
@@ -640,12 +640,12 @@ CREATE OR REPLACE FUNCTION gbt_date_penalty(internal,internal,internal)
 RETURNS internal
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
-   
+
 CREATE OR REPLACE FUNCTION gbt_date_picksplit(internal, internal)
 RETURNS internal
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
-      
+
 CREATE OR REPLACE FUNCTION gbt_date_union(bytea, internal)
 RETURNS gbtreekey8
 AS 'MODULE_PATHNAME'
@@ -658,7 +658,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_date_ops
-DEFAULT FOR TYPE date USING gist 
+DEFAULT FOR TYPE date USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -680,7 +680,7 @@ AS
 --
 --
 -- interval ops
--- 
+--
 --
 --
 
@@ -703,12 +703,12 @@ CREATE OR REPLACE FUNCTION gbt_intv_penalty(internal,internal,internal)
 RETURNS internal
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
-   
+
 CREATE OR REPLACE FUNCTION gbt_intv_picksplit(internal, internal)
 RETURNS internal
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
-      
+
 CREATE OR REPLACE FUNCTION gbt_intv_union(bytea, internal)
 RETURNS gbtreekey32
 AS 'MODULE_PATHNAME'
@@ -721,7 +721,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_interval_ops
-DEFAULT FOR TYPE interval USING gist 
+DEFAULT FOR TYPE interval USING gist
 AS
        OPERATOR        1       < ,
        OPERATOR        2       <= ,
@@ -778,7 +778,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_cash_ops
-DEFAULT FOR TYPE money USING gist 
+DEFAULT FOR TYPE money USING gist
 AS
        OPERATOR        1       < ,
        OPERATOR        2       <= ,
@@ -835,7 +835,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_macaddr_ops
-DEFAULT FOR TYPE macaddr USING gist 
+DEFAULT FOR TYPE macaddr USING gist
 AS
        OPERATOR        1       < ,
        OPERATOR        2       <= ,
@@ -904,7 +904,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_text_ops
-DEFAULT FOR TYPE text USING gist 
+DEFAULT FOR TYPE text USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -919,12 +919,12 @@ AS
        FUNCTION        5       gbt_text_penalty (internal, internal, internal),
        FUNCTION        6       gbt_text_picksplit (internal, internal),
        FUNCTION        7       gbt_text_same (internal, internal, internal),
-       STORAGE                 gbtreekey_var;
+       STORAGE                 gbtreekey_var;
 
 
 ---- Create the operator class
 CREATE OPERATOR CLASS gist_bpchar_ops
-DEFAULT FOR TYPE bpchar USING gist 
+DEFAULT FOR TYPE bpchar USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -939,7 +939,7 @@ AS
        FUNCTION        5       gbt_text_penalty (internal, internal, internal),
        FUNCTION        6       gbt_text_picksplit (internal, internal),
        FUNCTION        7       gbt_text_same (internal, internal, internal),
-       STORAGE                 gbtreekey_var;
+       STORAGE                 gbtreekey_var;
 
 
 
@@ -982,7 +982,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_bytea_ops
-DEFAULT FOR TYPE bytea USING gist 
+DEFAULT FOR TYPE bytea USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -997,7 +997,7 @@ AS
        FUNCTION        5       gbt_bytea_penalty (internal, internal, internal),
        FUNCTION        6       gbt_bytea_picksplit (internal, internal),
        FUNCTION        7       gbt_bytea_same (internal, internal, internal),
-       STORAGE                 gbtreekey_var;
+       STORAGE                 gbtreekey_var;
 
 
 --
@@ -1040,7 +1040,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_numeric_ops
-DEFAULT FOR TYPE numeric USING gist 
+DEFAULT FOR TYPE numeric USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -1055,7 +1055,7 @@ AS
        FUNCTION        5       gbt_numeric_penalty (internal, internal, internal),
        FUNCTION        6       gbt_numeric_picksplit (internal, internal),
        FUNCTION        7       gbt_numeric_same (internal, internal, internal),
-       STORAGE                 gbtreekey_var;
+       STORAGE                 gbtreekey_var;
 
 --
 --
@@ -1096,7 +1096,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_bit_ops
-DEFAULT FOR TYPE bit USING gist 
+DEFAULT FOR TYPE bit USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -1111,12 +1111,12 @@ AS
        FUNCTION        5       gbt_bit_penalty (internal, internal, internal),
        FUNCTION        6       gbt_bit_picksplit (internal, internal),
        FUNCTION        7       gbt_bit_same (internal, internal, internal),
-       STORAGE                 gbtreekey_var;
+       STORAGE                 gbtreekey_var;
 
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_vbit_ops
-DEFAULT FOR TYPE varbit USING gist 
+DEFAULT FOR TYPE varbit USING gist
 AS
        OPERATOR        1       <  ,
        OPERATOR        2       <= ,
@@ -1131,7 +1131,7 @@ AS
        FUNCTION        5       gbt_bit_penalty (internal, internal, internal),
        FUNCTION        6       gbt_bit_picksplit (internal, internal),
        FUNCTION        7       gbt_bit_same (internal, internal, internal),
-       STORAGE                 gbtreekey_var;
+       STORAGE                 gbtreekey_var;
 
 
 
@@ -1175,7 +1175,7 @@ LANGUAGE C IMMUTABLE STRICT;
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_inet_ops
-DEFAULT FOR TYPE inet USING gist 
+DEFAULT FOR TYPE inet USING gist
 AS
        OPERATOR        1       <   ,
        OPERATOR        2       <=  ,
@@ -1194,14 +1194,14 @@ AS
 
 -- Create the operator class
 CREATE OPERATOR CLASS gist_cidr_ops
-DEFAULT FOR TYPE cidr USING gist 
+DEFAULT FOR TYPE cidr USING gist
 AS
        OPERATOR        1       <  (inet, inet)  ,
        OPERATOR        2       <= (inet, inet)  ,
        OPERATOR        3       =  (inet, inet)  ,
        OPERATOR        4       >= (inet, inet)  ,
        OPERATOR        5       >  (inet, inet)  ,
-       OPERATOR        6       <> (inet, inet)  ,
+       OPERATOR        6       <> (inet, inet)  ,
        FUNCTION        1       gbt_inet_consistent (internal, inet, int2, oid, internal),
        FUNCTION        2       gbt_inet_union (bytea, internal),
        FUNCTION        3       gbt_inet_compress (internal),
index 4163730e85ac780dde9b867c699ee73f417402a7..30b9da4c73c690080c904809423a8188c2dd09d3 100644 (file)
@@ -116,9 +116,9 @@ DROP OPERATOR CLASS gist_interval_ops USING gist;
 DROP FUNCTION gbt_intv_same(internal, internal, internal);
 
 DROP FUNCTION gbt_intv_union(bytea, internal);
-      
+
 DROP FUNCTION gbt_intv_picksplit(internal, internal);
-   
+
 DROP FUNCTION gbt_intv_penalty(internal,internal,internal);
 
 DROP FUNCTION gbt_intv_decompress(internal);
@@ -132,9 +132,9 @@ DROP OPERATOR CLASS gist_date_ops USING gist;
 DROP FUNCTION gbt_date_same(internal, internal, internal);
 
 DROP FUNCTION gbt_date_union(bytea, internal);
-      
+
 DROP FUNCTION gbt_date_picksplit(internal, internal);
-   
+
 DROP FUNCTION gbt_date_penalty(internal,internal,internal);
 
 DROP FUNCTION gbt_date_compress(internal);
@@ -148,9 +148,9 @@ DROP OPERATOR CLASS gist_time_ops USING gist;
 DROP FUNCTION gbt_time_same(internal, internal, internal);
 
 DROP FUNCTION gbt_time_union(bytea, internal);
-      
+
 DROP FUNCTION gbt_time_picksplit(internal, internal);
-   
+
 DROP FUNCTION gbt_time_penalty(internal,internal,internal);
 
 DROP FUNCTION gbt_timetz_compress(internal);
@@ -168,15 +168,15 @@ DROP OPERATOR CLASS gist_timestamp_ops USING gist;
 DROP FUNCTION gbt_ts_same(internal, internal, internal);
 
 DROP FUNCTION gbt_ts_union(bytea, internal);
-      
+
 DROP FUNCTION gbt_ts_picksplit(internal, internal);
-   
+
 DROP FUNCTION gbt_ts_penalty(internal,internal,internal);
 
 DROP FUNCTION gbt_tstz_compress(internal);
 
 DROP FUNCTION gbt_ts_compress(internal);
-      
+
 DROP FUNCTION gbt_tstz_consistent(internal,timestamptz,int2,oid,internal);
 
 DROP FUNCTION gbt_ts_consistent(internal,timestamp,int2,oid,internal);
index 0aef0ad947aaa9ab347e56106952dd1ef35a5bbe..1e75b55397a401de6e70b897f45c953e1eca8b59 100644 (file)
@@ -343,7 +343,7 @@ CREATE OPERATOR !~~* (
 );
 
 --
--- Matching citext to text. 
+-- Matching citext to text.
 --
 
 CREATE OR REPLACE FUNCTION texticlike(citext, text)
index 21e73be2d75feb1e92cf6a3c154f5d8eed64e3e2..66ea5ee6ff571943ce1fe6b0b0d3a0c83e228fce 100644 (file)
@@ -1046,7 +1046,7 @@ CREATE TABLE caster (
     bpchar      bpchar,
     char        char,
     chr         "char",
-    name        name,    
+    name        name,
     bytea       bytea,
     boolean     boolean,
     float4      float4,
@@ -1055,7 +1055,7 @@ CREATE TABLE caster (
     int8        int8,
     int4        int4,
     int2        int2,
-    cidr        cidr,   
+    cidr        cidr,
     inet        inet,
     macaddr     macaddr,
     money       money,
index 5fa537bc198105b06082ed0006ebf8db28270ef8..c5ca1f6c54104e7466d9c693788c1d2e738c5b92 100644 (file)
@@ -1046,7 +1046,7 @@ CREATE TABLE caster (
     bpchar      bpchar,
     char        char,
     chr         "char",
-    name        name,    
+    name        name,
     bytea       bytea,
     boolean     boolean,
     float4      float4,
@@ -1055,7 +1055,7 @@ CREATE TABLE caster (
     int8        int8,
     int4        int4,
     int2        int2,
-    cidr        cidr,   
+    cidr        cidr,
     inet        inet,
     macaddr     macaddr,
     money       money,
index 9014e5d931a8863b312a0018737c9c3bbde9dd21..2f9b46665c8d6966a1b0657fc13269ef354d3761 100644 (file)
@@ -302,7 +302,7 @@ CREATE TABLE caster (
     bpchar      bpchar,
     char        char,
     chr         "char",
-    name        name,    
+    name        name,
     bytea       bytea,
     boolean     boolean,
     float4      float4,
@@ -311,7 +311,7 @@ CREATE TABLE caster (
     int8        int8,
     int4        int4,
     int2        int2,
-    cidr        cidr,   
+    cidr        cidr,
     inet        inet,
     macaddr     macaddr,
     money       money,
index d3eca90f6d88416e4f60c2eec711426f7f39180a..7c5590c16f7ddea6ca4ac5392a7f11e4a61e3b21 100644 (file)
@@ -6,10 +6,10 @@ Code Cleanup:
 
 Update the calling convention for all external facing functions. By external
 facing, I mean all functions that are directly referenced in cube.sql. Prior
-to my update, all functions used the older V0 calling convention. They now 
+to my update, all functions used the older V0 calling convention. They now
 use V1.
 
-New Functions: 
+New Functions:
 
 cube(float[]), which makes a zero volume cube from a float array
 
index 3cd199530ab3f1723ce8146d8f8fb509979470b6..a7e6b1d2b97ff6d25f89c0f02948baad0edb0a0b 100644 (file)
@@ -4,7 +4,7 @@
 SET search_path = public;
 
 -- Create the user-defined type for N-dimensional boxes
--- 
+--
 
 CREATE OR REPLACE FUNCTION cube_in(cstring)
 RETURNS cube
@@ -268,12 +268,12 @@ AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
 
 CREATE OR REPLACE FUNCTION g_cube_compress(internal)
-RETURNS internal 
+RETURNS internal
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
 
 CREATE OR REPLACE FUNCTION g_cube_decompress(internal)
-RETURNS internal 
+RETURNS internal
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
 
@@ -288,12 +288,12 @@ AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
 
 CREATE OR REPLACE FUNCTION g_cube_union(internal, internal)
-RETURNS cube 
+RETURNS cube
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
 
 CREATE OR REPLACE FUNCTION g_cube_same(cube, cube, internal)
-RETURNS internal 
+RETURNS internal
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
 
index d02941dd8ca077db4a907b1d9fa5bcdc2ea18a99..9e7c87e90363d48c0101ebb3bd2c4fe9e5f52c4b 100644 (file)
@@ -51,7 +51,7 @@ box:
           O_BRACKET paren_list COMMA paren_list C_BRACKET {
 
            int dim;
-           
+
            dim = delim_count($2, ',') + 1;
            if ( (delim_count($4, ',') + 1) != dim ) {
           ereport(ERROR,
@@ -69,16 +69,16 @@ box:
                                                                 CUBE_MAX_DIM)));
               YYABORT;
             }
-           
+
            *((void **)result) = write_box( dim, $2, $4 );
-    
+
           }
       |
           paren_list COMMA paren_list {
            int dim;
 
            dim = delim_count($1, ',') + 1;
-           
+
            if ( (delim_count($3, ',') + 1) != dim ) {
           ereport(ERROR,
                   (errcode(ERRCODE_SYNTAX_ERROR),
@@ -95,7 +95,7 @@ box:
                                  CUBE_MAX_DIM)));
               YYABORT;
             }
-           
+
            *((void **)result) = write_box( dim, $1, $3 );
           }
       |
@@ -146,7 +146,7 @@ list:
              $$ = palloc(scanbuflen + 1);
                         strcpy($$, $1);
          }
-      | 
+      |
          list COMMA CUBEFLOAT {
              $$ = $1;
             strcat($$, ",");
@@ -169,31 +169,31 @@ delim_count(char *s, char delim)
       return (ndelim);
 }
 
-static NDBOX * 
+static NDBOX *
 write_box(unsigned int dim, char *str1, char *str2)
 {
   NDBOX * bp;
   char * s;
-  int i; 
+  int i;
   int size = offsetof(NDBOX, x[0]) + sizeof(double) * dim * 2;
-           
+
   bp = palloc0(size);
   SET_VARSIZE(bp, size);
   bp->dim = dim;
-           
+
   s = str1;
   bp->x[i=0] = strtod(s, NULL);
   while ((s = strchr(s, ',')) != NULL) {
     s++; i++;
     bp->x[i] = strtod(s, NULL);
-  }    
-  
+  }
+
   s = str2;
   bp->x[i=dim] = strtod(s, NULL);
   while ((s = strchr(s, ',')) != NULL) {
     s++; i++;
     bp->x[i] = strtod(s, NULL);
-  }    
+  }
 
   return(bp);
 }
@@ -206,13 +206,13 @@ write_point_as_box(char *str, int dim)
   int i, size;
   double x;
   char * s = str;
-  
+
   size = offsetof(NDBOX, x[0]) + sizeof(double) * dim * 2;
 
   bp = palloc0(size);
   SET_VARSIZE(bp, size);
   bp->dim = dim;
-  
+
   i = 0;
   x = strtod(s, NULL);
   bp->x[0] = x;
@@ -222,7 +222,7 @@ write_point_as_box(char *str, int dim)
     x = strtod(s, NULL);
     bp->x[i] = x;
     bp->x[i+dim] = x;
-  }    
+  }
 
   return(bp);
 }
index b0e477bf1e692b63e05bdf43bca2103106e71702..eb71b11adffd64bfe52bc5c3a4b3acb4ea5fcd2a 100644 (file)
@@ -1,8 +1,8 @@
 %{
-/* 
-** A scanner for EMP-style numeric ranges 
+/*
+ * A scanner for EMP-style numeric ranges
  * contrib/cube/cubescan.l
-*/
+ */
 
 #include "postgres.h"
 
index 101a63b72362def2ad0fba00ee5640ef2071fd93..ae7b5b22c2fae3a12f08c77e9b4d0b50133a44b7 100644 (file)
@@ -473,13 +473,13 @@ SELECT cube('{0,1,2}'::float[]);
  (0, 1, 2)
 (1 row)
 
-SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[3,2,1,1]); 
+SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[3,2,1,1]);
         cube_subset        
 ---------------------------
  (5, 3, 1, 1),(8, 7, 6, 6)
 (1 row)
 
-SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[4,0]); 
+SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[4,0]);
 ERROR:  Index out of bounds
 --
 -- Testing limit of CUBE_MAX_DIM dimensions check in cube_in.
@@ -1107,11 +1107,11 @@ SELECT cube_enlarge('(2,-2),(-3,7)'::cube, -3, 2);
 (1 row)
 
 -- Load some example data and build the index
--- 
+--
 CREATE TABLE test_cube (c cube);
 \copy test_cube from 'data/test_cube.data'
 CREATE INDEX test_cube_ix ON test_cube USING gist (c);
-SELECT * FROM test_cube        WHERE c && '(3000,1000),(0,0)' ORDER BY c;
+SELECT * FROM test_cube WHERE c && '(3000,1000),(0,0)' ORDER BY c;
             c             
 --------------------------
  (337, 455),(240, 359)
@@ -1121,8 +1121,8 @@ SELECT * FROM test_cube   WHERE c && '(3000,1000),(0,0)' ORDER BY c;
  (2424, 160),(2424, 81)
 (5 rows)
 
--- Test sorting 
-SELECT * FROM test_cube        WHERE c && '(3000,1000),(0,0)' GROUP BY c ORDER BY c;
+-- Test sorting
+SELECT * FROM test_cube WHERE c && '(3000,1000),(0,0)' GROUP BY c ORDER BY c;
             c             
 --------------------------
  (337, 455),(240, 359)
index 55f6861dafb6f438b867a742edb60630ae0f3c8e..f27e832d6317c41ae02e28a42d1e132c9d9628cf 100644 (file)
@@ -473,13 +473,13 @@ SELECT cube('{0,1,2}'::float[]);
  (0, 1, 2)
 (1 row)
 
-SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[3,2,1,1]); 
+SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[3,2,1,1]);
         cube_subset        
 ---------------------------
  (5, 3, 1, 1),(8, 7, 6, 6)
 (1 row)
 
-SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[4,0]); 
+SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[4,0]);
 ERROR:  Index out of bounds
 --
 -- Testing limit of CUBE_MAX_DIM dimensions check in cube_in.
@@ -1107,11 +1107,11 @@ SELECT cube_enlarge('(2,-2),(-3,7)'::cube, -3, 2);
 (1 row)
 
 -- Load some example data and build the index
--- 
+--
 CREATE TABLE test_cube (c cube);
 \copy test_cube from 'data/test_cube.data'
 CREATE INDEX test_cube_ix ON test_cube USING gist (c);
-SELECT * FROM test_cube        WHERE c && '(3000,1000),(0,0)' ORDER BY c;
+SELECT * FROM test_cube WHERE c && '(3000,1000),(0,0)' ORDER BY c;
             c             
 --------------------------
  (337, 455),(240, 359)
@@ -1121,8 +1121,8 @@ SELECT * FROM test_cube   WHERE c && '(3000,1000),(0,0)' ORDER BY c;
  (2424, 160),(2424, 81)
 (5 rows)
 
--- Test sorting 
-SELECT * FROM test_cube        WHERE c && '(3000,1000),(0,0)' GROUP BY c ORDER BY c;
+-- Test sorting
+SELECT * FROM test_cube WHERE c && '(3000,1000),(0,0)' GROUP BY c ORDER BY c;
             c             
 --------------------------
  (337, 455),(240, 359)
index c44939581803f093fec2b48e28f10112a72e90a7..f534ccf0b53a454d81536ce71f3ee772576807e3 100644 (file)
@@ -473,13 +473,13 @@ SELECT cube('{0,1,2}'::float[]);
  (0, 1, 2)
 (1 row)
 
-SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[3,2,1,1]); 
+SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[3,2,1,1]);
         cube_subset        
 ---------------------------
  (5, 3, 1, 1),(8, 7, 6, 6)
 (1 row)
 
-SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[4,0]); 
+SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[4,0]);
 ERROR:  Index out of bounds
 --
 -- Testing limit of CUBE_MAX_DIM dimensions check in cube_in.
@@ -1107,11 +1107,11 @@ SELECT cube_enlarge('(2,-2),(-3,7)'::cube, -3, 2);
 (1 row)
 
 -- Load some example data and build the index
--- 
+--
 CREATE TABLE test_cube (c cube);
 \copy test_cube from 'data/test_cube.data'
 CREATE INDEX test_cube_ix ON test_cube USING gist (c);
-SELECT * FROM test_cube        WHERE c && '(3000,1000),(0,0)' ORDER BY c;
+SELECT * FROM test_cube WHERE c && '(3000,1000),(0,0)' ORDER BY c;
             c             
 --------------------------
  (337, 455),(240, 359)
@@ -1121,8 +1121,8 @@ SELECT * FROM test_cube   WHERE c && '(3000,1000),(0,0)' ORDER BY c;
  (2424, 160),(2424, 81)
 (5 rows)
 
--- Test sorting 
-SELECT * FROM test_cube        WHERE c && '(3000,1000),(0,0)' GROUP BY c ORDER BY c;
+-- Test sorting
+SELECT * FROM test_cube WHERE c && '(3000,1000),(0,0)' GROUP BY c ORDER BY c;
             c             
 --------------------------
  (337, 455),(240, 359)
index 1931dfbc8037e2daa6ed26ec574bfdcd7be73500..5c12183dfd7a23b6a18a8e7e9814914cf1288d12 100644 (file)
@@ -119,8 +119,8 @@ SELECT cube('{0,1,2}'::float[], '{3,4,5}'::float[]);
 SELECT cube('{0,1,2}'::float[], '{3}'::float[]);
 SELECT cube(NULL::float[], '{3}'::float[]);
 SELECT cube('{0,1,2}'::float[]);
-SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[3,2,1,1]); 
-SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[4,0]); 
+SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[3,2,1,1]);
+SELECT cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[4,0]);
 
 --
 -- Testing limit of CUBE_MAX_DIM dimensions check in cube_in.
@@ -275,13 +275,13 @@ SELECT cube_enlarge('(2,-2),(-3,7)'::cube, -1, 2);
 SELECT cube_enlarge('(2,-2),(-3,7)'::cube, -3, 2);
 
 -- Load some example data and build the index
--- 
+--
 CREATE TABLE test_cube (c cube);
 
 \copy test_cube from 'data/test_cube.data'
 
 CREATE INDEX test_cube_ix ON test_cube USING gist (c);
-SELECT * FROM test_cube        WHERE c && '(3000,1000),(0,0)' ORDER BY c;
+SELECT * FROM test_cube WHERE c && '(3000,1000),(0,0)' ORDER BY c;
 
--- Test sorting 
-SELECT * FROM test_cube        WHERE c && '(3000,1000),(0,0)' GROUP BY c ORDER BY c;
+-- Test sorting
+SELECT * FROM test_cube WHERE c && '(3000,1000),(0,0)' GROUP BY c ORDER BY c;
index cc59128cb2ab78f83d0706d415b954380a5afdea..fdfd03a4cf7b1a2f14fce4341ee319bc4fcd9e68 100644 (file)
@@ -6,8 +6,8 @@ OBJS    = dblink.o
 SHLIB_LINK = $(libpq)
 SHLIB_PREREQS = submake-libpq
 
-DATA_built = dblink.sql 
-DATA = uninstall_dblink.sql 
+DATA_built = dblink.sql
+DATA = uninstall_dblink.sql
 REGRESS = dblink
 
 
index acad2c94d0f5df3fa0b2c92870cc2edbcbfbf575..3c9d66e7df1ae1a0da04f3bcb6bdf85e80f16d35 100644 (file)
@@ -207,7 +207,7 @@ CREATE OR REPLACE FUNCTION dblink_get_notify(
     OUT notify_name TEXT,
     OUT be_pid INT4,
     OUT extra TEXT
-) 
+)
 RETURNS setof record
 AS 'MODULE_PATHNAME', 'dblink_get_notify'
 LANGUAGE C STRICT;
@@ -217,7 +217,7 @@ CREATE OR REPLACE FUNCTION dblink_get_notify(
     OUT notify_name TEXT,
     OUT be_pid INT4,
     OUT extra TEXT
-) 
+)
 RETURNS setof record
 AS 'MODULE_PATHNAME', 'dblink_get_notify'
 LANGUAGE C STRICT;
index c59a67c7374041580c42e201506d798e66c25c35..15848dd92293b6e04a3e3a3faba98b8b2e1e6ebf 100644 (file)
@@ -668,7 +668,7 @@ SELECT dblink_connect('dtest1', 'dbname=contrib_regression');
  OK
 (1 row)
 
-SELECT * from 
+SELECT * from
  dblink_send_query('dtest1', 'select * from foo where f1 < 3') as t1;
  t1 
 ----
@@ -681,7 +681,7 @@ SELECT dblink_connect('dtest2', 'dbname=contrib_regression');
  OK
 (1 row)
 
-SELECT * from 
+SELECT * from
  dblink_send_query('dtest2', 'select * from foo where f1 > 2 and f1 < 7') as t1;
  t1 
 ----
@@ -694,7 +694,7 @@ SELECT dblink_connect('dtest3', 'dbname=contrib_regression');
  OK
 (1 row)
 
-SELECT * from 
+SELECT * from
  dblink_send_query('dtest3', 'select * from foo where f1 > 6') as t1;
  t1 
 ----
@@ -768,7 +768,7 @@ SELECT dblink_connect('dtest1', 'dbname=contrib_regression');
  OK
 (1 row)
 
-SELECT * from 
+SELECT * from
  dblink_send_query('dtest1', 'select * from foo where f1 < 3') as t1;
  t1 
 ----
index a6d7811bfc8b2ff9dc53e2c64d2293deef67a285..062bc9ee0ee47af5d46a555329bc3aef4befc82c 100644 (file)
@@ -327,15 +327,15 @@ SELECT dblink_disconnect('myconn');
 
 -- test asynchronous queries
 SELECT dblink_connect('dtest1', 'dbname=contrib_regression');
-SELECT * from 
+SELECT * from
  dblink_send_query('dtest1', 'select * from foo where f1 < 3') as t1;
 
 SELECT dblink_connect('dtest2', 'dbname=contrib_regression');
-SELECT * from 
+SELECT * from
  dblink_send_query('dtest2', 'select * from foo where f1 > 2 and f1 < 7') as t1;
 
 SELECT dblink_connect('dtest3', 'dbname=contrib_regression');
-SELECT * from 
+SELECT * from
  dblink_send_query('dtest3', 'select * from foo where f1 > 6') as t1;
 
 CREATE TEMPORARY TABLE result AS
@@ -364,7 +364,7 @@ SELECT dblink_disconnect('dtest3');
 SELECT * from result;
 
 SELECT dblink_connect('dtest1', 'dbname=contrib_regression');
-SELECT * from 
+SELECT * from
  dblink_send_query('dtest1', 'select * from foo where f1 < 3') as t1;
 
 SELECT dblink_cancel_query('dtest1');
index a4799914bd0bde989f41277fe3360a59ef56897e..a4ce812584682a314fd06f7f64295c63ac14a77e 100644 (file)
@@ -35,7 +35,7 @@ CREATE DOMAIN earth AS cube
   CONSTRAINT on_surface check(abs(cube_distance(value, '(0)'::cube) /
   earth() - 1) < '10e-7'::float8);
 
-CREATE OR REPLACE FUNCTION sec_to_gc(float8) 
+CREATE OR REPLACE FUNCTION sec_to_gc(float8)
 RETURNS float8
 LANGUAGE SQL
 IMMUTABLE STRICT
@@ -76,7 +76,7 @@ RETURNS cube
 LANGUAGE SQL
 IMMUTABLE STRICT
 AS 'SELECT cube_enlarge($1, gc_to_sec($2), 3)';
-  
+
 --------------- geo_distance
 
 CREATE OR REPLACE FUNCTION geo_distance (point, point)
index 0e75491cbe380f58218edb726a5fdbf711d1189b..0f2ea85e4894ea79b459cfd6ec16d76917c4cba5 100644 (file)
@@ -35,10 +35,10 @@ CREATE OR REPLACE FUNCTION difference(text,text) RETURNS int
 AS 'MODULE_PATHNAME', 'difference'
 LANGUAGE C IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION dmetaphone (text) RETURNS text 
+CREATE OR REPLACE FUNCTION dmetaphone (text) RETURNS text
 AS 'MODULE_PATHNAME', 'dmetaphone'
 LANGUAGE C IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION dmetaphone_alt (text) RETURNS text 
+CREATE OR REPLACE FUNCTION dmetaphone_alt (text) RETURNS text
 AS 'MODULE_PATHNAME', 'dmetaphone_alt'
 LANGUAGE C IMMUTABLE STRICT;
index 0ed109203cfc60995b85d56c0cbd696df01147c7..19dd299af754ac70133b31266d42592786da32ee 100644 (file)
@@ -438,7 +438,7 @@ select hstore 'a=>NULL, b=>qq' ?& '{}'::text[];
  f
 (1 row)
 
--- delete 
+-- delete
 select delete('a=>1 , b=>2, c=>3'::hstore, 'a');
        delete       
 --------------------
index 76f742299ea962e096a69fafc94850bc07322d26..58a79675267aecc63ff8f50fe8bdd33ec44c567b 100644 (file)
@@ -97,7 +97,7 @@ select hstore 'a=>NULL, b=>qq' ?& ARRAY['c','a'];
 select hstore 'a=>NULL, b=>qq' ?& ARRAY['c','d'];
 select hstore 'a=>NULL, b=>qq' ?& '{}'::text[];
 
--- delete 
+-- delete
 
 select delete('a=>1 , b=>2, c=>3'::hstore, 'a');
 select delete('a=>null , b=>2, c=>3'::hstore, 'a');
index 18340f9d71b85b16f74c3bc265f3afa7be07f264..a10d7c6b1f9d353df0f2ce594d813f523a33ab2c 100644 (file)
@@ -1,7 +1,7 @@
 # contrib/intarray/Makefile
 
 MODULE_big = _int
-OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o _intbig_gist.o _int_gin.o 
+OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o _intbig_gist.o _int_gin.o
 DATA_built = _int.sql
 DATA = uninstall__int.sql
 REGRESS = _int
index 18872119899fb887846fc17a90ada0cff850b645..4e18624b9c21bf407b1f18485386f58c85a61b84 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl 
+#!/usr/bin/perl
 
 use strict;
 # make sure we are in a sane environment.
@@ -14,16 +14,16 @@ if ( !( scalar %opt && defined $opt{s} ) ) {
        print <<EOT;
 Usage:
 $0 -d DATABASE -s SECTIONS [-b NUMBER] [-v] [-e] [-o] [-r] [-a] [-u]
--d DATABASE    -DATABASE
--b NUMBER      -number of repeats
--s SECTIONS    -sections, format       sid1[,sid2[,sid3[...]]]]
--v             -verbose (show SQL)
+-d DATABASE    -DATABASE
+-b NUMBER      -number of repeats
+-s SECTIONS    -sections, format       sid1[,sid2[,sid3[...]]]]
+-v             -verbose (show SQL)
 -e             -show explain
 -r             -use RD-tree index
 -a             -AND section
 -o             -show output
 -u             -unique
--c             -count
+-c             -count
 
 EOT
        exit;
@@ -87,19 +87,19 @@ if ( $opt{o} ) {
        foreach ( @a ) {
                print "$_->{mid}\t$_->{sections}\n";
        }
-} 
+}
 print sprintf("total: %.02f sec; number: %d; for one: %.03f sec; found %d docs\n", $elapsed, $b, $elapsed/$b, $count+1 );
 $dbi -> disconnect;
 
 sub exec_sql {
         my ($dbi, $sql, @keys) = @_;
         my $sth=$dbi->prepare($sql) || die;
-        $sth->execute( @keys ) || die; 
-        my $r;  
+        $sth->execute( @keys ) || die;
+        my $r;
         my @row;
         while ( defined ( $r=$sth->fetchrow_hashref ) ) {
                 push @row, $r;
-        }               
-        $sth->finish;   
+        }
+        $sth->finish;
         return @row;
 }
index 3a5e96301bf35eff75fefa03ef304a4cd7280fb9..67394f87b707dcf8c6bffce1aac697d6dbf64137 100755 (executable)
@@ -9,7 +9,7 @@ create table message (
        sections        int[]
 );
 create table message_section_map (
-       mid     int not null,
+       mid     int not null,
        sid     int not null
 );
 
@@ -66,7 +66,7 @@ unlink 'message.tmp', 'message_section_map.tmp';
 
 sub copytable {
        my $t = shift;
-       
+
        print "COPY $t from stdin;\n";
        open( FFF, "$t.tmp") || die;
        while(<FFF>) { print; }
index 6e6d95b09fac51b607e39804d1eade8565872915..c0301ced1e0ceea3e8265903603485ed2f1ec151 100644 (file)
@@ -32,7 +32,7 @@
  * For ISBN with prefix 978
  * Range Table as of 2010-Jul-29
  */
+
 /* where the digit set begins, and how many of them are in the table */
 const unsigned ISBN_index[10][2] = {
        {0, 6},
index 4ea6277c576575607f1cd10a3644675978d4a32d..1b985a7a9952976fd2bff96f4f9aa7230b06ea07 100644 (file)
@@ -482,18 +482,18 @@ CREATE OR REPLACE FUNCTION ltree_gist_in(cstring)
 RETURNS ltree_gist
 AS 'MODULE_PATHNAME'
 LANGUAGE C STRICT;
-  
+
 CREATE OR REPLACE FUNCTION ltree_gist_out(ltree_gist)
 RETURNS cstring
 AS 'MODULE_PATHNAME'
 LANGUAGE C STRICT;
-  
+
 CREATE TYPE ltree_gist (
        internallength = -1,
        input = ltree_gist_in,
        output = ltree_gist_out,
        storage = plain
-);   
+);
 
 
 CREATE OR REPLACE FUNCTION ltree_consistent(internal,internal,int2,oid,internal)
index 07ce1189b5fc0a9b79de6e1f4b9fcb2e47251af3..2e10b10e97e7e30738475ad9b7187778bca384bb 100644 (file)
@@ -110,7 +110,7 @@ DROP FUNCTION ltree_compress(internal);
 DROP FUNCTION ltree_consistent(internal,internal,int2,oid,internal);
 
 DROP TYPE ltree_gist CASCADE;
-  
+
 DROP OPERATOR ^@ (ltxtquery, ltree);
 
 DROP OPERATOR ^@ (ltree, ltxtquery);
index 6a47a2241ee39417734245198cde716300f96872..ffcf0c3b928d73ba271116d94b9b0658b9a19bee 100644 (file)
@@ -1,10 +1,10 @@
 # contrib/pg_buffercache/Makefile
 
 MODULE_big = pg_buffercache
-OBJS   = pg_buffercache_pages.o
+OBJS = pg_buffercache_pages.o
 
-DATA_built = pg_buffercache.sql 
-DATA = uninstall_pg_buffercache.sql 
+DATA_built = pg_buffercache.sql
+DATA = uninstall_pg_buffercache.sql
 
 ifdef USE_PGXS
 PG_CONFIG = pg_config
index b23e94ed124aa7997fc5114f00df7baaf48ea45b..88b5e643acd50de1c190bb04e10d863e2739422c 100644 (file)
@@ -12,9 +12,9 @@ LANGUAGE C;
 -- Create a view for convenient access.
 CREATE VIEW pg_buffercache AS
        SELECT P.* FROM pg_buffercache_pages() AS P
-       (bufferid integer, relfilenode oid, reltablespace oid, reldatabase oid, 
+       (bufferid integer, relfilenode oid, reltablespace oid, reldatabase oid,
         relforknumber int2, relblocknumber int8, isdirty bool, usagecount int2);
+
 -- Don't want these to be available at public.
 REVOKE ALL ON FUNCTION pg_buffercache_pages() FROM PUBLIC;
 REVOKE ALL ON pg_buffercache FROM PUBLIC;
index da335a86ca95f7b7d2315d09228274002bb18101..65539d5d716a12539f266c9d7b316071afbc1aa2 100644 (file)
@@ -1,10 +1,10 @@
 # contrib/pg_freespacemap/Makefile
 
 MODULE_big = pg_freespacemap
-OBJS   = pg_freespacemap.o
+OBJS = pg_freespacemap.o
 
-DATA_built = pg_freespacemap.sql 
-DATA = uninstall_pg_freespacemap.sql 
+DATA_built = pg_freespacemap.sql
+DATA = uninstall_pg_freespacemap.sql
 
 ifdef USE_PGXS
 PG_CONFIG = pg_config
index b1f094ab407ad00b357ab08c9ee2ff1114d1665c..cce6cd9872f140ac26000e4009d5800ab7328a1b 100644 (file)
@@ -59,7 +59,7 @@ CREATE OR REPLACE FUNCTION gtrgm_consistent(internal,text,int,oid,internal)
 RETURNS bool
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
+
 CREATE OR REPLACE FUNCTION gtrgm_compress(internal)
 RETURNS internal
 AS 'MODULE_PATHNAME'
index 239cd85b5b0f6e815eedfe32bdbe566cca27a9c2..6706dd133e1fdaba917ca99a00e29584342a142a 100644 (file)
@@ -16,7 +16,7 @@ DROP FUNCTION gtrgm_penalty(internal,internal,internal);
 DROP FUNCTION gtrgm_decompress(internal);
 
 DROP FUNCTION gtrgm_compress(internal);
+
 DROP FUNCTION gtrgm_consistent(internal,text,int,oid,internal);
 
 DROP TYPE gtrgm CASCADE;
index bbd36ac9e92e609584f3020a853f2e1039b8c6f7..a0cfcf15dac30f198b59b5188071ce3e32ec6d76 100644 (file)
@@ -13,7 +13,7 @@ old data. If you have a lot of data, that can take a considerable amount
 of time. If you have too much data, you may have to buy more storage
 since you need enough room to hold the original data plus the exported
 data.  pg_upgrade can reduce the amount of time and disk space required
-for many upgrades.  
+for many upgrades.
 
 The URL http://momjian.us/main/writings/pgsql/pg_upgrade.pdf contains a
 presentation about pg_upgrade internals that mirrors the text
index 88adfea276f9ecff867deae63deee917c8b6dfd8..85de8da7f7e69438d627d85faf3db687dc1f773c 100644 (file)
@@ -35,10 +35,10 @@ Here are the steps needed to create a regression database dump file:
     b)  For pre-9.0, remove 'regex_flavor'
 
     f)  For pre-9.0, adjust extra_float_digits
-       Postgres 9.0 pg_dump uses extra_float_digits=-2 for pre-9.0
-       databases, and extra_float_digits=-3 for >= 9.0 databases.
-       It is necessary to modify 9.0 pg_dump to always use -3, and
-       modify the pre-9.0 old server to accept extra_float_digits=-3.
+        Postgres 9.0 pg_dump uses extra_float_digits=-2 for pre-9.0
+        databases, and extra_float_digits=-3 for >= 9.0 databases.
+        It is necessary to modify 9.0 pg_dump to always use -3, and
+        modify the pre-9.0 old server to accept extra_float_digits=-3.
 
 Once the dump is created, it can be repeatedly loaded into the old
 database, upgraded, and dumped out of the new database, and then
@@ -52,7 +52,7 @@ steps:
 
 3)  Create the regression database in the old server.
 
-4)  Load the dump file created above into the regression database; 
+4)  Load the dump file created above into the regression database;
     check for errors while loading.
 
 5)  Upgrade the old database to the new major version, as outlined in
index 7b73b5e91f5603d4a83b130adcd6458cb2efd1d7..4ded5d9d996535c771cc6672639e7cb1bc8db88b 100644 (file)
@@ -171,7 +171,7 @@ transfer_single_new_db(pageCnvCtx *pageConverter,
                                                         namelist[fileno]->d_name);
                                        snprintf(new_file, sizeof(new_file), "%s/%u%s", maps[mapnum].new_dir,
                                                         maps[mapnum].new_relfilenode, strchr(namelist[fileno]->d_name, '_'));
-       
+
                                        unlink(new_file);
                                        transfer_relfile(pageConverter, old_file, new_file,
                                                          maps[mapnum].old_nspname, maps[mapnum].old_relname,
index 86c3244cece7ec459062a47bfb42111ba0bfb450..72557ea1613c935962b45622d231f30a34f673f6 100644 (file)
@@ -108,7 +108,7 @@ decode('37363534333231204e6f77206973207468652074696d6520666f722000', 'hex'),
  3ea6357a0ee7fad6d0c4b63464f2aafa40c2e91b4b7e1bba8114932fd92b5c8f111e7e50e7b2e541
 (1 row)
 
--- blowfish-448 
+-- blowfish-448
 SELECT encode(encrypt(
 decode('fedcba9876543210', 'hex'),
 decode('f0e1d2c3b4a5968778695a4b3c2d1e0f001122334455667704689104c2fd3b2f584023641aba61761f1f1f1f0e0e0e0effffffffffffffff', 'hex'),
@@ -120,21 +120,21 @@ decode('f0e1d2c3b4a5968778695a4b3c2d1e0f001122334455667704689104c2fd3b2f58402364
 
 -- result: c04504012e4e1f53
 -- empty data
-select encode( encrypt('', 'foo', 'bf'), 'hex');
+select encode(encrypt('', 'foo', 'bf'), 'hex');
       encode      
 ------------------
  1871949bb2311c8e
 (1 row)
 
 -- 10 bytes key
-select encode( encrypt('foo', '0123456789', 'bf'), 'hex');
+select encode(encrypt('foo', '0123456789', 'bf'), 'hex');
       encode      
 ------------------
  42f58af3b2c03f46
 (1 row)
 
 -- 22 bytes key
-select encode( encrypt('foo', '0123456789012345678901', 'bf'), 'hex');
+select encode(encrypt('foo', '0123456789012345678901', 'bf'), 'hex');
       encode      
 ------------------
  86ab6f0bc72b5f22
index 8a8b0071810b7f015d02fb0a27c6c9a3950b6fac..329d78f6254621d3e1dedfe86afb8c0b18a03f3d 100644 (file)
@@ -17,7 +17,7 @@ CREATE TABLE ctest (data text, res text, salt text);
 INSERT INTO ctest VALUES ('password', '', '');
 UPDATE ctest SET salt = gen_salt('bf', 8);
 UPDATE ctest SET res = crypt(data, salt);
-SELECT res = crypt(data, res) AS "worked" 
+SELECT res = crypt(data, res) AS "worked"
 FROM ctest;
  worked 
 --------
index 106181ef224240ca942a722d8a985e8684bd75db..14b2650c324f884cb36889bb3e66b673c67505fb 100644 (file)
@@ -70,21 +70,21 @@ decode('000102030405060708090a0b0c0d0e0f101112131415161718191a1b', 'hex'),
 (1 row)
 
 -- empty data
-select encode( encrypt('', 'foo', 'aes'), 'hex');
+select encode(encrypt('', 'foo', 'aes'), 'hex');
               encode              
 ----------------------------------
  b48cc3338a2eb293b6007ef72c360d48
 (1 row)
 
 -- 10 bytes key
-select encode( encrypt('foo', '0123456789', 'aes'), 'hex');
+select encode(encrypt('foo', '0123456789', 'aes'), 'hex');
               encode              
 ----------------------------------
  f397f03d2819b7172b68d0706fda4693
 (1 row)
 
 -- 22 bytes key
-select encode( encrypt('foo', '0123456789012345678901', 'aes'), 'hex');
+select encode(encrypt('foo', '0123456789012345678901', 'aes'), 'hex');
               encode              
 ----------------------------------
  5c9db77af02b4678117bcd8a71ae7f53
@@ -105,7 +105,7 @@ select encode(encrypt_iv('foo', '0123456', 'abcd', 'aes'), 'hex');
 (1 row)
 
 select decrypt_iv(decode('2c24cb7da91d6d5699801268b0f5adad', 'hex'),
-               '0123456', 'abcd', 'aes'); 
+               '0123456', 'abcd', 'aes');
  decrypt_iv 
 ------------
  foo
index 8ea62eae1b1ffc69d1d2243acd4b548526110bc7..c7610c013460caf253ce247fbf2d0515856f77fb 100644 (file)
@@ -1133,6 +1133,6 @@ static const u4byte  il_tab[4][256] = {
 };
 
 static const u4byte rco_tab[10] = {
-  0x00000001, 0x00000002, 0x00000004, 0x00000008, 0x00000010, 
+  0x00000001, 0x00000002, 0x00000004, 0x00000008, 0x00000010,
   0x00000020, 0x00000040, 0x00000080, 0x0000001b, 0x00000036
 };
index 951cbc05197672a8effcfcf132e641521a114bce..ba8df41c68e9b5d467ba20fd2eb972970bafbdb6 100644 (file)
@@ -66,7 +66,7 @@ decode('6b77b4d63006dee605b156e27403979358deb9e7154616d959f1652bd5ff92cc', 'hex'
 decode('37363534333231204e6f77206973207468652074696d6520666f722000', 'hex'),
 'bf-cbc'), 'hex');
 
--- blowfish-448 
+-- blowfish-448
 SELECT encode(encrypt(
 decode('fedcba9876543210', 'hex'),
 decode('f0e1d2c3b4a5968778695a4b3c2d1e0f001122334455667704689104c2fd3b2f584023641aba61761f1f1f1f0e0e0e0effffffffffffffff', 'hex'),
@@ -74,11 +74,11 @@ decode('f0e1d2c3b4a5968778695a4b3c2d1e0f001122334455667704689104c2fd3b2f58402364
 -- result: c04504012e4e1f53
 
 -- empty data
-select encode( encrypt('', 'foo', 'bf'), 'hex');
+select encode(encrypt('', 'foo', 'bf'), 'hex');
 -- 10 bytes key
-select encode( encrypt('foo', '0123456789', 'bf'), 'hex');
+select encode(encrypt('foo', '0123456789', 'bf'), 'hex');
 -- 22 bytes key
-select encode( encrypt('foo', '0123456789012345678901', 'bf'), 'hex');
+select encode(encrypt('foo', '0123456789012345678901', 'bf'), 'hex');
 
 -- decrypt
 select decrypt(encrypt('foo', '0123456', 'bf'), '0123456', 'bf');
index b89dfd22b7b813cde42da25582b49a0a102fcfe2..60c114005552093ba07c83d79a63fc96a3f87aa6 100644 (file)
@@ -11,7 +11,7 @@ INSERT INTO ctest VALUES ('password', '', '');
 
 UPDATE ctest SET salt = gen_salt('bf', 8);
 UPDATE ctest SET res = crypt(data, salt);
-SELECT res = crypt(data, res) AS "worked" 
+SELECT res = crypt(data, res) AS "worked"
 FROM ctest;
 
 DROP TABLE ctest;
index 41595074bc63bf29e9175c85afbf6b6b3e8f67e6..bfbf95d39b843c5464fcc65b3b6ecfb3e0fdf451 100644 (file)
@@ -44,11 +44,11 @@ decode('000102030405060708090a0b0c0d0e0f101112131415161718191a1b', 'hex'),
 'aes-cbc'), 'hex');
 
 -- empty data
-select encode( encrypt('', 'foo', 'aes'), 'hex');
+select encode(encrypt('', 'foo', 'aes'), 'hex');
 -- 10 bytes key
-select encode( encrypt('foo', '0123456789', 'aes'), 'hex');
+select encode(encrypt('foo', '0123456789', 'aes'), 'hex');
 -- 22 bytes key
-select encode( encrypt('foo', '0123456789012345678901', 'aes'), 'hex');
+select encode(encrypt('foo', '0123456789012345678901', 'aes'), 'hex');
 
 -- decrypt
 select decrypt(encrypt('foo', '0123456', 'aes'), '0123456', 'aes');
@@ -56,7 +56,7 @@ select decrypt(encrypt('foo', '0123456', 'aes'), '0123456', 'aes');
 -- iv
 select encode(encrypt_iv('foo', '0123456', 'abcd', 'aes'), 'hex');
 select decrypt_iv(decode('2c24cb7da91d6d5699801268b0f5adad', 'hex'),
-               '0123456', 'abcd', 'aes'); 
+               '0123456', 'abcd', 'aes');
 
 -- long message
 select encode(encrypt('Lets try a longer message.', '0123456789', 'aes'), 'hex');
index bd099a222ca2af5ac142e5de1f07e2df839cf6db..17c803e50e4195e8fdd011536c0fbffbd43a1bbd 100644 (file)
@@ -924,7 +924,7 @@ SELECT '1'::seg <@ '-1 .. 1'::seg AS bool;
 (1 row)
 
 -- Load some example data and build the index
--- 
+--
 CREATE TABLE test_seg (s seg);
 \copy test_seg from 'data/test_seg.data'
 CREATE INDEX test_seg_ix ON test_seg USING gist (s);
@@ -934,7 +934,7 @@ SELECT count(*) FROM test_seg WHERE s @> '11..11.3';
    143
 (1 row)
 
--- Test sorting 
+-- Test sorting
 SELECT * FROM test_seg WHERE s @> '11..11.3' GROUP BY s;
         s        
 -----------------
index c92cd835100e3ada0ecc4933a599e50aae99062c..a4cca8b3917c62e8f3b853a4932099294b4afbf7 100644 (file)
@@ -924,7 +924,7 @@ SELECT '1'::seg <@ '-1 .. 1'::seg AS bool;
 (1 row)
 
 -- Load some example data and build the index
--- 
+--
 CREATE TABLE test_seg (s seg);
 \copy test_seg from 'data/test_seg.data'
 CREATE INDEX test_seg_ix ON test_seg USING gist (s);
@@ -934,7 +934,7 @@ SELECT count(*) FROM test_seg WHERE s @> '11..11.3';
    143
 (1 row)
 
--- Test sorting 
+-- Test sorting
 SELECT * FROM test_seg WHERE s @> '11..11.3' GROUP BY s;
         s        
 -----------------
index 2713c4a8dc66630e747f63c6a34b7944946fdfd9..9bd747656c8d67aebded7793f9ffc636f6ee1bf5 100644 (file)
@@ -4,7 +4,7 @@
 SET search_path = public;
 
 -- Create the user-defined type for 1-D floating point intervals (seg)
--- 
+--
 
 CREATE OR REPLACE FUNCTION seg_in(cstring)
 RETURNS seg
@@ -333,12 +333,12 @@ AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
 
 CREATE OR REPLACE FUNCTION gseg_compress(internal)
-RETURNS internal 
+RETURNS internal
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
 
 CREATE OR REPLACE FUNCTION gseg_decompress(internal)
-RETURNS internal 
+RETURNS internal
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
 
@@ -353,12 +353,12 @@ AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
 
 CREATE OR REPLACE FUNCTION gseg_union(internal, internal)
-RETURNS seg 
+RETURNS seg
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
 
 CREATE OR REPLACE FUNCTION gseg_same(seg, seg, internal)
-RETURNS internal 
+RETURNS internal
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
 
@@ -375,7 +375,7 @@ CREATE OPERATOR CLASS seg_ops
         FUNCTION        1       seg_cmp(seg, seg);
 
 CREATE OPERATOR CLASS gist_seg_ops
-DEFAULT FOR TYPE seg USING gist 
+DEFAULT FOR TYPE seg USING gist
 AS
        OPERATOR        1       << ,
        OPERATOR        2       &< ,
index ca351c661b3ca25124bae1b238db39b6e0d6f825..1f5f0affe8b35fb6b2238016fdafa6a07dd19453 100644 (file)
@@ -1,6 +1,6 @@
 %{
 #define YYPARSE_PARAM result  /* need this to pass a pointer (void *) to yyparse */
-  
+
 #include "postgres.h"
 
 #include <math.h>
@@ -23,7 +23,7 @@
   extern int seg_yylex(void);
 
   extern int significant_digits(char *str);            /* defined in seg.c */
-  
+
   void seg_yyerror(const char *message);
   int seg_yyparse(void *result);
 
@@ -126,7 +126,7 @@ boundary:
                        $$.sigd = significant_digits($1);
                        $$.val = val;
          }
-      | 
+      |
          EXTENSION SEGFLOAT {
                        /* temp variable avoids a gcc 3.3.x bug on Sparc64 */
                        float val = seg_atof($2);
index 36da5fa3957901fa08b93b39e7219f6a8fad0ee6..c2b5ca878962e26f4f31d131180fdcc5226a5165 100644 (file)
@@ -1,7 +1,7 @@
 %{
-/* 
-** A scanner for EMP-style numeric ranges 
-*/
+/*
+ * A scanner for EMP-style numeric ranges
+ */
 
 #include "postgres.h"
 
index 1205d3b972275ee909808926267d0b5277fb2654..62cdfb1ffd73bfb07462d3904afc3e4dae73ab6c 100755 (executable)
@@ -7,7 +7,7 @@ while (<>) {
   push @rows, $_;
 }
 
-foreach ( sort { 
+foreach ( sort {
   @ar = split("\t", $a);
   $valA = pop @ar;
   $valA =~ s/[~<> ]+//g;
index 61ad519613e3ab423f1022aa45e08a8a6b55d595..b8a29d659a5425095be8503c0a23aa44c72c638d 100644 (file)
@@ -213,7 +213,7 @@ SELECT '-1'::seg <@ '-1 .. 1'::seg AS bool;
 SELECT '1'::seg <@ '-1 .. 1'::seg AS bool;
 
 -- Load some example data and build the index
--- 
+--
 CREATE TABLE test_seg (s seg);
 
 \copy test_seg from 'data/test_seg.data'
@@ -221,7 +221,7 @@ CREATE TABLE test_seg (s seg);
 CREATE INDEX test_seg_ix ON test_seg USING gist (s);
 SELECT count(*) FROM test_seg WHERE s @> '11..11.3';
 
--- Test sorting 
+-- Test sorting
 SELECT * FROM test_seg WHERE s @> '11..11.3' GROUP BY s;
 
 -- Test functions
index a2f470dc2de77956d67b6f209ceada01d124ebfb..08880ce5fad3f7a463e125ff77e53dbcf453fd68 100644 (file)
@@ -8,9 +8,9 @@ CREATE TABLE ids (
        idesc           text
 );
 
-CREATE TRIGGER ids_nextid 
+CREATE TRIGGER ids_nextid
        BEFORE INSERT OR UPDATE ON ids
-       FOR EACH ROW 
+       FOR EACH ROW
        EXECUTE PROCEDURE autoinc (id, next_id);
 
 INSERT INTO ids VALUES (0, 'first (-2 ?)');
@@ -19,11 +19,11 @@ INSERT INTO ids(idesc) VALUES ('third (1 ?!)');
 
 SELECT * FROM ids;
 
-UPDATE ids SET id = null, idesc = 'first: -2 --> 2' 
+UPDATE ids SET id = null, idesc = 'first: -2 --> 2'
        WHERE idesc = 'first (-2 ?)';
-UPDATE ids SET id = 0, idesc = 'second: -1 --> 3' 
+UPDATE ids SET id = 0, idesc = 'second: -1 --> 3'
        WHERE id = -1;
-UPDATE ids SET id = 4, idesc = 'third: 1 --> 4' 
+UPDATE ids SET id = 4, idesc = 'third: 1 --> 4'
        WHERE id = 1;
 
 SELECT * FROM ids;
index d38c9df2d4de749248cca70a749a94d499b1175b..1fa322f9c7712a90297d31e6af2b42e3f3e6e818 100644 (file)
@@ -3,7 +3,7 @@
 -- Adjust this setting to control where the objects get created.
 SET search_path = public;
 
-CREATE OR REPLACE FUNCTION autoinc() 
-RETURNS trigger 
+CREATE OR REPLACE FUNCTION autoinc()
+RETURNS trigger
 AS 'MODULE_PATHNAME'
 LANGUAGE C;
index a9d23fb2adcbdb1982d6fb7af8cca11dae1640d4..2c1eeb0e0dde1b1e3b24e3527d76948e7b8de8a0 100644 (file)
@@ -7,7 +7,7 @@ CREATE TABLE username_test (
 
 CREATE TRIGGER insert_usernames
        BEFORE INSERT OR UPDATE ON username_test
-       FOR EACH ROW 
+       FOR EACH ROW
        EXECUTE PROCEDURE insert_username (username);
 
 INSERT INTO username_test VALUES ('nothing');
index f06cc0cb5abc7caf443ea2aee63256b4e513bba0..bdc2deb340b6936d4fe1b84069f363936d6b2067 100644 (file)
@@ -3,7 +3,7 @@
 -- Adjust this setting to control where the objects get created.
 SET search_path = public;
 
-CREATE OR REPLACE FUNCTION insert_username() 
-RETURNS trigger 
+CREATE OR REPLACE FUNCTION insert_username()
+RETURNS trigger
 AS 'MODULE_PATHNAME'
 LANGUAGE C;
index e4a713c12a1146e320c3f7d0153c88aea267c29d..65af388214dfa88b35a80dd8a86ba484ca81cb4e 100644 (file)
@@ -8,7 +8,7 @@ CREATE TABLE mdt (
 
 CREATE TRIGGER mdt_moddatetime
        BEFORE UPDATE ON mdt
-       FOR EACH ROW 
+       FOR EACH ROW
        EXECUTE PROCEDURE moddatetime (moddate);
 
 INSERT INTO mdt VALUES (1, 'first');
index 1300e81654959987315a2f26bfa843281e21cf03..d0ff7441642cf712cf5d1649d6ca8f8c23a12102 100644 (file)
@@ -20,11 +20,11 @@ CREATE INDEX CI ON C (REFC);
 --Trigger for table A:
 
 CREATE TRIGGER AT BEFORE DELETE OR UPDATE ON A FOR EACH ROW
-EXECUTE PROCEDURE 
+EXECUTE PROCEDURE
 check_foreign_key (2, 'cascade', 'ID', 'B', 'REFB', 'C', 'REFC');
 /*
 2      - means that check must be performed for foreign keys of 2 tables.
-cascade        - defines that corresponding keys must be deleted. 
+cascade        - defines that corresponding keys must be deleted.
 ID     - name of primary key column in triggered table (A). You may
          use as many columns as you need.
 B      - name of (first) table with foreign keys.
@@ -38,11 +38,11 @@ REFC        - name of foreign key column in this table.
 --Trigger for table B:
 
 CREATE TRIGGER BT BEFORE INSERT OR UPDATE ON B FOR EACH ROW
-EXECUTE PROCEDURE 
+EXECUTE PROCEDURE
 check_primary_key ('REFB', 'A', 'ID');
 
 /*
-REFB   - name of foreign key column in triggered (B) table. You may use as 
+REFB   - name of foreign key column in triggered (B) table. You may use as
          many columns as you need, but number of key columns in referenced
          table must be the same.
 A      - referenced table name.
@@ -52,7 +52,7 @@ ID    - name of primary key column in referenced table.
 --Trigger for table C:
 
 CREATE TRIGGER CT BEFORE INSERT OR UPDATE ON C FOR EACH ROW
-EXECUTE PROCEDURE 
+EXECUTE PROCEDURE
 check_primary_key ('REFC', 'A', 'ID');
 
 -- Now try
index 1769e48154a81451aa4ba490239fc65bfc9fa58d..35a7f6540853f50eeb9567fe29f79fe91a5fa90c 100644 (file)
@@ -1,8 +1,8 @@
 drop table tttest;
 
 create table tttest (
-       price_id        int4, 
-       price_val       int4, 
+       price_id        int4,
+       price_val       int4,
        price_on        abstime,
        price_off       abstime
 );
@@ -12,17 +12,17 @@ alter table tttest add column q1 text;
 alter table tttest add column q2 int;
 alter table tttest drop column q1;
 
-create trigger timetravel 
+create trigger timetravel
        before insert or delete or update on tttest
-       for each row 
-       execute procedure 
+       for each row
+       execute procedure
        timetravel (price_on, price_off);
 
 insert into tttest values (1, 1, null, null);
 insert into tttest(price_id, price_val) values (2, 2);
 insert into tttest(price_id, price_val,price_off) values (3, 3, 'infinity');
 
-insert into tttest(price_id, price_val,price_off) values (4, 4, 
+insert into tttest(price_id, price_val,price_off) values (4, 4,
        abstime('now'::timestamp - '100 days'::interval));
 insert into tttest(price_id, price_val,price_on) values (3, 3, 'infinity'); -- duplicate key
 
@@ -62,7 +62,7 @@ select set_timetravel('tttest', 1);   -- turn TT ON!
 select get_timetravel('tttest');       -- check status
 
 -- we want to correct some date
-update tttest set price_on = 'Jan-01-1990 00:00:01' where price_id = 5 and 
+update tttest set price_on = 'Jan-01-1990 00:00:01' where price_id = 5 and
        price_off <> 'infinity';
 -- but this doesn't work
 
@@ -71,11 +71,11 @@ select set_timetravel('tttest', 0); -- turn TT OFF!
 
 select get_timetravel('tttest');       -- check status
 
-update tttest set price_on = '01-Jan-1990 00:00:01' where price_id = 5 and 
+update tttest set price_on = '01-Jan-1990 00:00:01' where price_id = 5 and
        price_off <> 'infinity';
 select * from tttest;
 -- isn't it what we need ?
 
 -- get price for price_id == 5 as it was '10-Jan-1990'
-select * from tttest where price_id = 5 and 
+select * from tttest where price_id = 5 and
        price_on <= '10-Jan-1990' and price_off > '10-Jan-1990';
index 4c64f211d93d2308682d71a7de8d959bc27fe9d7..83dc958a88b26155c8920a3d6f8f75d57cdb7dae 100644 (file)
@@ -3,17 +3,17 @@
 -- Adjust this setting to control where the objects get created.
 SET search_path = public;
 
-CREATE OR REPLACE FUNCTION timetravel() 
-RETURNS trigger 
+CREATE OR REPLACE FUNCTION timetravel()
+RETURNS trigger
 AS 'MODULE_PATHNAME'
 LANGUAGE C;
 
-CREATE OR REPLACE FUNCTION set_timetravel(name, int4) 
-RETURNS int4 
+CREATE OR REPLACE FUNCTION set_timetravel(name, int4)
+RETURNS int4
 AS 'MODULE_PATHNAME'
 LANGUAGE C RETURNS NULL ON NULL INPUT;
 
-CREATE OR REPLACE FUNCTION get_timetravel(name) 
-RETURNS int4 
+CREATE OR REPLACE FUNCTION get_timetravel(name)
+RETURNS int4
 AS 'MODULE_PATHNAME'
 LANGUAGE C RETURNS NULL ON NULL INPUT;
index 65150d0fd56af4f23f10fe05fa7dcc3cc258048a..58e69bc784fd882f0bc41b1cf5ef4bfcf3fc26a1 100755 (executable)
@@ -30,9 +30,9 @@
 #
 # Created by David Wheeler, 2002.
 
-# modified by Ray Aspeitia 12-03-2003 : 
+# modified by Ray Aspeitia 12-03-2003 :
 # added log rotation script to db startup
-# modified StartupParameters.plist "Provides" parameter to make it easier to 
+# modified StartupParameters.plist "Provides" parameter to make it easier to
 # start and stop with the SystemStarter utitlity
 
 # use the below command in order to correctly start/stop/restart PG with log rotation script:
index 600086c4ae74d730331f54b91351f74a2a247c64..3d0fd4210f7750ac296383d82a3807d994f3444a 100644 (file)
@@ -41,7 +41,7 @@ SELECT to_tsquery('testcfg', 'star');
  'star'
 (1 row)
 
-SELECT ts_headline('testcfg','Supernovae stars are the brightest phenomena in galaxies', 
+SELECT ts_headline('testcfg','Supernovae stars are the brightest phenomena in galaxies',
        to_tsquery('testcfg', 'stars'));
                            ts_headline                           
 -----------------------------------------------------------------
index f43d4c7e09baada812f08f05a28cba463d7e82f0..97c2cb5a5d3eeba3b588ce92a4df2614998b287e 100644 (file)
@@ -22,5 +22,5 @@ SELECT to_tsvector('testcfg','That''s my first own parser');
 
 SELECT to_tsquery('testcfg', 'star');
 
-SELECT ts_headline('testcfg','Supernovae stars are the brightest phenomena in galaxies', 
+SELECT ts_headline('testcfg','Supernovae stars are the brightest phenomena in galaxies',
        to_tsquery('testcfg', 'stars'));
index 8674337e52de48f9bebe59029c3d0391844ef782..18b591e0aaa71a857043f67fbc82e6265bab7682 100644 (file)
@@ -815,13 +815,13 @@ SELECT length(to_tsvector('english', '345 [email protected] '' http://www.com/ http://ae
      53
 (1 row)
 
-select to_tsquery('english', 'qwe & sKies '); 
+select to_tsquery('english', 'qwe & sKies ');
   to_tsquery   
 ---------------
  'qwe' & 'sky'
 (1 row)
 
-select to_tsquery('simple', 'qwe & sKies '); 
+select to_tsquery('simple', 'qwe & sKies ');
    to_tsquery    
 -----------------
  'qwe' & 'skies'
@@ -2337,7 +2337,6 @@ Upon a woman s face. E.  J.  Pratt  (1882 1964)
  The granite features of this cliff
 (1 row)
 
 select headline('Erosion It took the sea a thousand years,
 A thousand years to trace
 The granite features of this cliff
@@ -2354,7 +2353,6 @@ Upon a woman s face. E.  J.  Pratt  (1882 1964)
  The <b>granite</b> features of this cliff
 (1 row)
 
 select headline('Erosion It took the sea a thousand years,
 A thousand years to trace
 The granite features of this cliff
@@ -2382,7 +2380,7 @@ ff-bg
        document.write(15);
 </script>
 </body>
-</html>', 
+</html>',
 to_tsquery('sea&foo'), 'HighlightAll=true');
                                   headline                                   
 -----------------------------------------------------------------------------
index a26c5162d1dcf85179ebc3d5857b926361559670..f7cb0963b86af5559a5006821fc36f0c72f9b0c3 100644 (file)
@@ -815,13 +815,13 @@ SELECT length(to_tsvector('english', '345 [email protected] '' http://www.com/ http://ae
      53
 (1 row)
 
-select to_tsquery('english', 'qwe & sKies '); 
+select to_tsquery('english', 'qwe & sKies ');
   to_tsquery   
 ---------------
  'qwe' & 'sky'
 (1 row)
 
-select to_tsquery('simple', 'qwe & sKies '); 
+select to_tsquery('simple', 'qwe & sKies ');
    to_tsquery    
 -----------------
  'qwe' & 'skies'
@@ -2337,7 +2337,6 @@ Upon a woman s face. E.  J.  Pratt  (1882 1964)
  The granite features of this cliff
 (1 row)
 
 select headline('Erosion It took the sea a thousand years,
 A thousand years to trace
 The granite features of this cliff
@@ -2354,7 +2353,6 @@ Upon a woman s face. E.  J.  Pratt  (1882 1964)
  The <b>granite</b> features of this cliff
 (1 row)
 
 select headline('Erosion It took the sea a thousand years,
 A thousand years to trace
 The granite features of this cliff
@@ -2382,7 +2380,7 @@ ff-bg
        document.write(15);
 </script>
 </body>
-</html>', 
+</html>',
 to_tsquery('sea&foo'), 'HighlightAll=true');
                                   headline                                   
 -----------------------------------------------------------------------------
index bbae7b45dbc7104d1978689e0ece0387c180625b..99d808a1b39111a3fd9ee37402445a9e569e56c6 100644 (file)
@@ -168,8 +168,8 @@ SELECT length(to_tsvector('english', '345 [email protected] '' http://www.com/ http://ae
 <i <b> wow  < jqw <> qwerty'));
 
 
-select to_tsquery('english', 'qwe & sKies '); 
-select to_tsquery('simple', 'qwe & sKies '); 
+select to_tsquery('english', 'qwe & sKies ');
+select to_tsquery('simple', 'qwe & sKies ');
 select to_tsquery('english', '''the wether'':dc & ''           sKies '':BC ');
 select to_tsquery('english', 'asd&(and|fghj)');
 select to_tsquery('english', '(asd&and)|fghj');
@@ -288,7 +288,7 @@ An hour of storm to place
 The sculpture of these granite seams,
 Upon a woman s face. E.  J.  Pratt  (1882 1964)
 ', to_tsquery('sea&thousand&years'));
+
 select headline('Erosion It took the sea a thousand years,
 A thousand years to trace
 The granite features of this cliff
@@ -298,7 +298,7 @@ An hour of storm to place
 The sculpture of these granite seams,
 Upon a woman s face. E.  J.  Pratt  (1882 1964)
 ', to_tsquery('granite&sea'));
+
 select headline('Erosion It took the sea a thousand years,
 A thousand years to trace
 The granite features of this cliff
@@ -321,7 +321,7 @@ ff-bg
        document.write(15);
 </script>
 </body>
-</html>', 
+</html>',
 to_tsquery('sea&foo'), 'HighlightAll=true');
 --check debug
 select * from public.ts_debug('Tsearch module for PostgreSQL 7.3.3');
index 739d57eaa9e8c04d12af82de68a417fa02d79d95..1df2908285afdd91af2ef9fa4a94df281420ceb1 100644 (file)
@@ -11,7 +11,7 @@ CREATE DOMAIN gtsvector AS pg_catalog.gtsvector;
 CREATE DOMAIN gtsq AS pg_catalog.text;
 
 --dict interface
-CREATE FUNCTION lexize(oid, text) 
+CREATE FUNCTION lexize(oid, text)
        RETURNS _text
        as 'ts_lexize'
        LANGUAGE INTERNAL
@@ -44,7 +44,7 @@ CREATE FUNCTION set_curdict(text)
 --built-in dictionaries
 CREATE FUNCTION dex_init(internal)
        RETURNS internal
-       as 'MODULE_PATHNAME', 'tsa_dex_init' 
+       as 'MODULE_PATHNAME', 'tsa_dex_init'
        LANGUAGE C;
 
 CREATE FUNCTION dex_lexize(internal,internal,int4)
@@ -66,7 +66,7 @@ CREATE FUNCTION snb_lexize(internal,internal,int4)
 
 CREATE FUNCTION snb_ru_init_koi8(internal)
        RETURNS internal
-       as 'MODULE_PATHNAME', 'tsa_snb_ru_init_koi8' 
+       as 'MODULE_PATHNAME', 'tsa_snb_ru_init_koi8'
        LANGUAGE C;
 
 CREATE FUNCTION snb_ru_init_utf8(internal)
@@ -81,7 +81,7 @@ CREATE FUNCTION snb_ru_init(internal)
 
 CREATE FUNCTION spell_init(internal)
        RETURNS internal
-       as 'MODULE_PATHNAME', 'tsa_spell_init' 
+       as 'MODULE_PATHNAME', 'tsa_spell_init'
        LANGUAGE C;
 
 CREATE FUNCTION spell_lexize(internal,internal,int4)
@@ -92,7 +92,7 @@ CREATE FUNCTION spell_lexize(internal,internal,int4)
 
 CREATE FUNCTION syn_init(internal)
        RETURNS internal
-       as 'MODULE_PATHNAME', 'tsa_syn_init' 
+       as 'MODULE_PATHNAME', 'tsa_syn_init'
        LANGUAGE C;
 
 CREATE FUNCTION syn_lexize(internal,internal,int4)
@@ -113,8 +113,8 @@ CREATE FUNCTION thesaurus_lexize(internal,internal,int4,internal)
        RETURNS NULL ON NULL INPUT;
 
 --sql-level interface
-CREATE TYPE tokentype 
-       as (tokid int4, alias text, descr text); 
+CREATE TYPE tokentype
+       as (tokid int4, alias text, descr text);
 
 CREATE FUNCTION token_type(int4)
        RETURNS setof tokentype
@@ -149,7 +149,7 @@ CREATE FUNCTION set_curprs(text)
        LANGUAGE C
        RETURNS NULL ON NULL INPUT;
 
-CREATE TYPE tokenout 
+CREATE TYPE tokenout
        as (tokid int4, token text);
 
 CREATE FUNCTION parse(oid,text)
@@ -157,19 +157,19 @@ CREATE FUNCTION parse(oid,text)
        as 'ts_parse_byid'
        LANGUAGE INTERNAL
        RETURNS NULL ON NULL INPUT;
+
 CREATE FUNCTION parse(text,text)
        RETURNS setof tokenout
        as 'ts_parse_byname'
        LANGUAGE INTERNAL
        RETURNS NULL ON NULL INPUT;
+
 CREATE FUNCTION parse(text)
        RETURNS setof tokenout
        as 'MODULE_PATHNAME', 'tsa_parse_current'
        LANGUAGE C
        RETURNS NULL ON NULL INPUT;
+
 --default parser
 CREATE FUNCTION prsd_start(internal,int4)
        RETURNS internal
@@ -399,7 +399,7 @@ AS
         STORAGE         gtsvector;
 
 --stat info
-CREATE TYPE statinfo 
+CREATE TYPE statinfo
        as (word text, ndoc int4, nentry int4);
 
 CREATE FUNCTION stat(text)
@@ -560,7 +560,7 @@ AS
 CREATE OPERATOR CLASS tsvector_ops
 FOR TYPE tsvector USING btree AS
         OPERATOR        1       < ,
-        OPERATOR        2       <= , 
+        OPERATOR        2       <= ,
         OPERATOR        3       = ,
         OPERATOR        4       >= ,
         OPERATOR        5       > ,
index 36415fef77df8450d0d548167ed6725100f9b7f7..254155dcca4e3ab92cfe38b07428f458b12338fc 100644 (file)
@@ -9,7 +9,7 @@ DATA_TSEARCH = unaccent.rules
 REGRESS = unaccent
 
 # Adjust REGRESS_OPTS because we need a UTF8 database
-REGRESS_OPTS = --dbname=$(CONTRIB_TESTDB) --multibyte=UTF8 --no-locale 
+REGRESS_OPTS = --dbname=$(CONTRIB_TESTDB) --multibyte=UTF8 --no-locale
 
 ifdef USE_PGXS
 PG_CONFIG = pg_config
index 53b8064cc345474eb9d797e096753846769a0eb2..8ce04d0b848642e2a4c931f919cf0f759bcb144e 100644 (file)
@@ -18,7 +18,7 @@ select query_to_xml('select 1 as x',true,false,'');
  
 (1 row)
 
-select xslt_process( query_to_xml('select x from generate_series(1,5) as 
+select xslt_process( query_to_xml('select x from generate_series(1,5) as
 x',true,false,'')::text,
 $$<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
index b465ea27b631ee7ef0ce5863fc286dc4630e14c8..d2d243ada7d95c85cc62024709f4d3bc8e1d3d5a 100644 (file)
@@ -18,7 +18,7 @@ select query_to_xml('select 1 as x',true,false,'');
  
 (1 row)
 
-select xslt_process( query_to_xml('select x from generate_series(1,5) as 
+select xslt_process( query_to_xml('select x from generate_series(1,5) as
 x',true,false,'')::text,
 $$<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
index 202a72baedc4050d855f329c58cf75eb2bd79741..5b3cc997f50e25bc3b7f64d3d709546bd8f79002 100644 (file)
@@ -10,7 +10,7 @@ RESET client_min_messages;
 
 select query_to_xml('select 1 as x',true,false,'');
 
-select xslt_process( query_to_xml('select x from generate_series(1,5) as 
+select xslt_process( query_to_xml('select x from generate_series(1,5) as
 x',true,false,'')::text,
 $$<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
index 7204935426047030ddb3c30d0f343fd30263fe05..f1c5dc9d04ff3c5728e0ebd05b4ffbdb97864683 100644 (file)
@@ -40,7 +40,7 @@ Please enter a FULL description of your problem:
 
 
 Please describe a way to repeat the problem.   Please try to provide a
-concise reproducible example, if at all possible: 
+concise reproducible example, if at all possible:
 ----------------------------------------------------------------------
 
 
index a7f0c8d6340db1bc3e228b5c09c295d3170edce0..a797499c792fc3c0812ece3c5dcd180529f3f7ec 100644 (file)
@@ -64,7 +64,7 @@ CATALOG = -c $(DOCBOOKSTYLE)/catalog
 endif
 
 # Enable some extra warnings
-# -wfully-tagged needed to throw a warning on missing tags 
+# -wfully-tagged needed to throw a warning on missing tags
 # for older tool chains, 2007-08-31
 # Note: try "make SPFLAGS=-wxml" to catch a lot of other dubious constructs,
 # in particular < and & that haven't been made into entities.  It's far too
index 82b209f9c6afac94a96a4589ccb5e9f8d6c8067d..027138b92e321e9aef5ceefcf7333034d31dd429 100644 (file)
@@ -112,8 +112,8 @@ LOAD 'auto_explain';
     <listitem>
      <para>
       <varname>auto_explain.log_buffers</varname> causes <command>EXPLAIN
-      (ANALYZE, BUFFERS)</> output, rather than just <command>EXPLAIN</> 
-      output, to be printed when an execution plan is logged. This parameter is 
+      (ANALYZE, BUFFERS)</> output, rather than just <command>EXPLAIN</>
+      output, to be printed when an execution plan is logged. This parameter is
       off by default. Only superusers can change this setting. This
       parameter has no effect unless <varname>auto_explain.log_analyze</>
       parameter is set.
index e02f443566a0c26b141c4f8d607f0dca89e29c61..edc59bdbb6ad999c2277f77e6d93301bfcd2ef0b 100644 (file)
   <bibliodiv>
    <title>Proceedings and Articles</title>
    <para>This section is for articles and newsletters.</para>
-   
+
    <biblioentry id="OLSON93">
     <title>Partial indexing in POSTGRES: research project</title>
     <titleabbrev>Olson, 1993</titleabbrev>
    <biblioset relation="article">
     <title>Generalized Partial Indexes
     <ulink url="http://citeseer.ist.psu.edu/seshadri95generalized.html">(cached version)
-<!-- 
+<!--
      Original URL:  http://citeseer.ist.psu.edu/seshadri95generalized.html
 -->
     </ulink>
index e94922124c228000cab6fc83c4f87b40f66daab0..9e047e7dbda6d72489574c42093ba5654df41b1e 100644 (file)
@@ -71,7 +71,7 @@ initdb --locale=sv_SE
     locale then the specifications can take the form
     <replaceable>language_territory.codeset</>.  For example,
     <literal>fr_BE.UTF-8</> represents the French language (fr) as
-    spoken in Belgium (BE), with a <acronym>UTF-8</> character set 
+    spoken in Belgium (BE), with a <acronym>UTF-8</> character set
     encoding.
    </para>
 
index 898cdacbb1099b961eb411e3d776c853e12c193b..96f1ef49b252345bb6ed959637d47320d6b2f0b7 100644 (file)
@@ -718,7 +718,7 @@ SET ENABLE_SEQSCAN TO OFF;
       <listitem>
        <para>
         Sets the location of the Kerberos server key file. See
-        <xref linkend="kerberos-auth"> or <xref linkend="gssapi-auth"> 
+        <xref linkend="kerberos-auth"> or <xref linkend="gssapi-auth">
         for details. This parameter can only be set in the
         <filename>postgresql.conf</> file or on the server command line.
        </para>
@@ -748,7 +748,7 @@ SET ENABLE_SEQSCAN TO OFF;
        <para>
         Sets whether Kerberos and GSSAPI user names should be treated
         case-insensitively.
-        The default is <literal>off</> (case sensitive). This parameter can only be 
+        The default is <literal>off</> (case sensitive). This parameter can only be
         set in the <filename>postgresql.conf</> file or on the server command line.
        </para>
       </listitem>
@@ -1044,7 +1044,7 @@ SET ENABLE_SEQSCAN TO OFF;
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry id="guc-shared-preload-libraries" xreflabel="shared_preload_libraries">
       <term><varname>shared_preload_libraries</varname> (<type>string</type>)</term>
       <indexterm>
@@ -1076,7 +1076,7 @@ SET ENABLE_SEQSCAN TO OFF;
         when the library is first used.  However, the time to start each new
         server process might increase slightly, even if that process never
         uses the library.  So this parameter is recommended only for
-        libraries that will be used in most sessions. 
+        libraries that will be used in most sessions.
        </para>
 
      <note>
@@ -1084,7 +1084,7 @@ SET ENABLE_SEQSCAN TO OFF;
         On Windows hosts, preloading a library at server start will not reduce
         the time required to start each new server process; each server process
         will re-load all preload libraries.  However, <varname>shared_preload_libraries
-        </varname> is still useful on Windows hosts because some shared libraries may 
+        </varname> is still useful on Windows hosts because some shared libraries may
         need to perform certain operations that only take place at postmaster start
         (for example, a shared library may need to reserve lightweight locks
         or shared memory and you can't do that after the postmaster has started).
@@ -1097,8 +1097,8 @@ SET ENABLE_SEQSCAN TO OFF;
 
        <para>
         Every  PostgreSQL-supported library has a <quote>magic
-        block</> that is checked to guarantee compatibility.  
-        For this reason, non-PostgreSQL libraries cannot be 
+        block</> that is checked to guarantee compatibility.
+        For this reason, non-PostgreSQL libraries cannot be
         loaded in this way.
        </para>
       </listitem>
@@ -1487,7 +1487,7 @@ SET ENABLE_SEQSCAN TO OFF;
        <para>
         <varname>fsync</varname> can only be set in the <filename>postgresql.conf</>
         file or on the server command line.
-        If you turn this parameter off, also consider turning off 
+        If you turn this parameter off, also consider turning off
         <xref linkend="guc-full-page-writes">.
        </para>
       </listitem>
@@ -1528,7 +1528,7 @@ SET ENABLE_SEQSCAN TO OFF;
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry id="guc-wal-sync-method" xreflabel="wal_sync_method">
       <term><varname>wal_sync_method</varname> (<type>enum</type>)</term>
       <indexterm>
@@ -1584,7 +1584,7 @@ SET ENABLE_SEQSCAN TO OFF;
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry id="guc-full-page-writes" xreflabel="full_page_writes">
       <indexterm>
        <primary><varname>full_page_writes</> configuration parameter</primary>
@@ -1848,7 +1848,7 @@ SET ENABLE_SEQSCAN TO OFF;
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry id="guc-archive-timeout" xreflabel="archive_timeout">
       <term><varname>archive_timeout</varname> (<type>integer</type>)</term>
       <indexterm>
@@ -2257,7 +2257,7 @@ SET ENABLE_SEQSCAN TO OFF;
        </para>
       </listitem>
      </varlistentry>
-     
+
      </variablelist>
      </sect2>
      <sect2 id="runtime-config-query-constants">
@@ -2368,7 +2368,7 @@ SET ENABLE_SEQSCAN TO OFF;
        </para>
       </listitem>
      </varlistentry>
-    
+
      <varlistentry id="guc-cpu-operator-cost" xreflabel="cpu_operator_cost">
       <term><varname>cpu_operator_cost</varname> (<type>floating point</type>)</term>
       <indexterm>
@@ -2382,7 +2382,7 @@ SET ENABLE_SEQSCAN TO OFF;
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry id="guc-effective-cache-size" xreflabel="effective_cache_size">
       <term><varname>effective_cache_size</varname> (<type>integer</type>)</term>
       <indexterm>
@@ -2745,10 +2745,10 @@ SELECT * FROM parent WHERE key = 2400;
         <productname>PostgreSQL</productname> supports several methods
          for logging server messages, including
          <systemitem>stderr</systemitem>, <systemitem>csvlog</systemitem> and
-         <systemitem>syslog</systemitem>. On Windows, 
+         <systemitem>syslog</systemitem>. On Windows,
          <systemitem>eventlog</systemitem> is also supported. Set this
          parameter to a list of desired log destinations separated by
-         commas. The default is to log to <systemitem>stderr</systemitem> 
+         commas. The default is to log to <systemitem>stderr</systemitem>
          only.
          This parameter can only be set in the <filename>postgresql.conf</>
          file or on the server command line.
@@ -2759,7 +2759,7 @@ SELECT * FROM parent WHERE key = 2400;
         value</> (<acronym>CSV</>) format, which is convenient for
         loading logs into programs.
         See <xref linkend="runtime-config-logging-csvlog"> for details.
-        <varname>logging_collector</varname> must be enabled to generate 
+        <varname>logging_collector</varname> must be enabled to generate
         CSV-format log output.
        </para>
 
@@ -2822,7 +2822,7 @@ local0.*    /var/log/postgresql
       </indexterm>
       <listitem>
        <para>
-        When <varname>logging_collector</> is enabled, 
+        When <varname>logging_collector</> is enabled,
         this parameter determines the directory in which log files will be created.
         It can be specified as an absolute path, or relative to the
         cluster data directory.
@@ -2861,7 +2861,7 @@ local0.*    /var/log/postgresql
        </para>
        <para>
         If CSV-format output is enabled in <varname>log_destination</>,
-        <literal>.csv</> will be appended to the timestamped 
+        <literal>.csv</> will be appended to the timestamped
         log file name to create the file name for CSV-format output.
         (If <varname>log_filename</> ends in <literal>.log</>, the suffix is
         replaced instead.)
@@ -2966,18 +2966,18 @@ local0.*    /var/log/postgresql
        </para>
        <para>
         Example:  To keep 7 days of logs, one log file per day named
-        <literal>server_log.Mon</literal>, <literal>server_log.Tue</literal>, 
+        <literal>server_log.Mon</literal>, <literal>server_log.Tue</literal>,
         etc, and automatically overwrite last week's log with this week's log,
-        set <varname>log_filename</varname> to <literal>server_log.%a</literal>, 
-        <varname>log_truncate_on_rotation</varname> to <literal>on</literal>, and 
+        set <varname>log_filename</varname> to <literal>server_log.%a</literal>,
+        <varname>log_truncate_on_rotation</varname> to <literal>on</literal>, and
         <varname>log_rotation_age</varname> to <literal>1440</literal>.
        </para>
        <para>
-        Example: To keep 24 hours of logs, one log file per hour, but 
-        also rotate sooner if the log file size exceeds 1GB, set 
-        <varname>log_filename</varname> to <literal>server_log.%H%M</literal>, 
-        <varname>log_truncate_on_rotation</varname> to <literal>on</literal>, 
-        <varname>log_rotation_age</varname> to <literal>60</literal>, and 
+        Example: To keep 24 hours of logs, one log file per hour, but
+        also rotate sooner if the log file size exceeds 1GB, set
+        <varname>log_filename</varname> to <literal>server_log.%H%M</literal>,
+        <varname>log_truncate_on_rotation</varname> to <literal>on</literal>,
+        <varname>log_rotation_age</varname> to <literal>60</literal>, and
         <varname>log_rotation_size</varname> to <literal>1000000</literal>.
         Including <literal>%M</> in <varname>log_filename</varname> allows
         any size-driven rotations that might occur to select a file name
@@ -3007,7 +3007,7 @@ local0.*    /var/log/postgresql
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry id="guc-syslog-ident" xreflabel="syslog_ident">
       <term><varname>syslog_ident</varname> (<type>string</type>)</term>
       <indexterm>
@@ -3132,7 +3132,7 @@ local0.*    /var/log/postgresql
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry id="guc-log-min-duration-statement" xreflabel="log_min_duration_statement">
       <term><varname>log_min_duration_statement</varname> (<type>integer</type>)</term>
       <indexterm>
@@ -3163,7 +3163,7 @@ local0.*    /var/log/postgresql
          the text of statements that are logged because of
          <varname>log_statement</> will not be repeated in the
          duration log message.
-         If you are not using <application>syslog</>, it is recommended 
+         If you are not using <application>syslog</>, it is recommended
          that you log the PID or session ID using
          <xref linkend="guc-log-line-prefix">
          so that you can link the statement message to the later
@@ -3365,8 +3365,8 @@ local0.*    /var/log/postgresql
 
        <note>
         <para>
-         Some client programs, like <application>psql</>, attempt 
-         to connect twice while determining if a password is required, so 
+         Some client programs, like <application>psql</>, attempt
+         to connect twice while determining if a password is required, so
          duplicate <quote>connection received</> messages do not
          necessarily indicate a problem.
         </para>
@@ -3462,7 +3462,7 @@ local0.*    /var/log/postgresql
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry id="guc-log-line-prefix" xreflabel="log_line_prefix">
       <term><varname>log_line_prefix</varname> (<type>string</type>)</term>
       <indexterm>
@@ -3607,7 +3607,7 @@ FROM pg_stat_activity;
 
        <tip>
         <para>
-         <application>Syslog</> produces its own 
+         <application>Syslog</> produces its own
          time stamp and process ID information, so you probably do not want to
          include those escapes if you are logging to <application>syslog</>.
         </para>
@@ -3808,9 +3808,9 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
 
         <listitem>
            <para>
-            Set <varname>log_rotation_size</varname> to 0 to disable 
-            size-based log rotation, as it makes the log file name difficult 
-            to predict. 
+            Set <varname>log_rotation_size</varname> to 0 to disable
+            size-based log rotation, as it makes the log file name difficult
+            to predict.
            </para>
         </listitem>
 
@@ -5000,7 +5000,7 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
 
        <para>
         Every  PostgreSQL-supported library has a <quote>magic
-        block</> that is checked to guarantee compatibility.  
+        block</> that is checked to guarantee compatibility.
         For this reason, non-PostgreSQL libraries cannot be
         loaded in this way.
        </para>
index 996c0771bb5d1c0a2c868065422b203f1233ad76..a98162502792186fea8e091d4d3bcebd85faeffa 100644 (file)
@@ -15,7 +15,7 @@ and the mailing lists themselves.
 
 <para>
 Refer to the introduction in this manual or to the
-<productname>PostgreSQL</productname> 
+<productname>PostgreSQL</productname>
 <ulink url="http://www.postgresql.org">web page</ulink>
 for subscription information to the no-cost mailing lists.
 </para>
index 905799601485c2de23c155681e513d84df8e9951..a7c2a1d43eb77ce4187c5875596b7fc32a2f8405 100644 (file)
@@ -16,7 +16,7 @@
 
  <para>
   When building from the source distribution, these modules are not built
-  automatically, unless you build the "world" target 
+  automatically, unless you build the "world" target
   (see <xref linkend="build">).
   You can build and install all of them by running:
 <screen>
index 02eaedf943425aee8613e8d3d2d97b71ff7f29dc..66aef156082b09ce28125c94ed248a536891b4ba 100644 (file)
@@ -21,7 +21,7 @@
 
   <para>
    <xref linkend="datatype-table"> shows all the built-in general-purpose data
-   types. Most of the alternative names listed in the 
+   types. Most of the alternative names listed in the
    <quote>Aliases</quote> column are the names used internally by
    <productname>PostgreSQL</productname> for historical reasons.  In
    addition, some internally used or deprecated types are available,
@@ -555,7 +555,7 @@ NUMERIC
 
     <para>
      In addition to ordinary numeric values, the <type>numeric</type>
-     type allows the special value <literal>NaN</>, meaning 
+     type allows the special value <literal>NaN</>, meaning
      <quote>not-a-number</quote>.  Any operation on <literal>NaN</>
      yields another <literal>NaN</>.  When writing this value
      as a constant in an SQL command, you must put quotes around it,
@@ -703,9 +703,9 @@ NUMERIC
      <type>float(<replaceable>p</replaceable>)</type> for specifying
      inexact numeric types.  Here, <replaceable>p</replaceable> specifies
      the minimum acceptable precision in <emphasis>binary</> digits.
-     <productname>PostgreSQL</productname> accepts 
+     <productname>PostgreSQL</productname> accepts
      <type>float(1)</type> to <type>float(24)</type> as selecting the
-     <type>real</type> type, while 
+     <type>real</type> type, while
      <type>float(25)</type> to <type>float(53)</type> select
      <type>double precision</type>.  Values of <replaceable>p</replaceable>
      outside the allowed range draw an error.
@@ -1628,7 +1628,7 @@ MINUTE TO SECOND
 
     <para>
      Date and time input is accepted in almost any reasonable format, including
-     ISO 8601, <acronym>SQL</acronym>-compatible, 
+     ISO 8601, <acronym>SQL</acronym>-compatible,
      traditional <productname>POSTGRES</productname>, and others.
      For some formats, ordering of day, month, and year in date input is
      ambiguous and there is support for specifying the expected
@@ -1645,12 +1645,12 @@ MINUTE TO SECOND
      See <xref linkend="datetime-appendix">
      for the exact parsing rules of date/time input and for the
      recognized text fields including months, days of the week, and
-     time zones. 
+     time zones.
     </para>
 
     <para>
      Remember that any date or time literal input needs to be enclosed
-     in single quotes, like text strings.  Refer to 
+     in single quotes, like text strings.  Refer to
      <xref linkend="sql-syntax-constants-generic"> for more
      information.
      <acronym>SQL</acronym> requires the following syntax
@@ -1672,7 +1672,7 @@ MINUTE TO SECOND
     <indexterm>
      <primary>date</primary>
     </indexterm>
+
     <para>
      <xref linkend="datatype-datetime-date-table"> shows some possible
      inputs for the <type>date</type> type.
@@ -1787,7 +1787,7 @@ MINUTE TO SECOND
      <para>
       Valid input for these types consists of a time of day followed
       by an optional time zone. (See <xref
-      linkend="datatype-datetime-time-table"> 
+      linkend="datatype-datetime-time-table">
       and <xref linkend="datatype-timezone-table">.)  If a time zone is
       specified in the input for <type>time without time zone</type>,
       it is silently ignored. You can also specify a date but it will
@@ -1954,8 +1954,8 @@ January 8 04:05:06 1999 PST
 
      <para>
       The <acronym>SQL</acronym> standard differentiates
-      <type>timestamp without time zone</type> 
-      and <type>timestamp with time zone</type> literals by the presence of a 
+      <type>timestamp without time zone</type>
+      and <type>timestamp with time zone</type> literals by the presence of a
       <quote>+</quote> or <quote>-</quote> symbol and time zone offset after
       the time.  Hence, according to the standard,
 
@@ -2097,10 +2097,10 @@ January 8 04:05:06 1999 PST
       The following <acronym>SQL</acronym>-compatible functions can also
       be used to obtain the current time value for the corresponding data
       type:
-      <literal>CURRENT_DATE</literal>, <literal>CURRENT_TIME</literal>, 
-      <literal>CURRENT_TIMESTAMP</literal>, <literal>LOCALTIME</literal>, 
-      <literal>LOCALTIMESTAMP</literal>.  The latter four accept an 
-      optional subsecond precision specification.  (See <xref 
+      <literal>CURRENT_DATE</literal>, <literal>CURRENT_TIME</literal>,
+      <literal>CURRENT_TIMESTAMP</literal>, <literal>LOCALTIME</literal>,
+      <literal>LOCALTIMESTAMP</literal>.  The latter four accept an
+      optional subsecond precision specification.  (See <xref
       linkend="functions-datetime-current">.)  Note that these are
       SQL functions and are <emphasis>not</> recognized in data input strings.
      </para>
@@ -2255,10 +2255,10 @@ January 8 04:05:06 1999 PST
      <itemizedlist>
       <listitem>
        <para>
-        Although the <type>date</type> type 
+        Although the <type>date</type> type
         cannot have an associated time zone, the
         <type>time</type> type can.
-        Time zones in the real world have little meaning unless 
+        Time zones in the real world have little meaning unless
         associated with a date as well as a time,
         since the offset can vary through the year with daylight-saving
         time boundaries.
@@ -2267,7 +2267,7 @@ January 8 04:05:06 1999 PST
 
       <listitem>
        <para>
-        The default time zone is specified as a constant numeric offset 
+        The default time zone is specified as a constant numeric offset
         from <acronym>UTC</>. It is therefore impossible to adapt to
         daylight-saving time when doing date/time arithmetic across
         <acronym>DST</acronym> boundaries.
@@ -2901,7 +2901,7 @@ SELECT * FROM person WHERE current_mood = 'happy';
       order in which the values were listed when the type was created.
       All standard comparison operators and related
       aggregate functions are supported for enums.  For example:
+
 <programlisting>
 INSERT INTO person VALUES ('Larry', 'sad');
 INSERT INTO person VALUES ('Curly', 'ok');
@@ -2919,7 +2919,7 @@ SELECT * FROM person WHERE current_mood > 'sad' ORDER BY current_mood;
  Moe   | happy
 (2 rows)
 
-SELECT name 
+SELECT name
 FROM person
 WHERE current_mood = (SELECT MIN(current_mood) FROM person);
  name  
@@ -2972,7 +2972,7 @@ SELECT person.name, holidays.num_weeks FROM person, holidays
 
    <sect2>
     <title>Implementation Details</title>
-    
+
     <para>
      An enum value occupies four bytes on disk.  The length of an enum
      value's textual label is limited by the <symbol>NAMEDATALEN</symbol>
@@ -3409,8 +3409,8 @@ SELECT person.name, holidays.num_weeks FROM person, holidays
      <table id="datatype-net-cidr-table">
       <title><type>cidr</> Type Input Examples</title>
       <tgroup cols="3">
-       <thead> 
-        <row> 
+       <thead>
+        <row>
          <entry><type>cidr</type> Input</entry>
          <entry><type>cidr</type> Output</entry>
          <entry><literal><function>abbrev(<type>cidr</type>)</function></literal></entry>
@@ -3772,7 +3772,7 @@ select 'The Fat Rats'::tsvector;
      for searching:
 
 <programlisting>
-SELECT to_tsvector('english', 'The Fat Rats');         
+SELECT to_tsvector('english', 'The Fat Rats');
    to_tsvector   
 -----------------
  'fat':2 'rat':3
@@ -3913,7 +3913,7 @@ a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11
     functions for UUIDs, but the core database does not include any
     function for generating UUIDs, because no single algorithm is well
     suited for every application.  The contrib module
-    <filename>contrib/uuid-ossp</filename> provides functions that implement 
+    <filename>contrib/uuid-ossp</filename> provides functions that implement
     several standard algorithms.
     Alternatively, UUIDs could be generated by client applications or
     other libraries invoked through a server-side function.
@@ -3933,7 +3933,7 @@ a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11
     checks the input values for well-formedness, and there are support
     functions to perform type-safe operations on it; see <xref
     linkend="functions-xml">.  Use of this data type requires the
-    installation to have been built with <command>configure 
+    installation to have been built with <command>configure
     --with-libxml</>.
    </para>
 
index fb75a1e8b08cfb772f528eaf5d211d701e80b1f5..0b554462451dcefb753a474a57bb46c2ab56cc60 100644 (file)
@@ -75,7 +75,7 @@
      <para>
       If the token is a text string, match up with possible strings:
      </para>
-     
+
      <substeps>
       <step>
        <para>
@@ -83,7 +83,7 @@
         abbreviation.
        </para>
       </step>
-      
+
       <step>
        <para>
         If not found, do a similar binary-search table lookup to match
       </step>
      </substeps>
     </step>
-    
+
     <step>
      <para>
       When the token is a number or number field:
       <step>
        <para>
         If there are eight or six digits,
-        and if no other date fields have been previously read, then interpret 
+        and if no other date fields have been previously read, then interpret
         as a <quote>concatenated date</quote> (e.g.,
         <literal>19990118</literal> or <literal>990118</literal>).
         The interpretation is <literal>YYYYMMDD</> or <literal>YYMMDD</>.
         and a year has already been read, then interpret as day of year.
        </para>
       </step>
-      
+
       <step>
        <para>
         If four or six digits and a year has already been read, then
    about 1 day in 128 years.
   </para>
 
-  <para>   
+  <para>
    The accumulating calendar error prompted
    Pope Gregory XIII to reform the calendar in accordance with
    instructions from the Council of Trent.
@@ -544,7 +544,7 @@ $ <userinput>cal 9 1752</userinput>
    the beginnings of the Chinese calendar can be traced back to the 14th
    century BC. Legend has it that the Emperor Huangdi invented that
    calendar in 2637 BC.
-   
+
    The People's Republic of China uses the Gregorian calendar
    for civil purposes. The Chinese calendar is used for determining
    festivals.
@@ -552,7 +552,7 @@ $ <userinput>cal 9 1752</userinput>
 
   <para>
    The <quote>Julian Date</quote> is unrelated to the <quote>Julian
-   calendar</quote>.  
+   calendar</quote>.
    The Julian Date system was invented by the French scholar
    Joseph Justus Scaliger (1540-1609)
    and probably takes its name from Scaliger's father,
index 689b14ffa55487fcf1c616d1b262997bc4d5b8f0..155207bd3e4c6e4fe7728de74835d13fc1aef692 100644 (file)
@@ -160,7 +160,7 @@ cc -shared -o foo.so foo.o
      <para>
       Here is an example.  It assumes the developer tools are installed.
 <programlisting>
-cc -c foo.c 
+cc -c foo.c
 cc -bundle -flat_namespace -undefined suppress -o foo.so foo.o
 </programlisting>
      </para>
@@ -226,7 +226,7 @@ gcc -G -o foo.so foo.o
    </varlistentry>
 
    <varlistentry>
-    <term><systemitem class="osname">Tru64 UNIX</></term>   
+    <term><systemitem class="osname">Tru64 UNIX</></term>
     <indexterm><primary>Tru64 UNIX</><secondary>shared library</></>
     <indexterm><primary>Digital UNIX</><see>Tru64 UNIX</></>
     <listitem>
@@ -272,7 +272,7 @@ gcc -shared -o foo.so foo.o
 
  <tip>
   <para>
-   If this is too complicated for you, you should consider using   
+   If this is too complicated for you, you should consider using
    <ulink url="http://www.gnu.org/software/libtool/">
    <productname>GNU Libtool</productname></ulink>,
    which hides the platform differences behind a uniform interface.
index 5da2d61b20bb1a489055edaa705fb0178a7ba331..008ebcdcf61a6c02b35921b1eab7a4f97f313c23 100644 (file)
 
    <para>
     It's possible that the ports do not update the main catalog file
-    in <filename>/usr/local/share/sgml/catalog.ports</filename> or order 
+    in <filename>/usr/local/share/sgml/catalog.ports</filename> or order
     isn't proper .  Be sure to have the following lines in beginning of file:
 <programlisting>
 CATALOG "openjade/catalog"
@@ -613,7 +613,7 @@ gmake man
 </screen>
       </para>
      </listitem>
-  
+
      <listitem>
       <para>
        To make a <acronym>PDF</acronym>:
@@ -1059,7 +1059,7 @@ save_size.pdfjadetex = 15000
     <para>
      Norm Walsh offers a
      <ulink url="http://nwalsh.com/emacs/docbookide/index.html">major mode</ulink>
-     specifically for DocBook which also has font-lock and a number of features to 
+     specifically for DocBook which also has font-lock and a number of features to
      reduce typing.
     </para>
    </sect2>
@@ -1114,7 +1114,7 @@ save_size.pdfjadetex = 15000
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry>
       <term>Description</term>
       <listitem>
@@ -1123,7 +1123,7 @@ save_size.pdfjadetex = 15000
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry>
       <term>Options</term>
       <listitem>
@@ -1133,7 +1133,7 @@ save_size.pdfjadetex = 15000
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry>
       <term>Exit Status</term>
       <listitem>
@@ -1144,7 +1144,7 @@ save_size.pdfjadetex = 15000
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry>
       <term>Usage</term>
       <listitem>
@@ -1156,7 +1156,7 @@ save_size.pdfjadetex = 15000
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry>
       <term>Environment</term>
       <listitem>
@@ -1167,7 +1167,7 @@ save_size.pdfjadetex = 15000
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry>
       <term>Files</term>
       <listitem>
@@ -1178,7 +1178,7 @@ save_size.pdfjadetex = 15000
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry>
       <term>Diagnostics</term>
       <listitem>
@@ -1191,7 +1191,7 @@ save_size.pdfjadetex = 15000
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry>
       <term>Notes</term>
       <listitem>
@@ -1202,7 +1202,7 @@ save_size.pdfjadetex = 15000
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry>
       <term>Examples</term>
       <listitem>
@@ -1211,7 +1211,7 @@ save_size.pdfjadetex = 15000
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry>
       <term>History</term>
       <listitem>
@@ -1222,7 +1222,7 @@ save_size.pdfjadetex = 15000
        </para>
       </listitem>
      </varlistentry>
-     
+
      <varlistentry>
       <term>See Also</term>
       <listitem>
index 387f50d6d02c1e899f0ac72cf4b2e80d9fecb9e3..83f396ad21ada43b77d7e917e8ecbec7a572d342 100644 (file)
@@ -110,7 +110,7 @@ EXEC SQL CONNECT TO <replaceable>target</replaceable> <optional>AS <replaceable>
       <literal>unix:postgresql://<replaceable>hostname</><optional>:<replaceable>port</></optional><optional>/<replaceable>dbname</></optional><optional>?<replaceable>options</></optional></literal>
      </simpara>
     </listitem>
+
     <listitem>
      <simpara>
       an SQL string literal containing one of the above forms
@@ -122,7 +122,7 @@ EXEC SQL CONNECT TO <replaceable>target</replaceable> <optional>AS <replaceable>
       a reference to a character variable containing one of the above forms (see examples)
      </simpara>
     </listitem>
+
     <listitem>
      <simpara>
       <literal>DEFAULT</literal>
@@ -2743,7 +2743,6 @@ timestamp PGTYPEStimestamp_from_asc(char *str, char **endptr);
         The function returns the parsed timestamp on success. On error,
         <literal>PGTYPESInvalidTimestamp</literal> is returned and <varname>errno</> is
         set to <literal>PGTYPES_TS_BAD_TIMESTAMP</>. See <xref linkend="PGTYPESInvalidTimestamp"> for important notes on this value.
-        
        </para>
        <para>
         In general, the input string can contain any combination of an allowed
@@ -2839,7 +2838,7 @@ int PGTYPEStimestamp_fmt_asc(timestamp *ts, char *output, int str_len, char *fmt
         You can use the following format specifiers for the format mask. The
         format specifiers are the same ones that are used in the
         <function>strftime</> function in <productname>libc</productname>. Any
-        non-format specifier will be copied into the output buffer. 
+        non-format specifier will be copied into the output buffer.
         <!-- This is from the FreeBSD man page:
              http://www.freebsd.org/cgi/man.cgi?query=strftime&apropos=0&sektion=3&manpath=FreeBSD+7.0-current&format=html
         -->
@@ -2897,24 +2896,24 @@ int PGTYPEStimestamp_fmt_asc(timestamp *ts, char *output, int str_len, char *fmt
            <literal>%E*</literal> <literal>%O*</literal> -  POSIX locale
            extensions. The sequences
            <literal>%Ec</literal>
-           <literal>%EC</literal> 
-           <literal>%Ex</literal> 
-           <literal>%EX</literal> 
-           <literal>%Ey</literal> 
-           <literal>%EY</literal> 
-           <literal>%Od</literal> 
+           <literal>%EC</literal>
+           <literal>%Ex</literal>
+           <literal>%EX</literal>
+           <literal>%Ey</literal>
+           <literal>%EY</literal>
+           <literal>%Od</literal>
            <literal>%Oe</literal>
-           <literal>%OH</literal> 
-           <literal>%OI</literal> 
-           <literal>%Om</literal> 
-           <literal>%OM</literal> 
-           <literal>%OS</literal> 
-           <literal>%Ou</literal> 
-           <literal>%OU</literal> 
-           <literal>%OV</literal> 
-           <literal>%Ow</literal> 
-           <literal>%OW</literal> 
-           <literal>%Oy</literal> 
+           <literal>%OH</literal>
+           <literal>%OI</literal>
+           <literal>%Om</literal>
+           <literal>%OM</literal>
+           <literal>%OS</literal>
+           <literal>%Ou</literal>
+           <literal>%OU</literal>
+           <literal>%OV</literal>
+           <literal>%Ow</literal>
+           <literal>%OW</literal>
+           <literal>%Oy</literal>
            are supposed to provide alternative representations.
           </para>
           <para>
@@ -5763,10 +5762,10 @@ ECPG = ecpg
     <note>
     <para>
     On Windows, if the <application>ecpg</> libraries and an application are
-    compiled with different flags, this function call will crash the 
-    application because the internal representation of the 
+    compiled with different flags, this function call will crash the
+    application because the internal representation of the
     <literal>FILE</> pointers differ.  Specifically,
-    multithreaded/single-threaded, release/debug, and static/dynamic 
+    multithreaded/single-threaded, release/debug, and static/dynamic
     flags should be the same for the library and all applications using
     that library.
     </para>
@@ -5778,7 +5777,7 @@ ECPG = ecpg
        <function>ECPGget_PGconn(const char *<replaceable>connection_name</replaceable>)
        </function> returns the library database connection handle identified by the given name.
        If <replaceable>connection_name</replaceable> is set to <literal>NULL</literal>, the current
-       connection handle is returned. If no connection handle can be identified, the function returns 
+       connection handle is returned. If no connection handle can be identified, the function returns
        <literal>NULL</literal>. The returned connection handle can be used to call any other functions
        from <application>libpq</application>, if necessary.
      </para>
@@ -5803,7 +5802,7 @@ ECPG = ecpg
      <function>ECPGstatus(int <replaceable>lineno</replaceable>,
      const char* <replaceable>connection_name</replaceable>)</function>
      returns true if you are connected to a database and false if not.
-     <replaceable>connection_name</replaceable> can be <literal>NULL</> 
+     <replaceable>connection_name</replaceable> can be <literal>NULL</>
      if a single connection is being used.
     </para>
    </listitem>
@@ -8064,7 +8063,7 @@ typedef struct sqlda_compat     sqlda_t;
         Pointer to the field data. The pointer is of <literal>char *</literal> type,
         the data pointed by it is in a binary format. Example:
 <programlisting>
-int intval; 
+int intval;
 
 switch (sqldata->sqlvar[i].sqltype)
 {
@@ -8083,7 +8082,7 @@ switch (sqldata->sqlvar[i].sqltype)
       <listitem>
        <para>
         Pointer to the NULL indicator. If returned by DESCRIBE or FETCH then it's always a valid pointer.
-        If used as input for <literal>EXECUTE ... USING sqlda;</literal> then NULL-pointer value means   
+        If used as input for <literal>EXECUTE ... USING sqlda;</literal> then NULL-pointer value means
         that the value for this field is non-NULL. Otherwise a valid pointer and <literal>sqlitype</literal>
         has to be properly set. Example:
 <programlisting>
@@ -8117,7 +8116,7 @@ if (*(int2 *)sqldata->sqlvar[i].sqlind != 0)
       <listitem>
        <para>
         Type of the NULL indicator data. It's always SQLSMINT when returning data from the server.
-        When the <literal>SQLDA</literal> is used for a parametrized query, the data is treated   
+        When the <literal>SQLDA</literal> is used for a parametrized query, the data is treated
         according to the set type.
        </para>
       </listitem>
@@ -8143,13 +8142,13 @@ if (*(int2 *)sqldata->sqlvar[i].sqlind != 0)
 
      <varlistentry>
      <term><literal>sqltypename</></term>
-     <term><literal>sqltypelen</></term> 
+     <term><literal>sqltypelen</></term>
      <term><literal>sqlownerlen</></term>
      <term><literal>sqlsourcetype</></term>
-     <term><literal>sqlownername</></term> 
-     <term><literal>sqlsourceid</></term>  
-     <term><literal>sqlflags</></term>     
-     <term><literal>sqlreserved</></term>  
+     <term><literal>sqlownername</></term>
+     <term><literal>sqlsourceid</></term>
+     <term><literal>sqlflags</></term>
+     <term><literal>sqlreserved</></term>
       <listitem>
        <para>
         Unused.
@@ -8469,7 +8468,7 @@ int dectoasc(decimal *np, char *cp, int len, int right)
        <para>
         The function returns either -1 if the buffer <literal>cp</> was too
         small or <literal>ECPG_INFORMIX_OUT_OF_MEMORY</> if memory was
-        exhausted. 
+        exhausted.
        </para>
       </listitem>
      </varlistentry>
@@ -9548,7 +9547,7 @@ risnull(CINTTYPE, (char *) &i);
      </listitem>
 
      <listitem>
-      <para> 
+      <para>
        A pointer to the value or a pointer to the pointer.
       </para>
      </listitem>
index 2e8f77cf4fad8a66181f755f32d905e246651302..246451a42eb1371abfa5afb62b486395adb9e690 100644 (file)
@@ -9,7 +9,7 @@
 
   <para>
    In  the  sections  that follow, we will discuss how you
-   can extend the <productname>PostgreSQL</productname> 
+   can extend the <productname>PostgreSQL</productname>
    <acronym>SQL</acronym> query language by adding:
 
    <itemizedlist spacing="compact" mark="bullet">
@@ -45,8 +45,8 @@
    <title>How Extensibility Works</title>
 
    <para>
-    <productname>PostgreSQL</productname> is extensible because its operation  is  
-    catalog-driven.   If  you  are familiar with standard 
+    <productname>PostgreSQL</productname> is extensible because its operation  is
+    catalog-driven.   If  you  are familiar with standard
     relational database systems, you know that  they  store  information
     about  databases,  tables,  columns,  etc., in what are
     commonly known as system catalogs.  (Some systems  call
     user as tables like any other, but  the  <acronym>DBMS</acronym>  stores
     its  internal  bookkeeping in them.  One key difference
     between <productname>PostgreSQL</productname> and  standard  relational database systems  is
-    that <productname>PostgreSQL</productname> stores much more information in its 
+    that <productname>PostgreSQL</productname> stores much more information in its
     catalogs: not only information about tables and  columns,
     but also information about data types, functions, access
     methods, and so on.  These tables can be  modified  by
-    the  user, and since <productname>PostgreSQL</productname> bases its operation 
+    the  user, and since <productname>PostgreSQL</productname> bases its operation
     on these tables, this means that <productname>PostgreSQL</productname> can  be
     extended   by   users.    By  comparison,  conventional
-    database systems can only be extended by changing hardcoded  
+    database systems can only be extended by changing hardcoded
     procedures in the source code or by loading modules
     specially written by the <acronym>DBMS</acronym> vendor.
    </para>
      parsed.  Each position (either argument or return value) declared as
      <type>anyelement</type> is allowed to have any specific actual
      data type, but in any given call they must all be the
-     <emphasis>same</emphasis> actual type. Each 
+     <emphasis>same</emphasis> actual type. Each
      position declared as <type>anyarray</type> can have any array data type,
      but similarly they must all be the same type. If there are
      positions declared <type>anyarray</type> and others declared
index 8927ef344b151c3d4c7911213242400c775d8f04..129b9814ebef01050f38e9fd1ad8d5800720c880 100644 (file)
    </tgroup>
   </table>
  </sect1>
+
  <sect1 id="external-extensions">
  <title>Extensions</title>
 
   <para>
    There are several administration tools available for
    <productname>PostgreSQL</>. The most popular is
-   <application><ulink url="http://www.pgadmin.org/">pgAdmin III</ulink></>, 
+   <application><ulink url="http://www.pgadmin.org/">pgAdmin III</ulink></>,
    and there are several commercially available ones as well.
   </para>
  </sect1>
index 39cfcee9617600dbd09b1d48021549da01b2edfc..4361991ea99a0b7eafae302f9ccdcc7f1200b126 100644 (file)
 <!entity unaccent      SYSTEM "unaccent.sgml">
 <!entity uuid-ossp       SYSTEM "uuid-ossp.sgml">
 <!entity vacuumlo        SYSTEM "vacuumlo.sgml">
-<!entity xml2            SYSTEM "xml2.sgml"> 
+<!entity xml2            SYSTEM "xml2.sgml">
 
 <!-- appendixes -->
 <!entity contacts   SYSTEM "contacts.sgml">
index e4d00b24031135e853fc540c795661b22d364b08..6992aaa2817aedba7e18ea225f52fc2fe4cb7bbd 100644 (file)
@@ -30,7 +30,7 @@
    is present in other <acronym>SQL</acronym> database management
    systems, and in many cases this functionality is compatible and
    consistent between the various implementations.  This chapter is also
-   not exhaustive;  additional functions appear in relevant sections of 
+   not exhaustive;  additional functions appear in relevant sections of
    the manual.
   </para>
 
     <literal>IS NOT NULL</literal>, respectively, except that the input
     expression must be of Boolean type.
    </para>
+
 <!-- IS OF does not conform to the ISO SQL behavior, so it is undocumented here
    <para>
     <indexterm>
        <entry>Return Type</entry>
        <entry>Description</entry>
        <entry>Example</entry>
-       <entry>Result</entry>  
+       <entry>Result</entry>
       </row>
      </thead>
 
         original encoding is specified by
         <parameter>src_encoding</parameter>. The
         <parameter>string</parameter> must be valid in this encoding.
-        Conversions can be defined by <command>CREATE CONVERSION</command>.  
+        Conversions can be defined by <command>CREATE CONVERSION</command>.
         Also there are some predefined conversions. See <xref
         linkend="conversion-names"> for available conversions.
        </entry>
        </entry>
        <entry><type>bytea</type></entry>
        <entry>
-        Decode binary data from <parameter>string</parameter> previously 
+        Decode binary data from <parameter>string</parameter> previously
         encoded with <function>encode</>.  Parameter type is same as in <function>encode</>.
        </entry>
        <entry><literal>decode('MTIzAAE=', 'base64')</literal></entry>
        <entry><literal>123\000\001</literal></entry>
-      </row>       
+      </row>
 
       <row>
        <entry>
        </entry>
        <entry><literal>encode(E'123\\000\\001', 'base64')</literal></entry>
        <entry><literal>MTIzAAE=</literal></entry>
-      </row>       
+      </row>
 
       <row>
        <entry>
        </entry>
        <entry><literal>translate('12345', '143', 'ax')</literal></entry>
        <entry><literal>a2x5</literal></entry>
-      </row>       
-      
+      </row>
+
      </tbody>
     </tgroup>
    </table>
@@ -5050,15 +5050,15 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
        <row>
         <entry><literal>HH12</literal></entry>
         <entry>hour of day (01-12)</entry>
-       </row>       
+       </row>
        <row>
         <entry><literal>HH24</literal></entry>
         <entry>hour of day (00-23)</entry>
-       </row>       
+       </row>
        <row>
         <entry><literal>MI</literal></entry>
         <entry>minute (00-59)</entry>
-       </row>   
+       </row>
        <row>
         <entry><literal>SS</literal></entry>
         <entry>second (00-59)</entry>
@@ -5206,7 +5206,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
        <row>
         <entry><literal>W</literal></entry>
         <entry>week of month (1-5) (The first week starts on the first day of the month.)</entry>
-       </row> 
+       </row>
        <row>
         <entry><literal>WW</literal></entry>
         <entry>week number of year (1-53) (The first week starts on the first day of the year.)</entry>
@@ -5276,7 +5276,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
         <entry><literal>TH</literal> suffix</entry>
         <entry>upper case ordinal number suffix</entry>
         <entry><literal>DDTH</literal>, e.g., <literal>12TH</></entry>
-       </row>   
+       </row>
        <row>
         <entry><literal>th</literal> suffix</entry>
         <entry>lower case ordinal number suffix</entry>
@@ -5286,18 +5286,18 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
         <entry><literal>FX</literal> prefix</entry>
         <entry>fixed format global option (see usage notes)</entry>
         <entry><literal>FX&nbsp;Month&nbsp;DD&nbsp;Day</literal></entry>
-       </row>   
+       </row>
        <row>
         <entry><literal>TM</literal> prefix</entry>
         <entry>translation mode (print localized day and month names based on
          <xref linkend="guc-lc-time">)</entry>
         <entry><literal>TMMonth</literal></entry>
-       </row>       
+       </row>
        <row>
         <entry><literal>SP</literal> suffix</entry>
         <entry>spell mode (not implemented)</entry>
         <entry><literal>DDSP</literal></entry>
-       </row>       
+       </row>
       </tbody>
      </tgroup>
     </table>
@@ -5369,8 +5369,8 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
        use some non-digit character or template after <literal>YYYY</literal>,
        otherwise the year is always interpreted as 4 digits. For example
        (with the year 20000):
-       <literal>to_date('200001131', 'YYYYMMDD')</literal> will be 
-       interpreted as a 4-digit year; instead use a non-digit 
+       <literal>to_date('200001131', 'YYYYMMDD')</literal> will be
+       interpreted as a 4-digit year; instead use a non-digit
        separator after the year, like
        <literal>to_date('20000-1131', 'YYYY-MMDD')</literal> or
        <literal>to_date('20000Nov31', 'YYYYMonDD')</literal>.
@@ -5425,7 +5425,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
        In a conversion from string to <type>timestamp</type>, millisecond
        (<literal>MS</literal>) or microsecond (<literal>US</literal>)
        values are used as the
-       seconds digits after the decimal point. For example 
+       seconds digits after the decimal point. For example
        <literal>to_timestamp('12:3', 'SS:MS')</literal> is not 3 milliseconds,
        but 300, because the conversion counts it as 12 + 0.3 seconds.
        This means for the format <literal>SS:MS</literal>, the input values
@@ -5436,11 +5436,11 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
       </para>
 
       <para>
-       Here is a more 
-       complex example: 
+       Here is a more
+       complex example:
        <literal>to_timestamp('15:12:02.020.001230', 'HH:MI:SS.MS.US')</literal>
        is 15 hours, 12 minutes, and 2 seconds + 20 milliseconds +
-       1230 microseconds = 2.021230 seconds. 
+       1230 microseconds = 2.021230 seconds.
       </para>
      </listitem>
 
@@ -5491,7 +5491,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
        <row>
         <entry><literal>.</literal> (period)</entry>
         <entry>decimal point</entry>
-       </row>       
+       </row>
        <row>
         <entry><literal>,</literal> (comma)</entry>
         <entry>group (thousand) separator</entry>
@@ -5568,7 +5568,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
 
      <listitem>
       <para>
-       <literal>9</literal> results in a value with the same number of 
+       <literal>9</literal> results in a value with the same number of
        digits as there are <literal>9</literal>s. If a digit is
        not available it outputs a space.
       </para>
@@ -5585,7 +5585,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
       <para>
        <literal>PL</literal>, <literal>SG</literal>, and
        <literal>TH</literal> are <productname>PostgreSQL</productname>
-       extensions. 
+       extensions.
       </para>
      </listitem>
 
@@ -5642,7 +5642,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
         <entry><literal>TH</literal> suffix</entry>
         <entry>upper case ordinal number suffix</entry>
         <entry><literal>999TH</literal></entry>
-       </row>   
+       </row>
        <row>
         <entry><literal>th</literal> suffix</entry>
         <entry>lower case ordinal number suffix</entry>
@@ -5674,7 +5674,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
        <row>
         <entry><literal>to_char(current_timestamp, 'FMDay,&nbsp;FMDD&nbsp;&nbsp;HH12:MI:SS')</literal></entry>
         <entry><literal>'Tuesday,&nbsp;6&nbsp;&nbsp;05:39:18'</literal></entry>
-       </row>          
+       </row>
        <row>
         <entry><literal>to_char(-0.1, '99.99')</literal></entry>
         <entry><literal>'&nbsp;&nbsp;-.10'</literal></entry>
@@ -5729,7 +5729,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
        </row>
        <row>
         <entry><literal>to_char(148.5, '999D999')</literal></entry>
-        <entry><literal>'&nbsp;148,500'</literal></entry>        
+        <entry><literal>'&nbsp;148,500'</literal></entry>
        </row>
        <row>
         <entry><literal>to_char(3148.5, '9G999D999')</literal></entry>
@@ -5739,57 +5739,57 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
         <entry><literal>to_char(-485, '999S')</literal></entry>
         <entry><literal>'485-'</literal></entry>
        </row>
-       <row>            
+       <row>
         <entry><literal>to_char(-485, '999MI')</literal></entry>
-        <entry><literal>'485-'</literal></entry>        
+        <entry><literal>'485-'</literal></entry>
        </row>
        <row>
         <entry><literal>to_char(485, '999MI')</literal></entry>
-        <entry><literal>'485&nbsp;'</literal></entry>           
+        <entry><literal>'485&nbsp;'</literal></entry>
        </row>
        <row>
         <entry><literal>to_char(485, 'FM999MI')</literal></entry>
-        <entry><literal>'485'</literal></entry>         
+        <entry><literal>'485'</literal></entry>
        </row>
        <row>
         <entry><literal>to_char(485, 'PL999')</literal></entry>
-        <entry><literal>'+485'</literal></entry>        
+        <entry><literal>'+485'</literal></entry>
        </row>
-       <row>            
+       <row>
         <entry><literal>to_char(485, 'SG999')</literal></entry>
-        <entry><literal>'+485'</literal></entry>        
+        <entry><literal>'+485'</literal></entry>
        </row>
        <row>
         <entry><literal>to_char(-485, 'SG999')</literal></entry>
-        <entry><literal>'-485'</literal></entry>        
+        <entry><literal>'-485'</literal></entry>
        </row>
        <row>
         <entry><literal>to_char(-485, '9SG99')</literal></entry>
-        <entry><literal>'4-85'</literal></entry>        
+        <entry><literal>'4-85'</literal></entry>
        </row>
        <row>
         <entry><literal>to_char(-485, '999PR')</literal></entry>
-        <entry><literal>'&lt;485&gt;'</literal></entry>         
+        <entry><literal>'&lt;485&gt;'</literal></entry>
        </row>
        <row>
         <entry><literal>to_char(485, 'L999')</literal></entry>
-        <entry><literal>'DM&nbsp;485</literal></entry>   
+        <entry><literal>'DM&nbsp;485</literal></entry>
        </row>
        <row>
-        <entry><literal>to_char(485, 'RN')</literal></entry>            
+        <entry><literal>to_char(485, 'RN')</literal></entry>
         <entry><literal>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDLXXXV'</literal></entry>
        </row>
        <row>
-        <entry><literal>to_char(485, 'FMRN')</literal></entry>  
+        <entry><literal>to_char(485, 'FMRN')</literal></entry>
         <entry><literal>'CDLXXXV'</literal></entry>
        </row>
        <row>
         <entry><literal>to_char(5.2, 'FMRN')</literal></entry>
-        <entry><literal>'V'</literal></entry>           
+        <entry><literal>'V'</literal></entry>
        </row>
        <row>
         <entry><literal>to_char(482, '999th')</literal></entry>
-        <entry><literal>'&nbsp;482nd'</literal></entry>                         
+        <entry><literal>'&nbsp;482nd'</literal></entry>
        </row>
        <row>
         <entry><literal>to_char(485, '"Good&nbsp;number:"999')</literal></entry>
@@ -5800,14 +5800,14 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
         <entry><literal>'Pre:&nbsp;485&nbsp;Post:&nbsp;.800'</literal></entry>
        </row>
        <row>
-        <entry><literal>to_char(12, '99V999')</literal></entry>         
+        <entry><literal>to_char(12, '99V999')</literal></entry>
         <entry><literal>'&nbsp;12000'</literal></entry>
        </row>
        <row>
         <entry><literal>to_char(12.4, '99V999')</literal></entry>
         <entry><literal>'&nbsp;12400'</literal></entry>
        </row>
-       <row>            
+       <row>
         <entry><literal>to_char(12.45, '99V9')</literal></entry>
         <entry><literal>'&nbsp;125'</literal></entry>
        </row>
@@ -6301,20 +6301,20 @@ SELECT (DATE '2001-10-30', DATE '2001-10-30') OVERLAPS
 </screen>
 
   <para>
-   When adding an <type>interval</type> value to (or subtracting an 
-   <type>interval</type> value from) a <type>timestamp with time zone</type> 
-   value, the days component advances (or decrements) the date of the 
-   <type>timestamp with time zone</type> by the indicated number of days. 
-   Across daylight saving time changes (with the session time zone set to a 
-   time zone that recognizes DST), this means <literal>interval '1 day'</literal> 
-   does not necessarily equal <literal>interval '24 hours'</literal>. 
+   When adding an <type>interval</type> value to (or subtracting an
+   <type>interval</type> value from) a <type>timestamp with time zone</type>
+   value, the days component advances (or decrements) the date of the
+   <type>timestamp with time zone</type> by the indicated number of days.
+   Across daylight saving time changes (with the session time zone set to a
+   time zone that recognizes DST), this means <literal>interval '1 day'</literal>
+   does not necessarily equal <literal>interval '24 hours'</literal>.
    For example, with the session time zone set to <literal>CST7CDT</literal>,
    <literal>timestamp with time zone '2005-04-02 12:00-07' + interval '1 day' </literal>
-   will produce <literal>timestamp with time zone '2005-04-03 12:00-06'</literal>, 
-   while adding <literal>interval '24 hours'</literal> to the same initial 
+   will produce <literal>timestamp with time zone '2005-04-03 12:00-06'</literal>,
+   while adding <literal>interval '24 hours'</literal> to the same initial
    <type>timestamp with time zone</type> produces
    <literal>timestamp with time zone '2005-04-03 13:00-06'</literal>, as there is
-   a change in daylight saving time at <literal>2005-04-03 02:00</literal> in time zone 
+   a change in daylight saving time at <literal>2005-04-03 02:00</literal> in time zone
    <literal>CST7CDT</literal>.
   </para>
 
@@ -6704,9 +6704,9 @@ SELECT EXTRACT(SECOND FROM TIME '17:12:28.5');
         a year is in week 1 of that year.
        </para>
        <para>
-        Because of this, it is possible for early January dates to be part of the 
+        Because of this, it is possible for early January dates to be part of the
         52nd or 53rd week of the previous year.  For example, <literal>2005-01-01</>
-        is part of the 53rd week of year 2004, and <literal>2006-01-01</> is part of 
+        is part of the 53rd week of year 2004, and <literal>2006-01-01</> is part of
         the 52nd week of year 2005.
        </para>
 
@@ -6721,7 +6721,7 @@ SELECT EXTRACT(WEEK FROM TIMESTAMP '2001-02-16 20:38:40');
       <term><literal>year</literal></term>
       <listitem>
        <para>
-        The year field.  Keep in mind there is no <literal>0 AD</>, so subtracting 
+        The year field.  Keep in mind there is no <literal>0 AD</>, so subtracting
         <literal>BC</> years from <literal>AD</> years should be done with care.
        </para>
 
@@ -6900,7 +6900,7 @@ SELECT TIMESTAMP WITH TIME ZONE '2001-02-16 20:38:40-05' AT TIME ZONE 'MST';
 <lineannotation>Result: </lineannotation><computeroutput>2001-02-16 18:38:40</computeroutput>
 </screen>
     The first example takes a time stamp without time zone and interprets it as MST time
-    (UTC-7), which is then converted to PST (UTC-8) for display.  The second example takes 
+    (UTC-7), which is then converted to PST (UTC-8) for display.  The second example takes
     a time stamp specified in EST (UTC-5) and converts it to local time in MST (UTC-7).
    </para>
 
@@ -6908,7 +6908,7 @@ SELECT TIMESTAMP WITH TIME ZONE '2001-02-16 20:38:40-05' AT TIME ZONE 'MST';
     The function <literal><function>timezone</function>(<replaceable>zone</>,
     <replaceable>timestamp</>)</literal> is equivalent to the SQL-conforming construct
     <literal><replaceable>timestamp</> AT TIME ZONE
-    <replaceable>zone</></literal>. 
+    <replaceable>zone</></literal>.
    </para>
   </sect2>
 
@@ -7110,7 +7110,7 @@ SELECT pg_sleep(1.5);
 
  </sect1>
 
-  
+
  <sect1 id="functions-enum">
   <title>Enum Support Functions</title>
 
@@ -8936,7 +8936,7 @@ SELECT xpath_exists('/my:a/text()', '<my:a xmlns:my="http://example.com">test</m
 <synopsis>
 table_to_xml(tbl regclass, nulls boolean, tableforest boolean, targetns text)
 query_to_xml(query text, nulls boolean, tableforest boolean, targetns text)
-cursor_to_xml(cursor refcursor, count int, nulls boolean, 
+cursor_to_xml(cursor refcursor, count int, nulls boolean,
               tableforest boolean, targetns text)
 </synopsis>
     The return type of each function is <type>xml</type>.
@@ -9569,7 +9569,7 @@ SELECT ... WHERE CASE WHEN x &lt;&gt; 0 THEN y/x &gt; 1.5 ELSE false END;
   <para>
    The <function>COALESCE</function> function returns the first of its
    arguments that is not null.  Null is returned only if all arguments
-   are null.  It is often used to substitute a default value for 
+   are null.  It is often used to substitute a default value for
    null values when data is retrieved for display, for example:
 <programlisting>
 SELECT COALESCE(description, short_description, '(none)') ...
@@ -11803,7 +11803,7 @@ FROM (SELECT generate_subscripts(a, 1) AS s, a FROM arrays) foo;
 -- unnest a 2D array
 CREATE OR REPLACE FUNCTION unnest2(anyarray)
 RETURNS SETOF anyelement AS $$
-select $1[i][j] 
+select $1[i][j]
    from generate_subscripts($1,1) g1(i),
         generate_subscripts($1,2) g2(j);
 $$ LANGUAGE sql IMMUTABLE;
@@ -13398,7 +13398,7 @@ SELECT set_config('log_statement_stats', 'off', false);
    <para>
     <function>pg_rotate_logfile</> signals the log-file manager to switch
     to a new output file immediately.  This works only when the built-in
-    log collector is running, since otherwise there is no log-file manager 
+    log collector is running, since otherwise there is no log-file manager
     subprocess.
    </para>
 
@@ -14114,7 +14114,7 @@ SELECT (pg_stat_file('filename')).modification;
    <para>
     <function>pg_advisory_lock</> locks an application-defined resource,
     which can be identified either by a single 64-bit key value or two
-    32-bit key values (note that these two key spaces do not overlap). 
+    32-bit key values (note that these two key spaces do not overlap).
     The key type is specified in <literal>pg_locks.objid</>.  If
     another session already holds a lock on the same resource, the
     function will wait until the resource becomes available.  The lock
@@ -14193,7 +14193,7 @@ SELECT (pg_stat_file('filename')).modification;
 
    <para>
       Currently <productname>PostgreSQL</> provides one built in trigger
-      function, <function>suppress_redundant_updates_trigger</>, 
+      function, <function>suppress_redundant_updates_trigger</>,
       which will prevent any update
       that does not actually change the data in the row from taking place, in
       contrast to the normal behavior which always performs the update
@@ -14209,19 +14209,19 @@ SELECT (pg_stat_file('filename')).modification;
       and space in dead rows that will eventually have to be vacuumed.
       However, detecting such situations in client code is not
       always easy, or even possible, and writing expressions to detect
-      them can be error-prone. An alternative is to use 
+      them can be error-prone. An alternative is to use
       <function>suppress_redundant_updates_trigger</>, which will skip
       updates that don't change the data. You should use this with care,
-      however. The trigger takes a small but non-trivial time for each record, 
+      however. The trigger takes a small but non-trivial time for each record,
       so if most of the records affected by an update are actually changed,
       use of this trigger will actually make the update run slower.
     </para>
 
     <para>
-      The <function>suppress_redundant_updates_trigger</> function can be 
+      The <function>suppress_redundant_updates_trigger</> function can be
       added to a table like this:
 <programlisting>
-CREATE TRIGGER z_min_update 
+CREATE TRIGGER z_min_update
 BEFORE UPDATE ON tablename
 FOR EACH ROW EXECUTE PROCEDURE suppress_redundant_updates_trigger();
 </programlisting>
index 62e2b29122e99d46b9352d74f47e604210c3a8d6..9bd5c22d8edc4804e74bfcd5a63d95f01fbd2316 100644 (file)
    database, and several geographic information systems.
    <productname>POSTGRES</productname> has also been used as an
    educational tool at several universities.  Finally, Illustra
-   Information Technologies (later merged into 
+   Information Technologies (later merged into
    <ulink url="http://www.informix.com/"><productname>Informix</productname></ulink>,
    which is now owned by <ulink
    url="http://www.ibm.com/">IBM</ulink>) picked up the code and
    commercialized it.  In late 1992,
    <productname>POSTGRES</productname> became the primary data manager
-   for the 
+   for the
    <ulink url="http://meteora.ucsd.edu/s2k/s2k_home.html">
    Sequoia 2000 scientific computing project</ulink>.
   </para>
index 263085474ac5c9e731a7ee5499dc229962bd1bee..a59d0c8a4388647e24dbfaec76791a67d2371034 100644 (file)
@@ -27,7 +27,7 @@
     <term>Web Site</term>
     <listitem>
      <para>
-      The <productname>PostgreSQL</productname> 
+      The <productname>PostgreSQL</productname>
       <ulink url="http://www.postgresql.org">web site</ulink>
       carries details on the latest release and other
       information to make your work or play with
index 4bf890e759718c3ebbafaa71f6c4cf64abc0afc8..cc717844a2d86557b39a775395e8006079ed9470 100644 (file)
@@ -9,7 +9,7 @@
  </indexterm>
 
  <para>
-  It is recommended that most users download the binary distribution for 
+  It is recommended that most users download the binary distribution for
   Windows, available as a one-click installer package
   from the <productname>PostgreSQL</productname> website. Building from source
   is only intended for people developing <productname>PostgreSQL</productname>
@@ -37,7 +37,7 @@
  <para>
   Finally, the client access library
   (<application>libpq</application>) can be built using
-  <productname>Visual C++ 7.1</productname> or 
+  <productname>Visual C++ 7.1</productname> or
   <productname>Borland C++</productname> for compatibility with statically
   linked applications built using these tools.
  </para>
@@ -50,7 +50,7 @@
   These builds cannot generate 64-bit binaries.
   <productname>Cygwin</productname> is not recommended and should
   only be used for older versions of <productname>Windows</productname> where
-  the native build does not work, such as 
+  the native build does not work, such as
   <productname>Windows 98</productname>. <productname>MinGW</productname> is
   only recommended if you are building other modules using it. The official
   binaries are built using <productname>Visual Studio</productname>.
@@ -180,7 +180,7 @@ $ENV{PATH}=$ENV{PATH} . ';c:\some\where\bison\bin';
       building from a release file. Note that only Bison 1.875 or versions
       2.2 and later will work. Also, Flex version 2.5.31 or later is required.
       Bison can be downloaded from <ulink url="http://gnuwin32.sourceforge.net"></>.
-      Flex can be downloaded from 
+      Flex can be downloaded from
       <ulink url="http://www.postgresql.org/ftp/misc/winflex/"></>.
      </para></listitem>
     </varlistentry>
@@ -206,7 +206,7 @@ $ENV{PATH}=$ENV{PATH} . ';c:\some\where\bison\bin';
      <term><productname>MIT Kerberos</productname></term>
      <listitem><para>
       Required for Kerberos authentication support. MIT Kerberos can be
-      downloaded from 
+      downloaded from
       <ulink url="http://web.mit.edu/Kerberos/dist/index.html"></>.
      </para></listitem>
     </varlistentry>
@@ -234,7 +234,7 @@ $ENV{PATH}=$ENV{PATH} . ';c:\some\where\bison\bin';
     <varlistentry>
      <term><productname>ossp-uuid</productname></term>
      <listitem><para>
-      Required for UUID-OSSP support (contrib only). Source can be 
+      Required for UUID-OSSP support (contrib only). Source can be
       downloaded from
       <ulink url="http://www.ossp.org/pkg/lib/uuid/"></>.
      </para></listitem>
@@ -494,7 +494,7 @@ $ENV{DOCROOT}='c:\docbook';
      </para>
     </listitem>
    </varlistentry>
-  
+
    <varlistentry>
     <term><filename>interfaces\libpq\Release\libpqdll.lib</filename></term>
     <listitem>
index 1e7a56c1e84cf517862ed6d8294fef87c1542573..080c3c404bca7200de7bafb5ff3bb25c4128a960 100644 (file)
@@ -18,7 +18,7 @@
  <para>
   SQL distinguishes between <firstterm>reserved</firstterm> and
   <firstterm>non-reserved</firstterm> key words.  According to the standard,
-  reserved key words 
+  reserved key words
   are the only real key words; they are never allowed as identifiers.
   Non-reserved key words only have a special meaning in particular
   contexts and can be used as identifiers in other contexts.  Most
index e2ca5b2df77eb8bb220639323aacc4e0aeaab0fc..22b08ccdbb1b94d52be4d3b2c9bb990a62082799 100644 (file)
@@ -15,7 +15,7 @@
  </para>
 
  <para>
-  <productname>Postgres95</productname> is Copyright &copy; 1994-5 
+  <productname>Postgres95</productname> is Copyright &copy; 1994-5
   by the Regents of the University of California.
  </para>
 
index a911c500d31451c51f3e6253dc8a8d7f6c6b6389..5cc81bbe2690bd4bb6a4e22fb1099c5daf3981f5 100644 (file)
@@ -461,7 +461,7 @@ PGconn *PQconnectdbParams(const char **keywords, const char **values, int expand
            This parameter specifies the file name of the client SSL
            certificate, replacing the default
            <filename>~/.postgresql/postgresql.crt</>.
-           This parameter is ignored if an SSL connection is not made. 
+           This parameter is ignored if an SSL connection is not made.
           </para>
          </listitem>
         </varlistentry>
index 23e910f30e65e8a1bd0d0107d952a72671691225..46c627b4f4fb125bd860b7e5ede6bd20671f096a 100644 (file)
@@ -42,7 +42,7 @@
     This makes the large object facility partially obsolete.  One
     remaining advantage of the large object facility is that it allows values
     up to 2 GB in size, whereas <acronym>TOAST</acronym>ed fields can be at
-    most 1 GB.  Also, large objects can be randomly modified using a read/write 
+    most 1 GB.  Also, large objects can be randomly modified using a read/write
     API that is more efficient than performing such operations using
     <acronym>TOAST</acronym>.
    </para>
     As of <productname>PostgreSQL</> 9.0, large objects have an owner
     and a set of access permissions, which can be managed using
     <xref linkend="sql-grant"> and
-    <xref linkend="sql-revoke">.  
+    <xref linkend="sql-revoke">.
     For compatibility with prior releases, see
     <xref linkend="guc-lo-compat-privileges">.
     <literal>SELECT</literal> privileges are required to read a large
-    object, and 
+    object, and
     <literal>UPDATE</literal> privileges are required to write to or
     truncate it.
     Only the large object owner (or the database superuser) can unlink, comment
 Oid lo_creat(PGconn *conn, int mode);
 </synopsis>
      <indexterm><primary>lo_creat</></>
-     creates a new large object.  
+     creates a new large object.
      The return value is the OID that was assigned to the new large object,
      or <symbol>InvalidOid</symbol> (zero) on failure.
 
@@ -167,7 +167,7 @@ inv_oid = lo_create(conn, desired_oid);
 Oid lo_import(PGconn *conn, const char *filename);
 </synopsis>
      <indexterm><primary>lo_import</></>
-     <replaceable class="parameter">filename</replaceable> 
+     <replaceable class="parameter">filename</replaceable>
      specifies the operating system name of
      the file to be imported as a large object.
      The return value is the OID that was assigned to the new large object,
@@ -238,7 +238,7 @@ int lo_open(PGconn *conn, Oid lobjId, int mode);
      descriptor for later use in <function>lo_read</function>,
      <function>lo_write</function>, <function>lo_lseek</function>,
      <function>lo_tell</function>, and <function>lo_close</function>.
-     The descriptor is only valid for 
+     The descriptor is only valid for
      the duration of the current transaction.
      On failure, -1 is returned.
     </para>
@@ -462,9 +462,9 @@ SELECT lo_export(image.raster, '/tmp/motd') FROM image
 <title>Example Program</title>
 
 <para>
-     <xref linkend="lo-example"> is a sample program which shows how the large object  
+     <xref linkend="lo-example"> is a sample program which shows how the large object
      interface
-     in <application>libpq</> can be used.  Parts of the program are 
+     in <application>libpq</> can be used.  Parts of the program are
      commented out but are left in the source for  the  reader's
      benefit.  This program can also be found in
      <filename>src/test/examples/testlo.c</filename> in the source distribution.
index 57156329a6eef64de503f07938dd73e253ccd52d..020bbcd0e2ae1a11a0ef981c8c5bd591b7d5e2b4 100644 (file)
    </indexterm>
 
    <para>
-    <productname>PostgreSQL</productname> provides a rich set of tools 
+    <productname>PostgreSQL</productname> provides a rich set of tools
     for developers to manage concurrent access to data.  Internally,
-    data consistency is maintained by using a multiversion 
-    model (Multiversion Concurrency Control, <acronym>MVCC</acronym>). 
+    data consistency is maintained by using a multiversion
+    model (Multiversion Concurrency Control, <acronym>MVCC</acronym>).
     This means that while querying a database each transaction sees
     a snapshot of data (a <firstterm>database version</firstterm>)
     as it was some
@@ -38,7 +38,7 @@
     data rows, providing <firstterm>transaction isolation</firstterm>
     for each database session.  <acronym>MVCC</acronym>, by eschewing
     explicit locking methodologies of traditional database systems,
-    minimizes lock contention in order to allow for reasonable 
+    minimizes lock contention in order to allow for reasonable
     performance in multiuser environments.
    </para>
 
index e324b1483ad59eed4aabdf225de212a7f03c0b08..c1a59a9cace6bcf865c1f27c091380bc84c88aff 100644 (file)
@@ -61,7 +61,7 @@ archive_cleanup_command = 'pg_archivecleanup <replaceable>archivelocation</> %r'
 <synopsis>
 pg_archivecleanup <optional> <replaceable>option</> ... </optional> <replaceable>archivelocation</> <replaceable>restartwalfile</>
 </synopsis>
-   When used as a standalone program all WAL files logically preceding the 
+   When used as a standalone program all WAL files logically preceding the
    <literal>restartwalfile</> will be removed <replaceable>archivelocation</>.
    In this mode, if you specify a <filename>.backup</> file name, then only the file prefix
    will be used as the <literal>restartwalfile</>. This allows you to remove
index 9081cc916ae068534e8581e3ab75bbc77fff92b3..15bba6eaf173a3056a9c077bc90a69c2849002e7 100644 (file)
   <procedure>
    <step performance="optional">
     <title>Optionally move the old cluster</title>
+
     <para>
      If you are using a version-specific installation directory, e.g.
      <filename>/opt/PostgreSQL/8.4</>, you do not need to move the old cluster. The
      one-click installers all use version-specific installation directories.
     </para>
-    <para>    
+
+    <para>
      If your installation directory is not version-specific, e.g.
      <filename>/usr/local/pgsql</>, it is necessary to move the current PostgreSQL install
      directory so it does not interfere with the new <productname>PostgreSQL</> installation.
      Once the current <productname>PostgreSQL</> server is shut down, it is safe to rename the
      PostgreSQL installation directory; assuming the old directory is
      <filename>/usr/local/pgsql</>, you can do:
+
 <programlisting>
 mv /usr/local/pgsql /usr/local/pgsql.old
 </programlisting>
      to rename the directory.
     </para>
    </step>
+
    <step>
     <title>For source installs, build the new version</title>
+
     <para>
      Build the new PostgreSQL source with <command>configure</> flags that are compatible
      with the old cluster. <application>pg_upgrade</> will check <command>pg_controldata</> to make
      sure all settings are compatible before starting the upgrade.
     </para>
    </step>
+
    <step>
     <title>Install the new PostgreSQL binaries</title>
+
     <para>
      Install the new server's binaries and support files. You can use the
      same port numbers for both clusters, typically 5432, because the old and
      new clusters will not be running at the same time.
     </para>
+
     <para>
      For source installs, if you wish to install the new server in a custom
      location, use the <literal>prefix</literal> variable:
+
 <programlisting>
 gmake prefix=/usr/local/pgsql.new install
 </programlisting>
     </para>
    </step>
+
    <step>
     <title>Install pg_upgrade and pg_upgrade_support</title>
 
@@ -207,10 +207,10 @@ gmake prefix=/usr/local/pgsql.new install
      <application>pg_upgrade_support</> in the new PostgreSQL cluster
     </para>
    </step>
+
    <step>
     <title>Initialize the new PostgreSQL cluster</title>
+
     <para>
      Initialize the new cluster using <command>initdb</command>.
      Again, use compatible <command>initdb</command>
@@ -219,10 +219,10 @@ gmake prefix=/usr/local/pgsql.new install
      start the new cluster.
     </para>
    </step>
+
    <step>
     <title>Install custom shared object files</title>
+
     <para>
      Install any custom shared object files (or DLLs) used by the old cluster
      into the new cluster, e.g. <filename>pgcrypto.so</filename>, whether they are from <filename>contrib</filename>
@@ -230,10 +230,10 @@ gmake prefix=/usr/local/pgsql.new install
      <filename>pgcrypto.sql</>, because these will be migrated from the old cluster.
     </para>
    </step>
+
    <step>
     <title>Adjust authentication</title>
+
     <para>
      <command>pg_upgrade</> will connect to the old and new servers several times,
      so you might want to set authentication to <literal>trust</> in
@@ -242,36 +242,36 @@ gmake prefix=/usr/local/pgsql.new install
      to avoid being prompted repeatedly for a password.
     </para>
    </step>
+
    <step>
     <title>Stop both servers</title>
+
     <para>
      Make sure both database servers are stopped using, on Unix, e.g.:
+
 <programlisting>
 pg_ctl -D /opt/PostgreSQL/8.4 stop
 pg_ctl -D /opt/PostgreSQL/9.0 stop
 </programlisting>
+
      or on Windows, using the proper service names:
+
 <programlisting>
 NET STOP postgresql-8.4
 NET STOP postgresql-9.0
 </programlisting>
+
      or
+
 <programlisting>
 NET STOP pgsql-8.3  (<productname>PostgreSQL</> 8.3 and older used a different service name)
 </programlisting>
     </para>
    </step>
+
    <step>
     <title>Run <application>pg_upgrade</></title>
+
     <para>
      Always run the <application>pg_upgrade</> binary of the new server, not the old one.
      <application>pg_upgrade</> requires the specification of the old and new cluster's
@@ -282,18 +282,18 @@ NET STOP pgsql-8.3  (<productname>PostgreSQL</> 8.3 and older used a different s
      old cluster once you start the new cluster after the upgrade. See
      <literal>pg_upgrade --help</> for a full list of options.
     </para>
+
     <para>
      For Windows users, you must be logged into an administrative account, and
      then start a shell as the <literal>postgres</> user and set the proper path:
+
 <programlisting>
 RUNAS /USER:postgres "CMD.EXE"
 SET PATH=%PATH%;C:\Program Files\PostgreSQL\9.0\bin;
 </programlisting>
+
      and then run <application>pg_upgrade</> with quoted directories, e.g.:
+
 <programlisting>
 pg_upgrade.exe
         --old-datadir "C:/Program Files/PostgreSQL/8.4/data"
@@ -301,7 +301,7 @@ pg_upgrade.exe
         --old-bindir "C:/Program Files/PostgreSQL/8.4/bin"
         --new-bindir "C:/Program Files/PostgreSQL/9.0/bin"
 </programlisting>
+
      Once started, <command>pg_upgrade</> will verify the two clusters are compatible
      and then do the migration. You can use <command>pg_upgrade --check</>
      to perform only the checks, even if the old server is still
@@ -309,11 +309,11 @@ pg_upgrade.exe
      manual adjustments you will need to make after the migration.
      <command>pg_upgrade</> requires write permission in the current directory.
     </para>
+
     <para>
      Obviously, no one should be accessing the clusters during the migration.
     </para>
+
     <para>
      If an error occurs while restoring the database schema, <command>pg_upgrade</> will
      exit and you will have to revert to the old cluster as outlined in <xref linkend="pgupgrade-step-revert">
@@ -324,35 +324,35 @@ pg_upgrade.exe
      assuming the module is not being used to store user data.
     </para>
    </step>
+
    <step>
     <title>Restore <filename>pg_hba.conf</></title>
+
     <para>
      If you modified <filename>pg_hba.conf</> to use <literal>trust</>,
      restore its original authentication settings.
     </para>
    </step>
+
    <step>
     <title>Post-migration processing</title>
+
     <para>
      If any post-migration processing is required, pg_upgrade will issue
      warnings as it completes. It will also generate script files that must
      be run by the administrator. The script files will connect to each
      database that needs post-migration processing. Each script should be
      run using:
+
 <programlisting>
 psql --username postgres --file script.sql postgres
 </programlisting>
+
      The scripts can be run in any order and can be deleted once they have
      been run.
     </para>
 
-    <caution> 
+    <caution>
     <para>
      In general it is unsafe to access tables referenced in rebuild scripts
      until the rebuild scripts have run to completion; doing so could yield
@@ -361,7 +361,7 @@ psql --username postgres --file script.sql postgres
     </para>
     </caution>
    </step>
+
    <step>
     <title>Statistics</title>
 
@@ -371,10 +371,10 @@ psql --username postgres --file script.sql postgres
      of the migration.
     </para>
    </step>
+
    <step>
     <title>Delete old cluster</title>
+
     <para>
      Once you are satisfied with the upgrade, you can delete the old
      cluster's data directories by running the script mentioned when
@@ -383,10 +383,10 @@ psql --username postgres --file script.sql postgres
      (e.g. <filename>bin</>, <filename>share</>).
     </para>
    </step>
+
    <step id="pgupgrade-step-revert" performance="optional">
     <title>Reverting to old cluster</title>
+
     <para>
      If, after running <command>pg_upgrade</command>, you wish to revert to the old cluster,
      there are several options:
@@ -430,12 +430,12 @@ psql --username postgres --file script.sql postgres
     </para>
    </step>
   </procedure>
+
  </sect2>
+
  <sect2>
   <title>Limitations in Migrating <emphasis>from</> PostgreSQL 8.3</title>
+
   <para>
    Upgrading from PostgreSQL 8.3 has additional restrictions not present
    when upgrading from later PostgreSQL releases.  For example,
@@ -458,7 +458,7 @@ psql --username postgres --file script.sql postgres
   <para>
    You must drop any such columns and migrate them manually.
   </para>
+
   <para>
    pg_upgrade will require a table rebuild if:
    <itemizedlist>
@@ -469,7 +469,7 @@ psql --username postgres --file script.sql postgres
     </listitem>
    </itemizedlist>
   </para>
+
   <para>
    pg_upgrade will require a reindex if:
    <itemizedlist>
@@ -485,14 +485,14 @@ psql --username postgres --file script.sql postgres
     </listitem>
    </itemizedlist>
   </para>
+
   <para>
    Also, the default datetime storage format changed to integer after
    <productname>PostgreSQL</> 8.3. pg_upgrade will check that the datetime storage format
    used by the old and new clusters match. Make sure your new cluster is
    built with the configure flag <option>--disable-integer-datetimes</>.
   </para>
+
   <para>
    For Windows users, note that due to different integer datetimes settings
    used by the one-click installer and the MSI installer, it is only
@@ -502,31 +502,31 @@ psql --username postgres --file script.sql postgres
   </para>
 
  </sect2>
+
  <sect2>
   <title>Notes</title>
-  <para>  
+
+  <para>
    <application>pg_upgrade</> does not support migration of databases
    containing these <type>reg*</> OID-referencing system data types:
    <type>regproc</>, <type>regprocedure</>, <type>regoper</>,
    <type>regoperator</>, <type>regclass</>, <type>regconfig</>, and
    <type>regdictionary</>.  (<type>regtype</> can be migrated.)
   </para>
-  <para>  
+
+  <para>
    All failure, rebuild, and reindex cases will be reported by
    <application>pg_upgrade</> if they affect your installation;
    post-migration scripts to rebuild tables and indexes will be
    generated automatically.
   </para>
+
   <para>
    For deployment testing, create a schema-only copy of the old cluster,
    insert dummy data, and migrate that.
   </para>
-  <para>  
+
+  <para>
    If you want to use link mode and you don't want your old cluster
    to be modified when the new cluster is started, make a copy of the
    old cluster and migrate that with link mode. To make a valid copy
@@ -535,7 +535,7 @@ psql --username postgres --file script.sql postgres
    the old server and run <command>rsync</> again to update the copy with any
    changes to make it consistent.
   </para>
+
  </sect2>
+
 </sect1>
index e07fba5b5f3350b18ea40001e0fc668ac626f1bf..08a14a67cbdd7e8e80b8536c782a805203a38258 100644 (file)
@@ -286,8 +286,8 @@ SELECT * FROM perl_set();
   </para>
 
   <para>
-   If you wish to use the <literal>strict</> pragma with your code you 
-   have a few options. For temporary global use you can <command>SET</> 
+   If you wish to use the <literal>strict</> pragma with your code you
+   have a few options. For temporary global use you can <command>SET</>
    <literal>plperl.use_strict</literal> to true.
    This will affect subsequent compilations of <application>PL/Perl</>
    functions, but not functions already compiled in the current session.
@@ -523,7 +523,7 @@ $plan = spi_prepare('SELECT * FROM test WHERE id &gt; $1 AND name = $2',
     by <literal>spi_exec_query</literal>, or in <literal>spi_query_prepared</literal> which returns a cursor
     exactly as <literal>spi_query</literal> does, which can be later passed to <literal>spi_fetchrow</literal>.
     The optional second parameter to <literal>spi_exec_prepared</literal> is a hash reference of attributes;
-    the only attribute currently supported is <literal>limit</literal>, which sets the maximum number of rows returned by a query. 
+    the only attribute currently supported is <literal>limit</literal>, which sets the maximum number of rows returned by a query.
     </para>
 
     <para>
@@ -1303,8 +1303,8 @@ DO 'elog(WARNING, join ", ", sort keys %INC)' language plperl;
       <para>
         When a session ends normally, not due to a fatal error, any
         <literal>END</> blocks that have been defined are executed.
-        Currently no other actions are performed. Specifically, 
-        file handles are not automatically flushed and objects are 
+        Currently no other actions are performed. Specifically,
+        file handles are not automatically flushed and objects are
         not automatically destroyed.
       </para>
      </listitem>
index 398209d396637b64141d4992b0e6cafd35d67a6a..3b39886c96aa161bf36357baa74b364159b4f315 100644 (file)
@@ -302,7 +302,7 @@ $$ LANGUAGE pltcl;
         If the command is a <command>SELECT</> statement and no <replaceable>loop-body</>
         script is given, then only the first row of results are stored into
         Tcl variables; remaining rows, if any, are ignored.  No storing occurs
-        if the 
+        if the
         query returns no rows.  (This case can be detected by checking the
         result of <function>spi_exec</function>.)  For example:
 <programlisting>
@@ -763,7 +763,7 @@ CREATE TRIGGER trig_mytab_modcount BEFORE INSERT OR UPDATE ON mytab
      different function definitions as long as the number of arguments or their types
      differ. Tcl, however, requires all procedure names to be distinct.
      PL/Tcl deals with this by making the internal Tcl procedure names contain
-     the object 
+     the object
      ID of the function from the system table <structname>pg_proc</> as part of their name. Thus,
      <productname>PostgreSQL</productname> functions with the same name
      and different argument types will be different Tcl procedures, too.  This
index 5704d3f897a02b99d5d27b8551643b87997bbf16..11ddbf534dcff2215dc197b85ff37ebd7050a45e 100644 (file)
@@ -8,7 +8,7 @@
   hear about it. Your bug reports play an important part in making
   <productname>PostgreSQL</productname> more reliable because even the utmost
   care cannot guarantee that every part of
-  <productname>PostgreSQL</productname> 
+  <productname>PostgreSQL</productname>
   will work on every platform under every circumstance.
  </para>
 
    message, perhaps parts of the error message.
   </para>
 
-  <para> 
+  <para>
    Another method is to fill in the bug report web-form available
    at the project's
    <ulink url="http://www.postgresql.org/">web site</ulink>.
    reported privately to <email>[email protected]</email>.
   </para>
 
-  <para> 
+  <para>
    Do not send bug reports to any of the user mailing lists, such as
    <email>[email protected]</email> or
    <email>[email protected]</email>.
index 4f5d401ae88a1cce0d2130a7c8631d3948831d17..2bfc724be50dd6efbab83f7b1bdc9108913ddc25 100644 (file)
@@ -30,7 +30,7 @@ ABORT [ WORK | TRANSACTION ]
 
   <para>
    <command>ABORT</command> rolls back the current transaction and causes
-   all the updates made by the transaction to be discarded. 
+   all the updates made by the transaction to be discarded.
    This command is identical
    in behavior to the standard <acronym>SQL</acronym> command
    <xref linkend="SQL-ROLLBACK">,
index ae99f89856123b4aab164f157672b2726f16070f..618c432a79474198e1512e1753499f6d4e56faae 100644 (file)
@@ -13,8 +13,8 @@ PostgreSQL documentation
  <refnamediv>
   <refname>ALTER AGGREGATE</refname>
   <refpurpose>change the definition of an aggregate function</refpurpose>
- </refnamediv>  
-  
+ </refnamediv>
+
  <indexterm zone="sql-alteraggregate">
   <primary>ALTER AGGREGATE</primary>
  </indexterm>
@@ -26,7 +26,7 @@ ALTER AGGREGATE <replaceable>name</replaceable> ( <replaceable>type</replaceable
 ALTER AGGREGATE <replaceable>name</replaceable> ( <replaceable>type</replaceable> [ , ... ] ) SET SCHEMA <replaceable>new_schema</replaceable>
 </synopsis>
  </refsynopsisdiv>
-  
+
  <refsect1>
   <title>Description</title>
 
@@ -47,7 +47,7 @@ ALTER AGGREGATE <replaceable>name</replaceable> ( <replaceable>type</replaceable
    aggregate function anyway.)
   </para>
  </refsect1>
-  
+
  <refsect1>
   <title>Parameters</title>
 
index 63ff3b2ad2b7946b664ee2b9859326d8fa34283e..0ad8fff18263ec51ed6f92e984774ad86f611434 100644 (file)
@@ -13,8 +13,8 @@ PostgreSQL documentation
  <refnamediv>
   <refname>ALTER CONVERSION</refname>
   <refpurpose>change the definition of a conversion</refpurpose>
- </refnamediv>  
-  
+ </refnamediv>
+
  <indexterm zone="sql-alterconversion">
   <primary>ALTER CONVERSION</primary>
  </indexterm>
@@ -25,7 +25,7 @@ ALTER CONVERSION <replaceable>name</replaceable> RENAME TO <replaceable>new_name
 ALTER CONVERSION <replaceable>name</replaceable> OWNER TO <replaceable>new_owner</replaceable>
 </synopsis>
  </refsynopsisdiv>
-  
+
  <refsect1>
   <title>Description</title>
 
@@ -44,7 +44,7 @@ ALTER CONVERSION <replaceable>name</replaceable> OWNER TO <replaceable>new_owner
    anyway.)
   </para>
  </refsect1>
-  
+
  <refsect1>
   <title>Parameters</title>
 
index cd36d52467d761fe34e3f134695fb3ea179604be..5a975adf5c1c1af2d646728639e815a24b6bc587 100644 (file)
@@ -51,7 +51,7 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> RESET ALL
   <para>
    The first form changes certain per-database settings.  (See below for
    details.)  Only the database owner or a superuser can change these settings.
-  </para> 
+  </para>
 
   <para>
    The second form changes the name of the database.  Only the database
@@ -114,7 +114,7 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> RESET ALL
         to this database.  -1 means no limit.
        </para>
       </listitem>
-     </varlistentry> 
+     </varlistentry>
 
    <varlistentry>
     <term><replaceable>new_name</replaceable></term>
@@ -141,7 +141,7 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> RESET ALL
       The new default tablespace of the database.
      </para>
     </listitem>
-   </varlistentry> 
+   </varlistentry>
 
      <varlistentry>
       <term><replaceable>configuration_parameter</replaceable></term>
@@ -196,7 +196,7 @@ ALTER DATABASE test SET enable_indexscan TO off;
 
  <refsect1>
   <title>Compatibility</title>
-    
+
   <para>
    The <command>ALTER DATABASE</command> statement is a
    <productname>PostgreSQL</productname> extension.
index 372079144928570916f0fbc8833b035abfb0cef1..2a5a935edcd0ac3c7992b49848370f9eb875a9d3 100644 (file)
@@ -32,9 +32,9 @@ ALTER DOMAIN <replaceable class="PARAMETER">name</replaceable>
 ALTER DOMAIN <replaceable class="PARAMETER">name</replaceable>
     DROP CONSTRAINT <replaceable class="PARAMETER">constraint_name</replaceable> [ RESTRICT | CASCADE ]
 ALTER DOMAIN <replaceable class="PARAMETER">name</replaceable>
-    OWNER TO <replaceable class="PARAMETER">new_owner</replaceable> 
+    OWNER TO <replaceable class="PARAMETER">new_owner</replaceable>
 ALTER DOMAIN <replaceable class="PARAMETER">name</replaceable>
-    SET SCHEMA <replaceable class="PARAMETER">new_schema</replaceable> 
+    SET SCHEMA <replaceable class="PARAMETER">new_schema</replaceable>
 </synopsis>
  </refsynopsisdiv>
 
@@ -247,7 +247,7 @@ ALTER DOMAIN zipcode SET SCHEMA customers;
 
  <refsect1 id="SQL-ALTERDOMAIN-compatibility">
   <title>Compatibility</title>
-    
+
&nb