Re: pg_dump does not include database-level user-defined GUC variables? - Mailing list pgsql-general

From Kevin Grittner
Subject Re: pg_dump does not include database-level user-defined GUC variables?
Date
Msg-id 1410881942.61500.YahooMailNeo@web122301.mail.ne1.yahoo.com
Whole thread Raw
In response to pg_dump does not include database-level user-defined GUC variables?  (Abelard Hoffman <abelardhoffman@gmail.com>)
Responses Re: pg_dump does not include database-level user-defined GUC variables?
List pgsql-general
Abelard Hoffman <abelardhoffman@gmail.com> wrote:

> I have a user-defined GUC variable that was set at the db level. e.g.,
>
>   ALTER DATABASE mydb SET myapp.user_id TO '1'
>
> Works fine. When I do a pg_dump, however, that variable isn't included.
> Is that expected? It's not really an attribute of the database?

That sort of information *about the database* is stored at the
cluster level, not in the database itself.  Take a look at
pg_dumpall.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-general by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Sequences in foreign tables
Next
From: Pavel Stehule
Date:
Subject: Re: pg_dump does not include database-level user-defined GUC variables?