]> granicus.if.org Git - postgresql/commit
Revert addition of third argument to format_type().
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 10 Mar 2011 22:30:18 +0000 (17:30 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 10 Mar 2011 22:30:46 +0000 (17:30 -0500)
commit7564654adf07ec26b83c7effc7f54f7183e04519
tree0c532167c51cba9e1ae963762594402dcf834dcc
parent551c07d84ae2f0d3b7dde68e52322edf9cb87ba5
Revert addition of third argument to format_type().

Including collation in the behavior of that function promotes a world view
we do not want.  Moreover, it was producing the wrong behavior for pg_dump
anyway: what we want is to dump a COLLATE clause on attributes whose
attcollation is different from the underlying type, and likewise for
domains, and the function cannot do that for us.  Doing it the hard way
in pg_dump is a bit more tedious but produces more correct output.

In passing, fix initdb so that the initial entry in pg_collation is
properly pinned.  It was droppable before :-(
doc/src/sgml/func.sgml
src/backend/catalog/system_views.sql
src/backend/utils/adt/format_type.c
src/bin/initdb/initdb.c
src/bin/pg_dump/common.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h