Re: Is a SERIAL column a "black box", or not? - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Is a SERIAL column a "black box", or not?
Date
Msg-id 87vesp2mcp.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Is a SERIAL column a "black box", or not?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Is a SERIAL column a "black box", or not?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> One argument against it is that it'd break trying to log who-did-what
> by the expedient of having a column default CURRENT_USER:
>     blame_me text default current_user

No reason there couldn't be a separate function that returns the _actual_ user
rather than the effective user. Sort of like -- well actually the unix
precedents here are more confusing than helpful.


-- 
greg



pgsql-hackers by date:

Previous
From: "Jonah H. Harris"
Date:
Subject: Re: InsertXLogFile in pg_resetxlog
Next
From: Tom Lane
Date:
Subject: Re: Is a SERIAL column a "black box", or not?