Thread: pgsql: Allow casting a table's row type to the table's supertype if it'

pgsql: Allow casting a table's row type to the table's supertype if it'

From
Peter Eisentraut
Date:
Allow casting a table's row type to the table's supertype if it's a typed table

This is analogous to the existing facility that allows casting a row type to a
supertable's row type.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=6a208aa40438652e2f3129a63af5d08ae53d9398

Modified Files
--------------
src/backend/parser/parse_coerce.c         |   39 +++++++++++++++++++++++++++-
src/test/regress/expected/typed_table.out |   15 +++++++++++
src/test/regress/sql/typed_table.sql      |   12 +++++++++
3 files changed, 64 insertions(+), 2 deletions(-)