| From: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
|---|---|
| To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
| Cc: | Patches <pgsql-patches(at)postgresql(dot)org> |
| Subject: | Re: [Fwd: Make psql use all pretty print options] |
| Date: | 2003-10-10 04:42:50 |
| Message-ID: | 3F8638CA.7010209@familyhealth.com.au |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-patches |
> Uh, I can't apply this to 7.4 unless you can get others to agree it
> should be added. Sorry.
OK, for reviewers. Note the index predicate and the check constraint in
particular.
With patch:
test=# \d example
Table "public.example"
Column | Type | Modifiers
--------+---------+--------------------------------------------------------
a | integer | not null default nextval('public.example_a_seq'::text)
b | integer |
c | integer |
d | boolean |
Indexes:
"example_pkey" PRIMARY KEY, btree (a)
"example_b_key" UNIQUE, btree (b)
"example_idx" btree (abs(a)) WHERE c > 11
Check constraints:
"example_d" CHECK (d)
Foreign-key constraints:
"$1" FOREIGN KEY (c) REFERENCES parent(a)
Rules:
example_rule AS
ON INSERT TO example DO INSTEAD NOTHING
Without patch:
test=# \d example
Table "public.example"
Column | Type | Modifiers
--------+---------+--------------------------------------------------------
a | integer | not null default nextval('public.example_a_seq'::text)
b | integer |
c | integer |
d | boolean |
Indexes:
"example_pkey" primary key, btree (a)
"example_b_key" unique, btree (b)
"example_idx" btree (abs(a)) WHERE (c > 11)
Check constraints:
"example_d" CHECK d
Foreign-key constraints:
"$1" FOREIGN KEY (c) REFERENCES parent(a)
Rules:
example_rule AS ON INSERT TO example DO INSTEAD NOTHING
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Christopher Kings-Lynne | 2003-10-10 04:43:56 | Re: [Fwd: Make psql use all pretty print options] |
| Previous Message | Dennis Bjorklund | 2003-10-10 04:10:33 | Re: [Fwd: Make psql use all pretty print options] |