losing schema name in pg_dump - Mailing list pgsql-general

From c k
Subject losing schema name in pg_dump
Date
Msg-id CAN2Y=uOekJyn8i4rONN0SOCTZhFFJ0i+VLkkNFyEKGQYVKZEsA@mail.gmail.com
Whole thread Raw
Responses Re: losing schema name in pg_dump
List pgsql-general
Hi all,

Many times I have to dump all objects from a schema (single schema holding only functions and views) in plain text format. It is found that pg_dump includes a set search_path statement at the beginning and drops all occurrences of the schema name (to which dumped object belongs) from function/view bodies even if they are explicitly defined while creating functions/views.

Functions or view definition from information_schema tables shows the explicitly defined schema names but pg_dump does not shows them. Is there any switch to change this behaviour? Or pg_dump has this by default and we can not change this?
This makes it problematic to maintain the software available for another RDBMS as for most other RDBMS we have to explicitly define schema names always.

Thanks,

C P Kulkarni


pgsql-general by date:

Previous
From: c k
Date:
Subject: Re: suggestion for backup (pg_dump)
Next
From: John Townsend
Date:
Subject: Re: Libpq question