From f5ea88ac6e7d927b9d29f5cc44aad4032f20a036 Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Tue, 27 Feb 2001 20:34:10 +0000
Subject: [PATCH] Mark new text<->date, text<->time, text<->timetz conversion
 functions as noncachable, so that CURRENT_DATE and CURRENT_TIME work as
 functions again, rather than being collapsed to constants immediately. 
 Marking the reverse conversions noncachable might be overkill, but I'm not
 sure; do these datatypes have the notion of a CURRENT value?  Better safe
 than sorry, for now.

---
 src/include/catalog/pg_proc.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h
index 5584cb6ac20..492bc832192 100644
--- a/src/include/catalog/pg_proc.h
+++ b/src/include/catalog/pg_proc.h
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_proc.h,v 1.182 2001/01/24 19:43:21 momjian Exp $
+ * $Id: pg_proc.h,v 1.183 2001/02/27 20:34:10 tgl Exp $
  *
  * NOTES
  *	  The script catalog/genbki.sh reads this file and generates .bki
@@ -1258,17 +1258,17 @@ DESCR("horizontal?");
 DATA(insert OID = 999 (  lseg_eq		   PGUID 12 f t t t 2 f 16 "601 601" 100 0 0 100	lseg_eq - ));
 DESCR("equal");
 
-DATA(insert OID =  748 (  date			   PGUID 12 f t t t 1 f	1082 "25" 100 0 0 100 text_date - ));
+DATA(insert OID =  748 (  date			   PGUID 12 f t f t 1 f	1082 "25" 100 0 0 100 text_date - ));
 DESCR("convert text to date");
-DATA(insert OID =  749 (  text			   PGUID 12 f t t t 1 f	25 "1082" 100 0 0 100 date_text - ));
+DATA(insert OID =  749 (  text			   PGUID 12 f t f t 1 f	25 "1082" 100 0 0 100 date_text - ));
 DESCR("convert date to text");
-DATA(insert OID =  837 (  time			   PGUID 12 f t t t 1 f	1083 "25" 100 0 0 100 text_time - ));
-DESCR("convert text to date");
-DATA(insert OID =  948 (  text			   PGUID 12 f t t t 1 f	25 "1083" 100 0 0 100 time_text - ));
+DATA(insert OID =  837 (  time			   PGUID 12 f t f t 1 f	1083 "25" 100 0 0 100 text_time - ));
+DESCR("convert text to time");
+DATA(insert OID =  948 (  text			   PGUID 12 f t f t 1 f	25 "1083" 100 0 0 100 time_text - ));
 DESCR("convert time to text");
-DATA(insert OID =  938 (  timetz		   PGUID 12 f t t t 1 f	1266 "25" 100 0 0 100 text_timetz - ));
-DESCR("convert text to date");
-DATA(insert OID =  939 (  text			   PGUID 12 f t t t 1 f	25 "1266" 100 0 0 100 timetz_text - ));
+DATA(insert OID =  938 (  timetz		   PGUID 12 f t f t 1 f	1266 "25" 100 0 0 100 text_timetz - ));
+DESCR("convert text to timetz");
+DATA(insert OID =  939 (  text			   PGUID 12 f t f t 1 f	25 "1266" 100 0 0 100 timetz_text - ));
 DESCR("convert timetz to text");
 
 /* OIDS 1000 - 1999 */
-- 
GitLab