From: | Josh Williams <joshwilliams(at)ij(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Quick patch: Display sequence owner |
Date: | 2008-12-09 15:46:24 |
Message-ID: | 1228837584.22132.35.camel@godzilla.local.scalefeather.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, 2008-12-09 at 09:32 -0500, Tom Lane wrote:
> I think the place that such information could most naturally be squeezed
> into psql's \d commands would be to add another type of footer
> information to \dt, eg
>
> Table "foo.bar"
> ...
> Indexes:
> "bari" ...
> Owned sequences:
> "baz" owned by col1
That makes more sense, though isn't that a little repetitive when
"default nextval(...)" is visible immediately above it?
Doesn't guarantee the sequence is owned by the table of course, but I'd
imagine to most people it'd just be noise. Could see it being shown in
the verbose version, \d+ foo.bar.
I certainly like that better than "making up" an nonexistent column. :)
> If you really want to attach the information to the \d output for the
> sequence instead of the table, consider a similar footer-style display
> instead of making it look like something it's not.
For the sequences themselves, it'd be nice to show somewhere, at least
for tracking down stray sequences and identifying relationships.
Perhaps a function to do the reverse of pg_get_serial_sequence()? Or
better yet if no one else is already working on it, a more generic way
to get readable information out of pg_depend?
>
> regards, tom lane
>
- Josh Williams
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2008-12-09 15:52:39 | Windows buildfarm members |
Previous Message | Pavel Stehule | 2008-12-09 15:40:33 | Re: WIP: default values for function parameters |