Re: two bugs - Mailing list pgsql-bugs

From Tomas Vondra
Subject Re: two bugs
Date
Msg-id 5dfefe9d-c03b-d831-2a16-8baa61d18b46@enterprisedb.com
Whole thread Raw
In response to two bugs  ("zhxpgh" <zhxpgh@foxmail.com>)
List pgsql-bugs
I don't think any of this a bug, it's the expected behavior. It would be
better if you also shared some reasoning why you think these are bugs.

1) DISABLE TRIGGER ALL disables all triggers, including those for
referential integrity. So it's not surprising some of the data violates
the FK on restore.

2) Similarly for the materialized view - you create a unique index on
the MV at a point when there's no duplicates. But then you insert data
into the source tables. If you tried to refresh the MV at this point,
it'd fail - which is expected. And restore first loads all the data and
then builds the materialized view. We don't have the capability to
dump/restore the MV data directly, we have to run the query.


regards

-- 
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: BUG #17744: Fail Assert while recoverying from pg_basebackup
Next
From: Dean Rasheed
Date:
Subject: Re: BUG #17803: Rule "ALSO INSERT ... SELECT ..." fails to substitute default values