Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1joXUI-000697-Ou for pgsql-general@arkaria.postgresql.org; Thu, 25 Jun 2020 19:24:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1joXUH-0005Gc-D2 for pgsql-general@arkaria.postgresql.org; Thu, 25 Jun 2020 19:24:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1joXUH-0005FD-4R for pgsql-general@lists.postgresql.org; Thu, 25 Jun 2020 19:24:41 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1joXUD-0006C7-0d for pgsql-general@lists.postgresql.org; Thu, 25 Jun 2020 19:24:40 +0000 Received: from [80.187.80.218] (helo=[172.20.10.4]) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joXUA-0004CY-Lt; Thu, 25 Jun 2020 21:24:34 +0200 From: Matthias Apitz To: Subject: Re: error messages (autovaccum canceled and syntax errors) while =?iso-8859-1?Q?loading_a_DUMP?= Date: Thu, 25 Jun 2020 21:24:33 +0200 User-Agent: Dekko/0.6.20; Qt/5.4.1; ubuntumirclient; Linux; MIME-Version: 1.0 Message-ID: <6692be10-ce00-429f-b99a-761f3bc77d39@unixarea.de> In-Reply-To: References: <20200625111137.GA15798@sh4-5.1blu.de> <20200625125402.GA27634@sh4-5.1blu.de> <20200625180329.GA19346@sh4-5.1blu.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 80.187.80.218 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thursday, 25 June 2020 21:12:50 CEST, Adrian Klaver=20 wrote: >> acq_vardata where id=3D order by sel_seq_3 >> 2020-06-25 12:06:42.098 CEST [306] ERROR: syntax error at or=20 >> near "q" at character 1 >> ... >=20 >=20 > If this was coming from the restore of the dump file I would expect to=20 > see a COPY line just prior to the error. To me it looks like something=20 > other then the restore is running that query and that the query itself=20 > is flawed. I will rerun it on a clean empty database and with no other proc on the=20 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 =3D >>> row_below; >>> >>=20 >> I do not understand this request, what is 'large_table' and what is >> 'row_below'? >=20 > The "large_table" is whatever table the Perl scripts are stored in.=20 > 'row_below' is whatever row identifier there is for the row that stores=20 > this particular script. Just trying to confirm that the script will run=20 > when the row it is part of is INSERTed into a table. I'm guessing not. >=20 > You could also just manually run the script to see if the query is=20 > valid. I'm guessing it is not. Ok, I will figure it out. Thanks for the clarification. matthias --=20 Sent from my Ubuntu phone http://www.unixarea.de/ NO to the EU! NEIN zur EU!