Re: Have \d show child tables that inherit from the specified parent

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "damien(at)dalibo(dot)info" <damien(at)dalibo(dot)info>, Greg Sabino Mullane <greg(at)turnstep(dot)com>
Subject: Re: Have \d show child tables that inherit from the specified parent
Date: 2009-07-07 19:06:48
Message-ID: 200907072206.49857.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tuesday 07 July 2009 19:35:54 Tom Lane wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> > On Sunday 10 May 2009 03:05:48 damien(at)dalibo(dot)info wrote:
> >> Here's a second version. Main changes are :
> >>
> >> * Child tables are sorted by name
> >> * \d only shows the number of child tables
> >> * \d+ shows the full list
> >
> > Committed.
>
> I looked at this patch. I'm a bit disturbed by the
> ORDER BY c.oid::pg_catalog.regclass
> business. I doubt that does what the author thinks, and I'm not sure
> what we really want anyway. If we want the child table names sorted
> alphabetically then the regclass value needs to be further cast to text,
> ie
> ORDER BY c.oid::pg_catalog.regclass::pg_catalog.text

Fixed; it was clearly meant to be by name.

Creation order might be useful, but we don't really support that anywhere
else.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David E. Wheeler 2009-07-07 19:09:21 Re: Maintenance Policy?
Previous Message Heikki Linnakangas 2009-07-07 19:00:02 Re: Re: Synch Rep: direct transfer of WAL file from the primary to the standby