Relaxing COPY FREEZE restrictions - Mailing list pgsql-hackers

From Simon Riggs
Subject Relaxing COPY FREEZE restrictions
Date
Msg-id CANbhV-HpmBXAqYwiHXV=J4kb=LO5J7hK50nS3kvCwpShGKR52Q@mail.gmail.com
Whole thread Raw
List pgsql-hackers
COPY FREEZE throws ERRORs if you use it inappropriately. This makes it
very hard to use in practice.

ERRORs should be replaced by NOTICEs, or just silence. That treats
FREEZE as an optional performance tweak, which is more appropriate for
its use case.

In particular, the need to throw ERRORs leads us to disallow the
FREEZE option for partitioned tables. It would be better to test each
partition to see if the optimization can be applied at the point we
open each partition. If we can, good. If not, no worries.

If we agree, I can code a patch to do this.

Relaxing this will make it easier to add support for FREEZE into pg_restore.

Thanks

-- 
Simon Riggs                http://www.EnterpriseDB.com/



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Add tests for UNBOUNDED syntax ambiguity
Next
From: Simon Riggs
Date:
Subject: pgbench using COPY FREEZE