Re: Quick patch: Display sequence owner

From: "Jaime Casanova" <jcasanov(at)systemguards(dot)com(dot)ec>
To: "Josh Williams" <joshwilliams(at)ij(dot)net>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Quick patch: Display sequence owner
Date: 2008-12-09 19:36:31
Message-ID: 3073cc9b0812091136s59282678k150510bb71b05c4e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Dec 9, 2008 at 10:46 AM, Josh Williams <joshwilliams(at)ij(dot)net> wrote:
> 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?
>

actually, when a try your patch i have to look at the code to find
where you put such information... i tried \dt first...

> 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.
>

that's exactly why we want the aditional info... the idea of putting
it on \d+ doesn't sounds too bad... to me at least...

> For the sequences themselves, it'd be nice to show somewhere, at least
> for tracking down stray sequences and identifying relationships.

in \ds maybe

--
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2008-12-09 19:44:15 Re: SSL BIO wrappers
Previous Message Alex Hunsaker 2008-12-09 19:32:35 Re: contrib/pg_stat_statements 1202