diff options
-rw-r--r-- | src/bin/initdb/initdb.c | 1 | ||||
-rw-r--r-- | src/include/utils/timestamp.h | 2 | ||||
-rw-r--r-- | src/test/regress/expected/polymorphism.out | 3 | ||||
-rw-r--r-- | src/test/regress/sql/polymorphism.sql | 3 |
4 files changed, 4 insertions, 5 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index acd251415d..f6cf377282 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -2635,7 +2635,6 @@ main(int argc, char *argv[]) if (strcmp(authmethod, "md5") && strcmp(authmethod, "ident") && - strncmp(authmethod, "ident ", 6) && /* ident with space = param */ strcmp(authmethod, "trust") && #ifdef USE_PAM strcmp(authmethod, "pam") && diff --git a/src/include/utils/timestamp.h b/src/include/utils/timestamp.h index e14285f8a4..9e51b58dde 100644 --- a/src/include/utils/timestamp.h +++ b/src/include/utils/timestamp.h @@ -81,8 +81,6 @@ typedef struct */ #define DAYS_PER_MONTH 30 /* assumes exactly 30 days per month */ #define HOURS_PER_DAY 24 /* assume no daylight savings time changes */ -#define MINS_PER_HOUR 60 /* assume no daylight savings time changes */ -#define SECS_PER_MINUTE 60 /* assume no daylight savings time changes */ /* * This doesn't adjust for uneven daylight savings time intervals or leap diff --git a/src/test/regress/expected/polymorphism.out b/src/test/regress/expected/polymorphism.out index bae04a2719..4d1fc2beb0 100644 --- a/src/test/regress/expected/polymorphism.out +++ b/src/test/regress/expected/polymorphism.out @@ -623,7 +623,8 @@ where histogram_bounds is not null; (1 row) -- such functions must protect themselves if varying element type isn't OK -select max(histogram_bounds) from pg_stats; +-- (WHERE clause here is to avoid possibly getting a collation error instead) +select max(histogram_bounds) from pg_stats where tablename = 'pg_am'; ERROR: cannot compare arrays of different element types -- test variadic polymorphic functions create function myleast(variadic anyarray) returns anyelement as $$ diff --git a/src/test/regress/sql/polymorphism.sql b/src/test/regress/sql/polymorphism.sql index 2baebe9323..50e6905d4c 100644 --- a/src/test/regress/sql/polymorphism.sql +++ b/src/test/regress/sql/polymorphism.sql @@ -433,7 +433,8 @@ select distinct array_ndims(histogram_bounds) from pg_stats where histogram_bounds is not null; -- such functions must protect themselves if varying element type isn't OK -select max(histogram_bounds) from pg_stats; +-- (WHERE clause here is to avoid possibly getting a collation error instead) +select max(histogram_bounds) from pg_stats where tablename = 'pg_am'; -- test variadic polymorphic functions |