[HACKERS] pg_dump does not refresh matviews from extensions - Mailing list pgsql-hackers

From Jim Nasby
Subject [HACKERS] pg_dump does not refresh matviews from extensions
Date
Msg-id b80fd64c-99b7-2a0b-c97b-f2391285f51e@BlueTreble.com
Whole thread Raw
Responses Re: [HACKERS] pg_dump does not refresh matviews from extensions
List pgsql-hackers
I think $SUBJECT is a bug. While it would be unusual for an extension to 
have a matview, it's still allowed, and as it stands right now that view 
won't be refreshed at the end of a restore, unlike other matviews.

I started looking into a patch for this, but I'm not sure of the best 
way to handle it. One possibility is to glom this in with the code that 
handles extension config tables, but that doesn't feel right since 
matviews aren't really config.

Would the best option be to change selectDumpableTable(), but I suspect 
that'd have to use the same "dumpobj" logic that 
processExtensionTables() uses.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [HACKERS] IF (NOT) EXISTS in psql-completion
Next
From: Jim Nasby
Date:
Subject: [HACKERS] Change in "policy" on dump ordering?