Re: BUG #3790: pg_restore error canceling statement due touser request

Lists: Postg토토 결과SQL : Postg토토 결과SQL 메일 링리스트 : 2007-12-06 이후 PGSQL-BUGS 17:27
From: "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #3790: pg_restore error canceling statement due to user request
Date: 2007-11-30 01:05:35
Message-ID: 200711300105.lAU15Z9R061311@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg젠 토토SQL : Postg젠 토토SQL 메일 링리스트 : 2007-11-30 이후 PGSQL-BUGS 01:05


The following bug has been logged online:

Bug reference: 3790
Logged by: Mike C.
Email address: smith(dot)not(dot)western(at)gmail(dot)com
PostgreSQL version: 8.3beta3
Operating system: Linux 2.6.16.21-0.8-xen #1 SMP Mon Jul 3 18:25:39 UTC
2006 i686 i686 i386 GNU/Linux
Description: pg_restore error canceling statement due to user request
Details:

I don't know if this is either a wording change, or a more serious bug, but
when I do a pg_restore (from a 8.1.9 setup) to a fresh 8.3beta3 created
database (createdb command only), I repeatedly see:

ERROR: canceling statement due to user request
CONTEXT: automatic analyze of table "dbs.public.entity_event"
ERROR: canceling statement due to user request
CONTEXT: automatic analyze of table "dbs.public.status_event"
ERROR: canceling statement due to user request
CONTEXT: automatic analyze of table "dbs.public.entity_event"
ERROR: canceling statement due to user request
CONTEXT: automatic analyze of table "dbs.public.entity_event"

... For all tables I believe.


From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #3790: pg_restore error canceling statement due to user request
Date: 2007-11-30 10:13:53
Message-ID: 87y7cgavmm.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg메이저 토토 사이트SQL : Postg메이저 토토 사이트SQL 메일 링리스트 : 2007-11-30 이후 PGSQL-BUGS 10:13


"Mike C." <smith(dot)not(dot)western(at)gmail(dot)com> writes:

> I don't know if this is either a wording change, or a more serious bug, but
> when I do a pg_restore (from a 8.1.9 setup) to a fresh 8.3beta3 created
> database (createdb command only), I repeatedly see:
>
> ERROR: canceling statement due to user request
> CONTEXT: automatic analyze of table "dbs.public.entity_event"

This is intentional, though perhaps the wording is confusing. What impression
does the wording give you? Does it make you think something has gone wrong?

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's On-Demand Production Tuning


From: "Usama Dar" <munir(dot)usama(at)gmail(dot)com>
To: "Gregory Stark" <stark(at)enterprisedb(dot)com>
Cc: "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due to user request
Date: 2007-11-30 10:21:34
Message-ID: ff0e67090711300221r33ab46bbi56a58e5fe2ea6121@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: 503 토토 베이 페치 실패

On 11/30/07, Gregory Stark <stark(at)enterprisedb(dot)com> wrote:
>
>
> "Mike C." <smith(dot)not(dot)western(at)gmail(dot)com> writes:
>
> > I don't know if this is either a wording change, or a more serious bug,
> but
> > when I do a pg_restore (from a 8.1.9 setup) to a fresh 8.3beta3 created
> > database (createdb command only), I repeatedly see:
> >
> > ERROR: canceling statement due to user request
> > CONTEXT: automatic analyze of table "dbs.public.entity_event"
>
> This is intentional, though perhaps the wording is confusing. What
> impression
> does the wording give you? Does it make you think something has gone
> wrong?

I find that a little confusing too, why would it say "user request" when
user didn't request anything?

--
> Gregory Stark
> EnterpriseDB http://www.enterprisedb.com
> Ask me about EnterpriseDB's On-Demand Production Tuning
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

--
Usama Munir Dar http://linkedin.com/in/usamadar
Consultant Architect
Cell:+92 321 5020666
Skype: usamadar


From: Rodriguez Fernando <rodriguez(at)ort(dot)edu(dot)uy>
To: "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due touser request
Date: 2007-11-30 10:27:56
Message-ID: 474FE5AC.9010609@ort.edu.uy
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

como es el pg_dump y pg_restore que usas?

Saludos Fernando

Mike C. wrote:
> The following bug has been logged online:
>
> Bug reference: 3790
> Logged by: Mike C.
> Email address: smith(dot)not(dot)western(at)gmail(dot)com
> PostgreSQL version: 8.3beta3
> Operating system: Linux 2.6.16.21-0.8-xen #1 SMP Mon Jul 3 18:25:39 UTC
> 2006 i686 i686 i386 GNU/Linux
> Description: pg_restore error canceling statement due to user request
> Details:
>
> I don't know if this is either a wording change, or a more serious bug, but
> when I do a pg_restore (from a 8.1.9 setup) to a fresh 8.3beta3 created
> database (createdb command only), I repeatedly see:
>
> ERROR: canceling statement due to user request
> CONTEXT: automatic analyze of table "dbs.public.entity_event"
> ERROR: canceling statement due to user request
> CONTEXT: automatic analyze of table "dbs.public.status_event"
> ERROR: canceling statement due to user request
> CONTEXT: automatic analyze of table "dbs.public.entity_event"
> ERROR: canceling statement due to user request
> CONTEXT: automatic analyze of table "dbs.public.entity_event"
>
> ... For all tables I believe.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
>


From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Gregory Stark" <stark(at)enterprisedb(dot)com>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #3790: pg_restore error canceling statement due to user request
Date: 2007-11-30 17:04:19
Message-ID: 474FEE33.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

>>> On Fri, Nov 30, 2007 at 4:13 AM, in message
<87y7cgavmm(dot)fsf(at)oxford(dot)xeocode(dot)com>, Gregory Stark <stark(at)enterprisedb(dot)com>
wrote:
> "Mike C." <smith(dot)not(dot)western(at)gmail(dot)com> writes:
>
>> I don't know if this is either a wording change, or a more serious bug, but
>> when I do a pg_restore (from a 8.1.9 setup) to a fresh 8.3beta3 created
>> database (createdb command only), I repeatedly see:
>>
>> ERROR: canceling statement due to user request
>> CONTEXT: automatic analyze of table "dbs.public.entity_event"
>
> This is intentional, though perhaps the wording is confusing. What
> impression
> does the wording give you? Does it make you think something has gone wrong?

It does say "ERROR" and "user request" when it's not an error
and the user didn't explicitly (or directly) request a cancel.

If I hadn't read the hackers thread, it would confuse me.

-Kevin


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due to user request
Date: 2007-12-03 15:12:13
Message-ID: 20071203151213.GF4386@svr2.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

On Fri, Nov 30, 2007 at 10:13:53AM +0000, Gregory Stark wrote:
>
> "Mike C." <smith(dot)not(dot)western(at)gmail(dot)com> writes:
>
> > I don't know if this is either a wording change, or a more serious bug, but
> > when I do a pg_restore (from a 8.1.9 setup) to a fresh 8.3beta3 created
> > database (createdb command only), I repeatedly see:
> >
> > ERROR: canceling statement due to user request
> > CONTEXT: automatic analyze of table "dbs.public.entity_event"
>
> This is intentional, though perhaps the wording is confusing. What impression
> does the wording give you? Does it make you think something has gone wrong?

The fact that it says ERROR kind of hints that something has gone wrong,
no? (so yes, I agree the wording isn't very good)

//Magnus


From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Gregory Stark <stark(at)enterprisedb(dot)com>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due to user request
Date: 2007-12-03 23:37:48
Message-ID: 200712032337.lB3Nbm521738@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: 503 스포츠 토토 사이트 페치 실패

Magnus Hagander wrote:
> On Fri, Nov 30, 2007 at 10:13:53AM +0000, Gregory Stark wrote:
> >
> > "Mike C." <smith(dot)not(dot)western(at)gmail(dot)com> writes:
> >
> > > I don't know if this is either a wording change, or a more serious bug, but
> > > when I do a pg_restore (from a 8.1.9 setup) to a fresh 8.3beta3 created
> > > database (createdb command only), I repeatedly see:
> > >
> > > ERROR: canceling statement due to user request
> > > CONTEXT: automatic analyze of table "dbs.public.entity_event"
> >
> > This is intentional, though perhaps the wording is confusing. What impression
> > does the wording give you? Does it make you think something has gone wrong?
>
> The fact that it says ERROR kind of hints that something has gone wrong,
> no? (so yes, I agree the wording isn't very good)

What is causing this? Statement_timeout? I see different wording for
that behavior. Is the postmaster getting a signal from somewhere on the
system?

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://postgres.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +


From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Gregory Stark <stark(at)enterprisedb(dot)com>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due to user request
Date: 2007-12-03 23:56:50
Message-ID: 20071203235650.GB9782@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg스포츠 토토 결과SQL : Postg스포츠 토토 결과SQL 메일 링리스트 : 2007-12-03 이후 PGSQL-BUGS 23:56

Bruce Momjian escribió:
> Magnus Hagander wrote:
> > On Fri, Nov 30, 2007 at 10:13:53AM +0000, Gregory Stark wrote:
> > >
> > > "Mike C." <smith(dot)not(dot)western(at)gmail(dot)com> writes:
> > >
> > > > I don't know if this is either a wording change, or a more serious bug, but
> > > > when I do a pg_restore (from a 8.1.9 setup) to a fresh 8.3beta3 created
> > > > database (createdb command only), I repeatedly see:
> > > >
> > > > ERROR: canceling statement due to user request
> > > > CONTEXT: automatic analyze of table "dbs.public.entity_event"
> > >
> > > This is intentional, though perhaps the wording is confusing. What impression
> > > does the wording give you? Does it make you think something has gone wrong?
> >
> > The fact that it says ERROR kind of hints that something has gone wrong,
> > no? (so yes, I agree the wording isn't very good)
>
> What is causing this? Statement_timeout? I see different wording for
> that behavior. Is the postmaster getting a signal from somewhere on the
> system?

It's the new autovacuum cancel stuff.

--
Alvaro Herrera http://www.amazon.com/gp/registry/CTMLCN8V17R4
"That sort of implies that there are Emacs keystrokes which aren't obscure.
I've been using it daily for 2 years now and have yet to discover any key
sequence which makes any sense." (Paul Thomas)


From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Alvaro Herrera" <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: "Bruce Momjian" <bruce(at)momjian(dot)us>, "Magnus Hagander" <magnus(at)hagander(dot)net>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #3790: pg_restore error canceling statement due touser request
Date: 2007-12-04 07:54:34
Message-ID: 878x4asxmt.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

"Alvaro Herrera" <alvherre(at)alvh(dot)no-ip(dot)org> writes:

> Bruce Momjian escribió:
>> Magnus Hagander wrote:
>> > On Fri, Nov 30, 2007 at 10:13:53AM +0000, Gregory Stark wrote:
>> > >
>> > > "Mike C." <smith(dot)not(dot)western(at)gmail(dot)com> writes:
>> > >
>> > > > ERROR: canceling statement due to user request
>> > > > CONTEXT: automatic analyze of table "dbs.public.entity_event"
>> > >
>> > > This is intentional, though perhaps the wording is confusing. What impression
>> > > does the wording give you? Does it make you think something has gone wrong?
>> >
>> > The fact that it says ERROR kind of hints that something has gone wrong,
>> > no? (so yes, I agree the wording isn't very good)
>>
>> What is causing this? Statement_timeout? I see different wording for
>> that behavior. Is the postmaster getting a signal from somewhere on the
>> system?
>
> It's the new autovacuum cancel stuff.

I guess we should capture this error with a PG_TRY and silently abort instead.
Just a NOTICE or INFO should be sufficient. Other errors should of course be
rethrown.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's On-Demand Production Tuning


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: "Alvaro Herrera" <alvherre(at)alvh(dot)no-ip(dot)org>, "Bruce Momjian" <bruce(at)momjian(dot)us>, "Magnus Hagander" <magnus(at)hagander(dot)net>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due touser request
Date: 2007-12-04 15:32:09
Message-ID: 28441.1196782329@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> I guess we should capture this error with a PG_TRY and silently abort instead.
> Just a NOTICE or INFO should be sufficient. Other errors should of course be
> rethrown.

This falls in the category of "destabilizing the code for purely
cosmetic reasons", and would be a foolish change to make at RC1 time.

We could change the text of the ERROR message reasonably easily,
but changing the basic transaction abort method is right out.

regards, tom lane


From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Alvaro Herrera" <alvherre(at)alvh(dot)no-ip(dot)org>, "Bruce Momjian" <bruce(at)momjian(dot)us>, "Magnus Hagander" <magnus(at)hagander(dot)net>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #3790: pg_restore error canceling statement due touser request
Date: 2007-12-04 16:54:35
Message-ID: 877ijuieno.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: 503 배트맨 토토 페치 실패

"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> This falls in the category of "destabilizing the code for purely
> cosmetic reasons", and would be a foolish change to make at RC1 time.

I suppose. Expect to have more bug reports like this one then though.

> We could change the text of the ERROR message reasonably easily,
> but changing the basic transaction abort method is right out.

I fear having a message saying "ERROR This is not an error" is going to get us
laughed at.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's RemoteDBA services!


From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <bruce(at)momjian(dot)us>, Magnus Hagander <magnus(at)hagander(dot)net>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due touser request
Date: 2007-12-04 17:05:42
Message-ID: 20071204170542.GD4727@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg토토SQL : Postg토토SQL 메일 링리스트 : 2007-12-04 이후 PGSQL-BUGS 17:05

Gregory Stark escribió:
> "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
>
> > This falls in the category of "destabilizing the code for purely
> > cosmetic reasons", and would be a foolish change to make at RC1 time.
>
> I suppose. Expect to have more bug reports like this one then though.
>
> > We could change the text of the ERROR message reasonably easily,
> > but changing the basic transaction abort method is right out.
>
> I fear having a message saying "ERROR This is not an error" is going to get us
> laughed at.

I don't advocate changing that ERROR to anything else. The message
wording, as Tom says, can easily be changed -- I think this patch should
be enough. Feel free to propose better wording.

--
Alvaro Herrera http://www.PlanetPostgreSQL.org/
Voy a acabar con todos los humanos / con los humanos yo acabaré
voy a acabar con todos / con todos los humanos acabaré (Bender)

Attachment Content-Type Size
av-cancel-msg.patch text/x-diff 873 bytes

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Gregory Stark <stark(at)enterprisedb(dot)com>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due to user request
Date: 2007-12-04 20:54:52
Message-ID: 200712042054.lB4Ksrf10509@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg젠 토토SQL : Postg젠 토토SQL 메일 링리스트 : 2007-12-04 이후 PGSQL-BUGS 20:54

Alvaro Herrera wrote:
> Bruce Momjian escribi??:
> > Magnus Hagander wrote:
> > > On Fri, Nov 30, 2007 at 10:13:53AM +0000, Gregory Stark wrote:
> > > >
> > > > "Mike C." <smith(dot)not(dot)western(at)gmail(dot)com> writes:
> > > >
> > > > > I don't know if this is either a wording change, or a more serious bug, but
> > > > > when I do a pg_restore (from a 8.1.9 setup) to a fresh 8.3beta3 created
> > > > > database (createdb command only), I repeatedly see:
> > > > >
> > > > > ERROR: canceling statement due to user request
> > > > > CONTEXT: automatic analyze of table "dbs.public.entity_event"
> > > >
> > > > This is intentional, though perhaps the wording is confusing. What impression
> > > > does the wording give you? Does it make you think something has gone wrong?
> > >
> > > The fact that it says ERROR kind of hints that something has gone wrong,
> > > no? (so yes, I agree the wording isn't very good)
> >
> > What is causing this? Statement_timeout? I see different wording for
> > that behavior. Is the postmaster getting a signal from somewhere on the
> > system?
>
> It's the new autovacuum cancel stuff.

Ah, OK. Right now we have these two cancel messages:

if (cancel_from_timeout)
ereport(ERROR,
(errcode(ERRCODE_QUERY_CANCELED),
errmsg("canceling statement due to statement timeout")));
else
ereport(ERROR,
(errcode(ERRCODE_QUERY_CANCELED),
errmsg("canceling statement due to user request")));

While the first one is fine, the second one is used for Control-C and
the new autovacuum code to exit an activity when it is blocking someone
from getting a table lock. Perhaps we just need to change the wording
to "canceling statement" and not specify the cause.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://postgres.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +


From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Gregory Stark <stark(at)enterprisedb(dot)com>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due to user request
Date: 2007-12-04 21:35:22
Message-ID: 20071204213522.GA22875@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

Bruce Momjian escribió:
> Alvaro Herrera wrote:

> Ah, OK. Right now we have these two cancel messages:
>
> if (cancel_from_timeout)
> ereport(ERROR,
> (errcode(ERRCODE_QUERY_CANCELED),
> errmsg("canceling statement due to statement timeout")));
> else
> ereport(ERROR,
> (errcode(ERRCODE_QUERY_CANCELED),
> errmsg("canceling statement due to user request")));
>
> While the first one is fine, the second one is used for Control-C and
> the new autovacuum code to exit an activity when it is blocking someone
> from getting a table lock. Perhaps we just need to change the wording
> to "canceling statement" and not specify the cause.

We can distinguish the cases -- there's no need to mix them in a single
message. See the patch I attached somewhere else in this thread.

--
Alvaro Herrera http://www.advogato.org/person/alvherre
"No hay hombre que no aspire a la plenitud, es decir,
la suma de experiencias de que un hombre es capaz"


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Gregory Stark <stark(at)enterprisedb(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Magnus Hagander <magnus(at)hagander(dot)net>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due touser request
Date: 2007-12-05 03:07:44
Message-ID: 10896.1196824064@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> writes:
> I don't advocate changing that ERROR to anything else. The message
> wording, as Tom says, can easily be changed -- I think this patch should
> be enough. Feel free to propose better wording.

Minor gripe: all three variants of the message should follow the same
sentence construction. So perhaps "canceling autovacuum task".

Other than the wording issue, this seems about the right fix to me.

regards, tom lane


From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Gregory Stark <stark(at)enterprisedb(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Magnus Hagander <magnus(at)hagander(dot)net>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due touser request
Date: 2007-12-06 14:33:30
Message-ID: 20071206143330.GE8451@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

Tom Lane escribió:
> Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> writes:
> > I don't advocate changing that ERROR to anything else. The message
> > wording, as Tom says, can easily be changed -- I think this patch should
> > be enough. Feel free to propose better wording.
>
> Minor gripe: all three variants of the message should follow the same
> sentence construction. So perhaps "canceling autovacuum task".

Ok, committed using that wording and spelling.

--
Alvaro Herrera http://www.PlanetPostgreSQL.org/
"Some men are heterosexual, and some are bisexual, and some
men don't think about sex at all... they become lawyers" (Woody Allen)


From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Gregory Stark <stark(at)enterprisedb(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Magnus Hagander <magnus(at)hagander(dot)net>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due touser request
Date: 2007-12-06 14:50:15
Message-ID: 1196952615.4255.394.camel@ebony.site
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

On Thu, 2007-12-06 at 11:33 -0300, Alvaro Herrera wrote:
> Tom Lane escribió:
> > Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> writes:
> > > I don't advocate changing that ERROR to anything else. The message
> > > wording, as Tom says, can easily be changed -- I think this patch should
> > > be enough. Feel free to propose better wording.
> >
> > Minor gripe: all three variants of the message should follow the same
> > sentence construction. So perhaps "canceling autovacuum task".
>
> Ok, committed using that wording and spelling.

Sorry to come in on late on this: That wording is better, but it still
doesn't explain why it has occurred or what the user should do about it.
I think we will get other complaints saying "why has my autovacuum been
canceled?" and "what should I do about this?".

Perhaps it should be
"canceling autovacuum task; will reschedule when user tasks complete"
or
"autovacuum canceled temporarily to allow user task to proceed"

or something that explains that what has happened is a good thing and
the task that has been canceled will be automatically re-tried.

--
Simon Riggs
2ndQuadrant http://www.2ndQuadrant.com


From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Gregory Stark <stark(at)enterprisedb(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Magnus Hagander <magnus(at)hagander(dot)net>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due touser request
Date: 2007-12-06 15:03:44
Message-ID: 20071206150344.GF8451@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

Simon Riggs escribió:

> Sorry to come in on late on this: That wording is better, but it still
> doesn't explain why it has occurred or what the user should do about it.
> I think we will get other complaints saying "why has my autovacuum been
> canceled?" and "what should I do about this?".
>
> Perhaps it should be
> "canceling autovacuum task; will reschedule when user tasks complete"
> or
> "autovacuum canceled temporarily to allow user task to proceed"
>
> or something that explains that what has happened is a good thing and
> the task that has been canceled will be automatically re-tried.

Perhaps the added phrase could be put in a errdetail() or something like
that. The problem is detecting that this is really the case. How would
it know that it wasn't user-inflicted?

--
Alvaro Herrera Developer, http://www.PostgreSQL.org/
"Las navajas y los monos deben estar siempre distantes" (Germán Poo)


From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Gregory Stark <stark(at)enterprisedb(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Magnus Hagander <magnus(at)hagander(dot)net>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due touser request
Date: 2007-12-06 15:08:45
Message-ID: 1196953725.4255.403.camel@ebony.site
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: 503 사설 토토 페치 실패

On Thu, 2007-12-06 at 12:03 -0300, Alvaro Herrera wrote:
> Simon Riggs escribió:
>
> > Sorry to come in on late on this: That wording is better, but it still
> > doesn't explain why it has occurred or what the user should do about it.
> > I think we will get other complaints saying "why has my autovacuum been
> > canceled?" and "what should I do about this?".
> >
> > Perhaps it should be
> > "canceling autovacuum task; will reschedule when user tasks complete"
> > or
> > "autovacuum canceled temporarily to allow user task to proceed"
> >
> > or something that explains that what has happened is a good thing and
> > the task that has been canceled will be automatically re-tried.
>
> Perhaps the added phrase could be put in a errdetail() or something like
> that. The problem is detecting that this is really the case. How would
> it know that it wasn't user-inflicted?

True. We can say "task will be automatically re-scheduled", so that
people understand the message and don't start asking us.

--
Simon Riggs
2ndQuadrant http://www.2ndQuadrant.com


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Gregory Stark <stark(at)enterprisedb(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Magnus Hagander <magnus(at)hagander(dot)net>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due touser request
Date: 2007-12-06 15:19:15
Message-ID: 14346.1196954355@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> True. We can say "task will be automatically re-scheduled", so that
> people understand the message and don't start asking us.

How about "temporarily canceling autovacuum task"? This is accurate
regardless of the origin of the SIGINT.

regards, tom lane


From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, Gregory Stark <stark(at)enterprisedb(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Magnus Hagander <magnus(at)hagander(dot)net>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due touser request
Date: 2007-12-06 15:24:45
Message-ID: 20071206152445.GH8451@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

Tom Lane escribió:
> Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> > True. We can say "task will be automatically re-scheduled", so that
> > people understand the message and don't start asking us.
>
> How about "temporarily canceling autovacuum task"? This is accurate
> regardless of the origin of the SIGINT.

"postponing autovacuum task"?

--
Alvaro Herrera http://www.amazon.com/gp/registry/5ZYLFMCVHXC
"No es bueno caminar con un hombre muerto"


From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Gregory Stark <stark(at)enterprisedb(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Magnus Hagander <magnus(at)hagander(dot)net>, "Mike C(dot)" <smith(dot)not(dot)western(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3790: pg_restore error canceling statement due touser request
Date: 2007-12-06 17:27:14
Message-ID: 1196962034.4255.421.camel@ebony.site
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg토토 결과SQL : Postg토토 결과SQL 메일 링리스트 : 2007-12-06 이후 PGSQL-BUGS 17:27

On Thu, 2007-12-06 at 12:24 -0300, Alvaro Herrera wrote:
> Tom Lane escribió:
> > Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> > > True. We can say "task will be automatically re-scheduled", so that
> > > people understand the message and don't start asking us.
> >
> > How about "temporarily canceling autovacuum task"? This is accurate
> > regardless of the origin of the SIGINT.
>
> "postponing autovacuum task"?

I prefer Tom's version. It fits better with the ERROR word in front of
this text.

--
Simon Riggs
2ndQuadrant http://www.2ndQuadrant.com