pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthias Apitz <guru@unixarea.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: error messages (autovaccum canceled and syntax errors) while loading a DUMP
Date: Thu, 25 Jun 2020 21:24:33 +0200
Message-ID: <6692be10-ce00-429f-b99a-761f3bc77d39@unixarea.de> (raw)
In-Reply-To: <fae083a8-dfc6-a133-aaa3-95af8011f70f@aklaver.com>
References: <20200625111137.GA15798@sh4-5.1blu.de>
	<20200625125402.GA27634@sh4-5.1blu.de>
	<bdddf16b-b9df-4092-d8e7-78604736b8a3@aklaver.com>
	<20200625180329.GA19346@sh4-5.1blu.de>

On Thursday, 25 June 2020 21:12:50 CEST, Adrian Klaver 
<adrian.klaver@aklaver.com> wrote:


>> acq_vardata where id= order by sel_seq_3
>> 2020-06-25 12:06:42.098 CEST [306] ERROR:  syntax error at or 
>> near "q" at character 1
>> ...
> 
> 
> If this was coming from the restore of the dump file I would expect to 
> see a COPY line just prior to the error. To me it looks like something 
> other then the restore is running that query and that the query itself 
> is flawed.

I will rerun it on a clean empty database and with no other proc on the 
server accessing the PG server.


>>> What happens if you do as a test something like?:
>>>
>>> CREATE TABLE test_table AS SELECT * FROM large_table WHERE row_id =
>>> row_below;
>>>
>> 
>> I do not understand this request, what is 'large_table' and what is
>> 'row_below'?
> 
> The "large_table" is whatever table the Perl scripts are stored in. 
> 'row_below' is whatever row identifier there is for the row that stores 
> this particular script. Just trying to confirm that the script will run 
> when the row it is part of is INSERTed into a table. I'm guessing not.
> 
> You could also just manually run the script to see if the query is 
> valid. I'm guessing it is not.

Ok, I will figure it out. Thanks for the clarification.

matthias




-- 
Sent from my Ubuntu phone
http://www.unixarea.de/
NO to the EU! NEIN zur EU!





view thread (14+ messages)  latest in thread

Message-ID: <6692be10-ce00-429f-b99a-761f3bc77d39@unixarea.de>
Permalink:  ../6692be10-ce00-429f-b99a-761f3bc77d39@unixarea.de/
Also on:    postgresql.org/message-id/6692be10-ce00-429f-b99a-761f3bc77d39@unixarea.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: guru@unixarea.de
  Subject: Re: error messages (autovaccum canceled and syntax errors) while loading a DUMP
  In-Reply-To: <6692be10-ce00-429f-b99a-761f3bc77d39@unixarea.de>
  References: <20200625111137.GA15798@sh4-5.1blu.de> <20200625125402.GA27634@sh4-5.1blu.de> <bdddf16b-b9df-4092-d8e7-78604736b8a3@aklaver.com> <20200625180329.GA19346@sh4-5.1blu.de> <6692be10-ce00-429f-b99a-761f3bc77d39@unixarea.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox