Re: nested xacts: update password file

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>, Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: nested xacts: update password file
Date: 2004-07-12 18:18:40
Message-ID: 200407121818.i6CIIeb21867@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Alvaro, you call GetParentTransactionId(), but I see not definition for
> > it in the code.
>
> It looks like Alvaro forgot to include diffs for xact.c in that patch.
> I imagine what he had in mind was to add such a function to xact.c.
>
> I would like to counsel *not* doing that, mainly because it wouldn't
> have any well-defined result when not inside a subxact. What we are
> doing for other end-of-subxact functions is to pass the parent XID
> explicitly as a parameter; it seems best to me to adopt that approach
> for the password function too.
>
> Another minor gripe is the comment that says this logic matches inval.c;
> that's not true anymore, I think.
>
> Other than that the patch looks okay to me, but I'll wait for Alvaro
> to submit a combined patch rather than adjusting xact.c underneath him.

Alvaro is resubmitting.

> A todo item for you, Bruce, is to put back the missing documentation
> that Alvaro complained of:
>
> >> Something that bugged me a lot is that I tried to find the format of the
> >> file for testing the patch, and I couldn't find anything anywhere in the
> >> docs. Apparently the docs for the file were ripped with the docs for
> >> the pg_passwd utility when it was ripped before the 7.3 release.

I was confused by this. What docs for the password file did we have?

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2004-07-12 18:29:41 Re: nested xacts: update password file
Previous Message Tom Lane 2004-07-12 18:06:26 Re: nested xacts: update password file