Re: Remaining beta blockers - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Remaining beta blockers
Date
Msg-id 1367267187.42164.YahooMailNeo@web162903.mail.bf1.yahoo.com
Whole thread Raw
In response to Re: Remaining beta blockers  (Stephen Frost <sfrost@snowman.net>)
Responses Re: Remaining beta blockers
List pgsql-hackers
Stephen Frost <sfrost@snowman.net> wrote:

> what happens when an admin figures out that they can 'hack' the
> system to do what they want by truncating that file?

If they modified the heap files that way while the server was
running, the results would be somewhat unpredictable.  If they did
it while the server was stopped, starting the server and attempting
to access the matview would generate:

ERROR:  materialized view "matview_name" has not been populated
HINT:  Use the REFRESH MATERIALIZED VIEW command.

> Or we end up wanting to have that file be non-zero and considered
> 'empty' later, but we don't want pg_upgrade running around
> touching all of the existing files out there?

I didn't follow this one; could you restate it, please?

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



pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Re: Analyzing bug 8049
Next
From: Jim Nasby
Date:
Subject: Re: Proposal to add --single-row to psql