Re: COPY FREEZE has no warning
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>, Andres Freund <andres@2ndquadrant.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2013-01-25T17:42:49Z
Lists: pgsql-hackers
On Fri, Jan 25, 2013 at 11:59 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Bruce Momjian <bruce@momjian.us> writes: >> On Fri, Jan 25, 2013 at 02:48:37AM +0100, Andres Freund wrote: >>> FWIW, and I won't annoy anyone further after this email, now that its >>> deterministic, I still think that this should be an ERROR not a WARNING. > >> As the FREEZE is just an optimization, I thought NOTICE, vs WARNING or >> ERROR was fine. If others want this changed, please reply. > > The previous argument about it was "if you bothered to specify FREEZE, > you probably really want/need that behavior". So I can definitely see > Andres' point. Perhaps WARNING would be a suitable compromise? I'll vote for ERROR. I don't see why this sound be a best-effort thing. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company