Re: Can pg_dump make use of CURRENT/SESSION_USER - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Can pg_dump make use of CURRENT/SESSION_USER
Date
Msg-id 20150429161444.GH4369@alvh.no-ip.org
Whole thread Raw
In response to Re: Can pg_dump make use of CURRENT/SESSION_USER  (Fabrízio de Royes Mello <fabriziomello@gmail.com>)
Responses Re: Can pg_dump make use of CURRENT/SESSION_USER
List pgsql-hackers
Fabrízio de Royes Mello wrote:
> 
> Looking at the patch again I realize the code is very ugly, so I'll rework
> the patch.

Yes, I think get_object_address should figure out what to do with the
representation of CURRENT DATABASE directly, rather than having the
COMMENT code morph from that into a list containing the name of the
current database.  Please see about changing SECURITY LABEL at the same
time, if only to make sure that the representation is sane.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: FIX : teach expression walker about RestrictInfo
Next
From: David Steele
Date:
Subject: Re: Proposal: knowing detail of config files via SQL