Commits

Peter Eisentraut committed fc946c3

Remove useless whitespace at end of lines

Comments (0)

Files changed (517)

 PostgreSQL Database Management System
 =====================================
-  
+
 This directory contains the source code distribution of the PostgreSQL
 database management system.
 

config/ac_func_accept_argtypes.m4

 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
 # 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()])
 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
 #
 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
  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
  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
  buffers, else direct I/O may fail.
 
  Changing XLOG_BLCKSZ requires an initdb.
-]) 
+])
 
 #
 # WAL segment size
 # 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
   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
 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
 
 
   #
   # 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
 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)])
 
 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
 
 lo -
 	Large Object maintenance
-	by Peter Mount <peter@retep.org.uk> 
+	by Peter Mount <peter@retep.org.uk>
 
 ltree -
 	Tree-like data structures
 	by Teodor Sigaev <teodor@sigaev.ru> and Oleg Bartunov <oleg@sai.msu.su>
 
-oid2name - 
+oid2name -
 	Maps numeric files to table names
 	by B Palmer <bpalmer@crimelabs.net>
 
 	Functions to get information about SSL certificates
 	by Victor Wagner <vitus@cryptocom.ru>
 
-start-scripts - 
+start-scripts -
 	Scripts for starting the server at boot time on various platforms.
 
 tablefunc -

contrib/btree_gin/Makefile

 # 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

contrib/btree_gin/expected/cidr.out

 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' ),

contrib/btree_gin/expected/date.out

 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' ),

contrib/btree_gin/expected/inet.out

 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' ),

contrib/btree_gin/expected/interval.out

 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' ),

contrib/btree_gin/expected/macaddr.out

 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' ),

contrib/btree_gin/expected/time.out

 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' ),

contrib/btree_gin/expected/timestamp.out

 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' ),

contrib/btree_gin/expected/timestamptz.out

 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' ),

contrib/btree_gin/expected/timetz.out

 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' ),

contrib/btree_gin/sql/cidr.sql

 	i cidr
 );
 
-INSERT INTO test_cidr VALUES 
+INSERT INTO test_cidr VALUES
 	( '1.2.3.4' ),
 	( '1.2.4.4' ),
 	( '1.2.5.4' ),

contrib/btree_gin/sql/date.sql

 	i date
 );
 
-INSERT INTO test_date VALUES 
+INSERT INTO test_date VALUES
 	( '2004-10-23' ),
 	( '2004-10-24' ),
 	( '2004-10-25' ),

contrib/btree_gin/sql/inet.sql

 	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' ),

contrib/btree_gin/sql/interval.sql

 	i interval
 );
 
-INSERT INTO test_interval VALUES 
+INSERT INTO test_interval VALUES
 	( '03:55:08' ),
 	( '04:55:08' ),
 	( '05:55:08' ),

contrib/btree_gin/sql/macaddr.sql

 	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' ),

contrib/btree_gin/sql/time.sql

 	i time
 );
 
-INSERT INTO test_time VALUES 
+INSERT INTO test_time VALUES
 	( '03:55:08' ),
 	( '04:55:08' ),
 	( '05:55:08' ),

contrib/btree_gin/sql/timestamp.sql

 	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' ),

contrib/btree_gin/sql/timestamptz.sql

 	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' ),

contrib/btree_gin/sql/timetz.sql

 	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' ),

contrib/btree_gist/btree_gist.sql.in

 
 -- 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	<= ,
 
 -- 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	<= ,
 
 -- 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	<= ,
 
 -- 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	<= ,
 
 -- 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	<= ,
 
 -- 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	<= ,
 --
 --
 -- timestamp ops
--- 
+--
 --
 --
 
 RETURNS bool
 AS 'MODULE_PATHNAME'
 LANGUAGE C IMMUTABLE STRICT;
-      
+
 CREATE OR REPLACE FUNCTION gbt_ts_compress(internal)
 RETURNS internal
 AS 'MODULE_PATHNAME'
 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'
 
 -- 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	<= ,
 
 -- 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	<= ,
 --
 --
 -- time ops
--- 
+--
 --
 --
 
 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'
 
 -- 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	<= ,
 	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	<=  ,
 --
 --
 -- date ops
--- 
+--
 --
 --
 
 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'
 
 -- 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	<= ,
 --
 --
 -- interval ops
--- 
+--
 --
 --
 
 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'
 
 -- 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	<= ,
 
 -- 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	<= ,
 
 -- 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	<= ,
 
 -- 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	<= ,
 	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	<= ,
 	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_bytea_ops
-DEFAULT FOR TYPE bytea USING gist 
+DEFAULT FOR TYPE bytea USING gist
 AS
 	OPERATOR	1	<  ,
 	OPERATOR	2	<= ,
 	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;
 
 
 --
 
 -- 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	<= ,
 	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;
 
 --
 --
 
 -- 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	<= ,
 	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	<= ,
 	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_inet_ops
-DEFAULT FOR TYPE inet USING gist 
+DEFAULT FOR TYPE inet USING gist
 AS
 	OPERATOR	1	<   ,
 	OPERATOR	2	<=  ,
 
 -- 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),

contrib/btree_gist/uninstall_btree_gist.sql

 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);
 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);
 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);
 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);

contrib/citext/citext.sql.in

 );
 
 --
--- Matching citext to text. 
+-- Matching citext to text.
 --
 
 CREATE OR REPLACE FUNCTION texticlike(citext, text)

contrib/citext/expected/citext.out

     bpchar      bpchar,
     char        char,
     chr         "char",
-    name        name,    
+    name        name,
     bytea       bytea,
     boolean     boolean,
     float4      float4,
     int8        int8,
     int4        int4,
     int2        int2,
-    cidr        cidr,   
+    cidr        cidr,
     inet        inet,
     macaddr     macaddr,
     money       money,

contrib/citext/expected/citext_1.out

     bpchar      bpchar,
     char        char,
     chr         "char",
-    name        name,    
+    name        name,
     bytea       bytea,
     boolean     boolean,
     float4      float4,
     int8        int8,
     int4        int4,
     int2        int2,
-    cidr        cidr,   
+    cidr        cidr,
     inet        inet,
     macaddr     macaddr,
     money       money,

contrib/citext/sql/citext.sql

     bpchar      bpchar,
     char        char,
     chr         "char",
-    name        name,    
+    name        name,
     bytea       bytea,
     boolean     boolean,
     float4      float4,
     int8        int8,
     int4        int4,
     int2        int2,
-    cidr        cidr,   
+    cidr        cidr,
     inet        inet,
     macaddr     macaddr,
     money       money,
 
 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
 

contrib/cube/cube.sql.in

 SET search_path = public;
 
 -- Create the user-defined type for N-dimensional boxes
--- 
+--
 
 CREATE OR REPLACE FUNCTION cube_in(cstring)
 RETURNS cube
 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;
 
 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;
 

contrib/cube/cubeparse.y

           O_BRACKET paren_list COMMA paren_list C_BRACKET {
 
 	    int dim;
-	    
+
 	    dim = delim_count($2, ',') + 1;
 	    if ( (delim_count($4, ',') + 1) != dim ) {
           ereport(ERROR,
 								 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),
                                  CUBE_MAX_DIM)));
               YYABORT;
             }
-	    
+
 	    *((void **)result) = write_box( dim, $1, $3 );
           }
       |
              $$ = palloc(scanbuflen + 1);
 			 strcpy($$, $1);
 	  }
-      | 
+      |
 	  list COMMA CUBEFLOAT {
              $$ = $1;
 	     strcat($$, ",");
       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);
 }
   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;
     x = strtod(s, NULL);
     bp->x[i] = x;
     bp->x[i+dim] = x;
-  }	
+  }
 
   return(bp);
 }

contrib/cube/cubescan.l

 %{
-/* 
-** A scanner for EMP-style numeric ranges 
+/*
+ * A scanner for EMP-style numeric ranges
  * contrib/cube/cubescan.l
-*/
+ */
 
 #include "postgres.h"
 

contrib/cube/expected/cube.out

  (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.
 (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)
  (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)

contrib/cube/expected/cube_1.out

  (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.
 (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)
  (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)

contrib/cube/expected/cube_2.out

  (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.
 (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)
  (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)

contrib/cube/sql/cube.sql

 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.
 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;

contrib/dblink/Makefile

 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
 
 

contrib/dblink/dblink.sql.in

     OUT notify_name TEXT,
     OUT be_pid INT4,
     OUT extra TEXT
-) 
+)
 RETURNS setof record
 AS 'MODULE_PATHNAME', 'dblink_get_notify'
 LANGUAGE C STRICT;
     OUT notify_name TEXT,
     OUT be_pid INT4,
     OUT extra TEXT
-) 
+)
 RETURNS setof record
 AS 'MODULE_PATHNAME', 'dblink_get_notify'
 LANGUAGE C STRICT;

contrib/dblink/expected/dblink.out

  OK
 (1 row)
 
-SELECT * from 
+SELECT * from
  dblink_send_query('dtest1', 'select * from foo where f1 < 3') as t1;
  t1 
 ----
  OK
 (1 row)
 
-SELECT * from 
+SELECT * from
  dblink_send_query('dtest2', 'select * from foo where f1 > 2 and f1 < 7') as t1;
  t1 
 ----
  OK
 (1 row)
 
-SELECT * from 
+SELECT * from
  dblink_send_query('dtest3', 'select * from foo where f1 > 6') as t1;
  t1 
 ----
  OK
 (1 row)
 
-SELECT * from 
+SELECT * from
  dblink_send_query('dtest1', 'select * from foo where f1 < 3') as t1;
  t1 
 ----

contrib/dblink/sql/dblink.sql

 
 -- 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
 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');

contrib/earthdistance/earthdistance.sql.in

   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
 LANGUAGE SQL
 IMMUTABLE STRICT
 AS 'SELECT cube_enlarge($1, gc_to_sec($2), 3)';
-  
+
 --------------- geo_distance
 
 CREATE OR REPLACE FUNCTION geo_distance (point, point)

contrib/fuzzystrmatch/fuzzystrmatch.sql.in

 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;

contrib/hstore/expected/hstore.out

  f
 (1 row)
 
--- delete 
+-- delete
 select delete('a=>1 , b=>2, c=>3'::hstore, 'a');
        delete       
 --------------------