diff options
author | Thomas G. Lockhart <lockhart@fourpalms.org> | 1998-09-25 13:36:08 +0000 |
---|---|---|
committer | Thomas G. Lockhart <lockhart@fourpalms.org> | 1998-09-25 13:36:08 +0000 |
commit | ee88006cf212c68f430db9aeb32ddaacb540daa7 (patch) | |
tree | 6dadccc2c90b912204d213df868649cac33f2629 /src/backend/parser/parse_func.c | |
parent | 2df146575732d658d03ebf864495c8358ed06449 (diff) | |
download | postgresql-ee88006cf212c68f430db9aeb32ddaacb540daa7.tar.gz postgresql-ee88006cf212c68f430db9aeb32ddaacb540daa7.zip |
Clean up code in analyze.c for SERIAL data type.
Remove _all_ PARSEDEBUG print statements.
Diffstat (limited to 'src/backend/parser/parse_func.c')
-rw-r--r-- | src/backend/parser/parse_func.c | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/src/backend/parser/parse_func.c b/src/backend/parser/parse_func.c index 99c4b754b01..9428d55a0fc 100644 --- a/src/backend/parser/parse_func.c +++ b/src/backend/parser/parse_func.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.28 1998/09/01 04:30:31 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.29 1998/09/25 13:36:04 thomas Exp $ * *------------------------------------------------------------------------- */ @@ -672,34 +672,22 @@ func_select_candidate(int nargs, if ((nmatch + nident) == nargs) return current_candidate->args; -#ifdef PARSEDEBUG - printf("func_select_candidate- candidate has %d matches\n", nmatch); -#endif if ((nmatch > nbestMatch) || (last_candidate == NULL)) { nbestMatch = nmatch; candidates = current_candidate; last_candidate = current_candidate; ncandidates = 1; -#ifdef PARSEDEBUG - printf("func_select_candidate- choose candidate as best match\n"); -#endif } else if (nmatch == nbestMatch) { last_candidate->next = current_candidate; last_candidate = current_candidate; ncandidates++; -#ifdef PARSEDEBUG - printf("func_select_candidate- choose candidate as possible match\n"); -#endif } else { last_candidate->next = NULL; -#ifdef PARSEDEBUG - printf("func_select_candidate- reject candidate as possible match\n"); -#endif } } @@ -727,17 +715,10 @@ func_select_candidate(int nargs, { slot_category = current_category; slot_type = current_type; -#ifdef PARSEDEBUG - printf("func_select_candidate- assign column #%d first candidate slot type %s\n", - i, typeidTypeName(current_type)); -#endif } else if ((current_category != slot_category) && IS_BUILTIN_TYPE(current_type)) { -#ifdef PARSEDEBUG - printf("func_select_candidate- multiple possible types for column #%d; unable to choose candidate\n", i); -#endif return NULL; } else if (current_type != slot_type) @@ -746,17 +727,9 @@ func_select_candidate(int nargs, { slot_type = current_type; candidates = current_candidate; -#ifdef PARSEDEBUG - printf("func_select_candidate- column #%d found preferred candidate type %s\n", - i, typeidTypeName(slot_type)); -#endif } else { -#ifdef PARSEDEBUG - printf("func_select_candidate- column #%d found possible candidate type %s\n", - i, typeidTypeName(current_type)); -#endif } } } @@ -764,18 +737,10 @@ func_select_candidate(int nargs, if (slot_type != InvalidOid) { input_typeids[i] = slot_type; -#ifdef PARSEDEBUG - printf("func_select_candidate- assign column #%d slot type %s\n", - i, typeidTypeName(input_typeids[i])); -#endif } } else { -#ifdef PARSEDEBUG - printf("func_select_candidate- column #%d input type is %s\n", - i, typeidTypeName(input_typeids[i])); -#endif } } |