pg_type defaults - Mailing list pgsql-hackers

From Rod Taylor
Subject pg_type defaults
Date
Msg-id 059601c1ba20$8d826f60$8001a8c0@jester
Whole thread Raw
Responses Re: pg_type defaults  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-hackers
According to the system table documentation
http://developer.postgresql.org/docs/postgres/catalog-pg-type.html the
typdefault information is to be copied from the pg_type value to the
table value when the default specified is NULL or a default is not
specified.

The below shows that it's not to be true.


junk=# update pg_type set typdefault = 3 where typname = 'int2';
UPDATE 1
junk=# create table example (col1 int2);
CREATE
junk=# \d example       Table "example"Column |   Type   | Modifiers
--------+----------+-----------col1   | smallint |






--
Rod Taylor

Your eyes are weary from staring at the CRT. You feel sleepy. Notice
how restful it is to watch the cursor blink. Close your eyes. The
opinions stated above are yours. You cannot imagine why you ever felt
otherwise.




pgsql-hackers by date:

Previous
From: Jean-Michel POURE
Date:
Subject: Re: UTF-8 data migration problem in Postgresql 7.2
Next
From: Tatsuo Ishii
Date:
Subject: Re: UTF-8 data migration problem in Postgresql 7.2