Re: lock listing

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: lock listing
Date: 2002-07-23 21:52:39
Message-ID: 200207232152.g6NLqdW06184@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Neil Conway wrote:
> On Fri, Jul 19, 2002 at 05:15:43PM -0400, Tom Lane wrote:
> > nconway(at)klamath(dot)dyndns(dot)org (Neil Conway) writes:
> > > On Fri, Jul 19, 2002 at 01:21:10PM -0400, Tom Lane wrote:
> > >> I'm very unthrilled with this approach to faking up a composite type
> > >> for pg_show_locks to return.
> >
> > > As am I, and I agree that the proper long-term answer is some new
> > > infrastructure for adding builtin SRFs. However, I don't think that's
> > > a really good reason for rejecting the patch --
> >
> > I'm not wanting to reject the patch; I'm wanting to restructure it as
> > additions to lmgr.c plus a contrib module that includes the API function
> > and perhaps some sample views. The contrib module's install script
> > could avoid these pesky problems because it can just CREATE a dummy
> > table or view and then CREATE the function. Once we have a better
> > answer about declaring built-in SRFs, we can migrate the code into the
> > core.
>
> Personally, that doesn't strike me as a lot cleaner than just putting
> the code into the core in the first place. Since the changes to adapt
> the SRF to a new composite type scheme would be trivial (less than
> 20 lines of changes, probably less), I'd personally vote to include it
> in the core, and put up with a little bit of ugliness in initdb until
> we get a proper solution.

Agreed. We are not running a beauty context here. It is a TODO item
and users want it. Get it to into the core and fix it when the SRF API
improves.

I agree with Peter that it is better to rename it pg_lock*. The show
isn't needed and it makes it look more like our other system info
tables. Please resubmit your patch. Thanks.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2002-07-23 22:02:30 Re: More heap tuple header fixes
Previous Message Hannu Krosing 2002-07-23 19:56:39 Re: [PATCHES] Demo patch for DROP COLUMN