Mark new text<->date, text<->time, text<->timetz conversion functions as
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 27 Feb 2001 20:34:10 +0000 (20:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 27 Feb 2001 20:34:10 +0000 (20:34 +0000)
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

index ed7ed2b97095d76968c2e3a70510a243117f1786..aa582789f9395845809f157fd3a3e9e91358c9b8 100644 (file)
@@ -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 */