Re: COPY FREEZE has no warning - Mailing list pgsql-hackers

From Tom Lane
Subject Re: COPY FREEZE has no warning
Date
Msg-id 4883.1359173336@sss.pgh.pa.us
Whole thread Raw
In response to Re: COPY FREEZE has no warning  (Bruce Momjian <bruce@momjian.us>)
Responses Re: COPY FREEZE has no warning
List pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> !                 ereport(ERROR,
> !                         (ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,
> !                         errmsg("cannot perform FREEZE because of previous table activity in the current
transaction")));

[ itch... ]  What is "table activity"?  I always thought of tables as
being rather passive objects.  And anyway, isn't this backwards?  What
we're complaining of is *lack* of activity.  I don't see why this isn't
using the same message as the other code path, namely

> +         ereport(ERROR,
> +                 (ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,
> +                  errmsg("cannot perform FREEZE because the table was not created or truncated in the current
transaction")));
        regards, tom lane



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: COPY FREEZE has no warning
Next
From: Craig Ringer
Date:
Subject: Re: Visual Studio 2012 RC