From 0390298d5f844b624f782e8ce3ef1855d9b5fd38 Mon Sep 17 00:00:00 2001 From: Eduardo Perez Ureta Date: Thu, 12 Oct 2017 21:25:09 +0000 Subject: [PATCH] Removing parameter type check to fix this issue: http://www.postgresql-archive.org/Regression-Problems-with-Timestamp-arguments-td5770255.html --- src/backend/tcop/postgres.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 2c7260e564bf2..be306d318705a 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -1361,20 +1361,6 @@ exec_parse_message(const char *query_string, /* string to execute */ ¶mTypes, &numParams); - /* - * Check all parameter types got determined. - */ - for (i = 0; i < numParams; i++) - { - Oid ptype = paramTypes[i]; - - if (ptype == InvalidOid || ptype == UNKNOWNOID) - ereport(ERROR, - (errcode(ERRCODE_INDETERMINATE_DATATYPE), - errmsg("could not determine data type of parameter $%d", - i + 1))); - } - if (log_parser_stats) ShowUsage("PARSE ANALYSIS STATISTICS");