postgresql/src/include/catalog
Tom Lane 31edbadf4a Downgrade implicit casts to text to be assignment-only, except for the ones
from the other string-category types; this eliminates a lot of surprising
interpretations that the parser could formerly make when there was no directly
applicable operator.

Create a general mechanism that supports casts to and from the standard string
types (text,varchar,bpchar) for *every* datatype, by invoking the datatype's
I/O functions.  These new casts are assignment-only in the to-string direction,
explicit-only in the other, and therefore should create no surprising behavior.
Remove a bunch of thereby-obsoleted datatype-specific casting functions.

The "general mechanism" is a new expression node type CoerceViaIO that can
actually convert between *any* two datatypes if their external text
representations are compatible.  This is more general than needed for the
immediate feature, but might be useful in plpgsql or other places in future.

This commit does nothing about the issue that applying the concatenation
operator || to non-text types will now fail, often with strange error messages
due to misinterpreting the operator as array concatenation.  Since it often
(not always) worked before, we should either make it succeed or at least give
a more user-friendly error; but details are still under debate.

Peter Eisentraut and Tom Lane
2007-06-05 21:31:09 +00:00
..
catalog.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
catversion.h Downgrade implicit casts to text to be assignment-only, except for the ones 2007-06-05 21:31:09 +00:00
dependency.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
duplicate_oids Change the bootstrap sequence so that toast tables for system catalogs are 2006-07-31 01:16:38 +00:00
heap.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
index.h Have TRUNCATE advance the affected table's relfrozenxid to RecentXmin, to 2007-05-16 17:28:20 +00:00
indexing.h Support enum data types. Along the way, use macros for the values of 2007-04-02 03:49:42 +00:00
namespace.h Fixes for RESET SESSION patch, per Alvaro. Fix a typo in the RESET 2007-04-12 22:34:45 +00:00
pg_aggregate.h Support enum data types. Along the way, use macros for the values of 2007-04-02 03:49:42 +00:00
pg_am.h Make 'col IS NULL' clauses be indexable conditions. 2007-04-06 22:33:43 +00:00
pg_amop.h Add a hash function for "numeric". Mark the equality operator for 2007-05-08 18:56:48 +00:00
pg_amproc.h Add a hash function for "numeric". Mark the equality operator for 2007-05-08 18:56:48 +00:00
pg_attrdef.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pg_attribute.h Support arrays of composite types, including the rowtypes of regular tables 2007-05-11 17:57:14 +00:00
pg_auth_members.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pg_authid.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pg_autovacuum.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pg_cast.h Downgrade implicit casts to text to be assignment-only, except for the ones 2007-06-05 21:31:09 +00:00
pg_class.h Support arrays of composite types, including the rowtypes of regular tables 2007-05-11 17:57:14 +00:00
pg_constraint.h Fix up foreign-key mechanism so that there is a sound semantic basis for the 2007-02-14 01:58:58 +00:00
pg_control.h To support external compression of archived WAL data, add a flag bit to 2007-05-20 21:08:19 +00:00
pg_conversion.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pg_database.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pg_depend.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pg_description.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pg_enum.h Support enum data types. Along the way, use macros for the values of 2007-04-02 03:49:42 +00:00
pg_index.h Support ORDER BY ... NULLS FIRST/LAST, and add ASC/DESC/NULLS FIRST/NULLS LAST 2007-01-09 02:14:16 +00:00
pg_inherits.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pg_language.h Allow non-superuser database owners to create procedural languages. 2007-03-26 16:58:41 +00:00
pg_largeobject.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pg_listener.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pg_namespace.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pg_opclass.h Add a hash function for "numeric". Mark the equality operator for 2007-05-08 18:56:48 +00:00
pg_operator.h Add a hash function for "numeric". Mark the equality operator for 2007-05-08 18:56:48 +00:00
pg_opfamily.h Add a hash function for "numeric". Mark the equality operator for 2007-05-08 18:56:48 +00:00
pg_pltemplate.h Allow non-superuser database owners to create procedural languages. 2007-03-26 16:58:41 +00:00
pg_proc.h Downgrade implicit casts to text to be assignment-only, except for the ones 2007-06-05 21:31:09 +00:00
pg_rewrite.h Changes pg_trigger and extend pg_rewrite in order to allow triggers and 2007-03-19 23:38:32 +00:00
pg_shdepend.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pg_shdescription.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pg_statistic.h Reserve some pg_statistic "kind" codes for use by the ESRI ST_Geometry 2007-05-08 19:13:52 +00:00
pg_tablespace.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pg_trigger.h Changes pg_trigger and extend pg_rewrite in order to allow triggers and 2007-03-19 23:38:32 +00:00
pg_type.h Fix the problem that creating a user-defined type named _foo, followed by one 2007-05-12 00:55:00 +00:00
toasting.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
unused_oids Change the bootstrap sequence so that toast tables for system catalogs are 2006-07-31 01:16:38 +00:00