Search Postgresql Archives

search_path in pg_dump output.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

we are using pg_dump output to compare the schema consistency. But after upgrade to postgres 11.5 we are seeing different behavior of pg_dump intermittently.  As per the https://github.com/postgres/postgres/commit/582edc369cdbd348d68441fc50fa26a84afd0c1a pg_dump should reset the schema path to empty and generate fully qualified table names which is not happening in intermittent case.  Same can be seen on multiple different servers and many users are impacted due to this. Please help me to understand this behavior difference. Also, If possible please let me know if it is bug or some configuration issue.


we have default search_path value in postgresql.conf file.
issue appear 1/5
Command used to dump schema:
pg_dump.exe --file=D:\ schmdmp_tmp --no-owner --no-tablespaces --schema=hpdpidb_app --schema-only --password --username=xyz --port=xxxx --host=localhost db_xyz

In normal cases:

-- Dumped from database version 11.5

-- Dumped by pg_dump version 11.5

 

SET statement_timeout = 0;

SET lock_timeout = 0;

SET idle_in_transaction_session_timeout = 0;

SET client_encoding = 'UTF8';

SET standard_conforming_strings = on;

SELECT pg_catalog.set_config('search_path', '', false);


CREATE VIEW hpdpidb_app.dp_cartridges AS

SELECT crt.uuid

   FROM hpdpidb_app.dp_medmng_cartridge crt;

 

Intermittently:

-- Dumped from database version 11.5

-- Dumped by pg_dump version 11.5

 

SET statement_timeout = 0;

SET lock_timeout = 0;

SET idle_in_transaction_session_timeout = 0;

SET client_encoding = 'UTF8';

SET standard_conforming_strings = on;

SELECT pg_catalog.set_config('search_path', 'hpdpidb_app', false);


CREATE VIEW hpdpidb_app.dp_cartridges AS

SELECT crt.uuid

   FROM dp_medmng_cartridge crt;

Thanks,

Neeraj


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux