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 1joWDn-0003vd-Lb for pgsql-general@arkaria.postgresql.org; Thu, 25 Jun 2020 18:03:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1joWDm-000330-F6 for pgsql-general@arkaria.postgresql.org; Thu, 25 Jun 2020 18:03:34 +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 1joWDm-00032t-69 for pgsql-general@lists.postgresql.org; Thu, 25 Jun 2020 18:03:34 +0000 Received: from sh4-5.1blu.de ([178.254.11.41]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1joWDj-0005Vt-Gk for pgsql-general@lists.postgresql.org; Thu, 25 Jun 2020 18:03:33 +0000 Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.90_1) (envelope-from ) id 1joWDh-0006YE-O9; Thu, 25 Jun 2020 20:03:29 +0200 Date: Thu, 25 Jun 2020 20:03:29 +0200 From: Matthias Apitz To: Adrian Klaver Cc: pgsql-general@lists.postgresql.org Subject: Re: error messages (autovaccum canceled and syntax errors) while loading a DUMP Message-ID: <20200625180329.GA19346@sh4-5.1blu.de> Reply-To: Matthias Apitz References: <20200625111137.GA15798@sh4-5.1blu.de> <20200625125402.GA27634@sh4-5.1blu.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk El d=C3=ADa Donnerstag, Juni 25, 2020 a las 08:59:49 -0700, Adrian Klaver e= scribi=C3=B3: > On 6/25/20 5:54 AM, Matthias Apitz wrote: > >=20 > >=20 > > El d=C3=ADa jueves, junio 25, 2020 a las 01:11:37p. m. +0200, Matthias = Apitz escribi=C3=B3: > >=20 > > >=20 > > > Hello > > >=20 > > > A PG dump file was produced on a 11.4. server the usual ways. > > > When it is loaded with > > >=20 > > > $ gzip -dc newanna_export.dmp | /usr/local/sisis-pap/pgsql/bin/psql -= U sisis sisis >=20 > What was the command to produce the dump? $ /usr/local/sisis-pap/pgsql/bin/pg_dump --file=3Dnewanna_export.dmp --comp= ress=3D9 --user=3Dsisis newanna >=20 > > >=20 > > > it gives lots of error messages in the server log as: > > >=20 > > > ... > > >=20 > > > and also syntax errors like: > >=20 > > >=20 > > > 2020-06-25 12:02:15.509 CEST [32719] ERROR: syntax error at or near = "order" at character 652 > > > 2020-06-25 12:02:15.509 CEST [32719] STATEMENT: select id, brgroup, = ins_time, upd_time, task_1, task_2, task_3, int_sel_1, int_sel_2, int_sel_3= , int_sel_4, int_sel_5, str_sel_1, str_sel_2, str_sel_3, dat_sel_1, dat_sel= _2, sel_seq_1, sel_seq_2, int_val_1, int_val_2, int_val_3, int_val_4, int_v= al_5, str_val_1, str_val_2, str_val_3, str_val_4, str_val_5, valtype_1, val= type_2, valtype_3, valtype_4, valtype_5, valtype_6, valtype_7, valmode_1, v= almode_2, valmode_3, valmode_4, valmode_5, valmode_6, valmode_7, valname_1,= valname_2, valname_3, valname_4, valname_5, valname_6, valname_7, valcont_= 1, valcont_2, valcont_3, valcont_4, valcont_5, valcont_6, valcont_7, sel_se= q_3 from acq_vardata where id=3D order by sel_seq_3 > > > 2020-06-25 12:06:42.098 CEST [306] ERROR: syntax error at or near "q= " at character 1 > > > 2020-06-25 12:06:42.098 CEST [306] STATEMENT: q > > > select count(*) from ig_bigstrings ; > > >=20 > > > What could be the reason for this? >=20 >=20 > What was logged before?: >=20 > 2020-06-25 12:02:15.509 CEST [32719] ERROR: syntax error at or near "ord= er" > at character 652 2020-06-25 11:58:42.909 CEST [11004] LOG: checkpoints are occurring too fr= equently (24 seconds apart) 2020-06-25 11:58:42.909 CEST [11004] HINT: Consider increasing the configu= ration parameter "max_wal_size". 2020-06-25 11:59:30.776 CEST [31295] ERROR: canceling autovacuum task 2020-06-25 11:59:30.776 CEST [31295] CONTEXT: automatic analyze of table "= sisis.public.d01buch" 2020-06-25 11:59:41.289 CEST [31282] ERROR: canceling autovacuum task 2020-06-25 11:59:41.289 CEST [31282] CONTEXT: automatic analyze of table "= sisis.public.d03geb" 2020-06-25 11:59:43.515 CEST [31282] ERROR: canceling autovacuum task 2020-06-25 11:59:43.515 CEST [31282] CONTEXT: automatic analyze of table "= sisis.public.d11loesch" 2020-06-25 11:59:45.838 CEST [31295] ERROR: canceling autovacuum task 2020-06-25 11:59:45.838 CEST [31295] CONTEXT: automatic analyze of table "= sisis.public.d11rueck" 2020-06-25 12:00:17.007 CEST [31295] ERROR: canceling autovacuum task 2020-06-25 12:00:17.007 CEST [31295] CONTEXT: automatic analyze of table "= sisis.public.idm_statistic" 2020-06-25 12:00:50.333 CEST [31295] ERROR: canceling autovacuum task 2020-06-25 12:00:50.333 CEST [31295] CONTEXT: automatic analyze of table "= sisis.public.idm_targetlog" 2020-06-25 12:00:53.658 CEST [31295] ERROR: canceling autovacuum task 2020-06-25 12:00:53.658 CEST [31295] CONTEXT: automatic analyze of table "= sisis.public.idm_targettab" 2020-06-25 12:00:55.375 CEST [31295] ERROR: canceling autovacuum task 2020-06-25 12:00:55.375 CEST [31295] CONTEXT: automatic analyze of table "= sisis.public.idm_tasktab" 2020-06-25 12:02:15.509 CEST [32719] ERROR: syntax error at or near "order= " at character 652 2020-06-25 12:02:15.509 CEST [32719] STATEMENT: select id, brgroup, ins_ti= me, upd_time, task_1, task_2, task_3, int_sel_1, int_sel_2, int_sel_3, int_= sel_4, int_sel_5, str_sel_1, str_sel_2, str_sel_3, dat_sel_1, dat_sel_2, se= l_seq_1, sel_seq_2, int_val_1, int_val_2, int_val_3, int_val_4, int_val_5, = str_val_1, str_val_2, str_val_3, str_val_4, str_val_5, valtype_1, valtype_2= , valtype_3, valtype_4, valtype_5, valtype_6, valtype_7, valmode_1, valmode= _2, valmode_3, valmode_4, valmode_5, valmode_6, valmode_7, valname_1, valna= me_2, valname_3, valname_4, valname_5, valname_6, valname_7, valcont_1, val= cont_2, valcont_3, valcont_4, valcont_5, valcont_6, valcont_7, sel_seq_3 fr= om acq_vardata where id=3D order by sel_seq_3 2020-06-25 12:06:42.098 CEST [306] ERROR: syntax error at or near "q" at c= haracter 1 =2E.. >=20 > What happens if you do as a test something like?: >=20 > 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'? Thanks matthias > >=20 > > I looked in the dump file after uncompressing it. The 'syntax error' > > comes from: one large table contains in a bytea column Perl code wich > > our software reads from the table and executes it with Perl. But, why > > the psql tryes to understand this code when it should INSERT it into the > > table? This is a bit part of the content of the table: > >=20 > > # function: readAcqVarData\n#\n# parameter: where condition (string)\n#= returns: array of records\n# $recordList->[0]->{'int_val_1'} =3D = "20";\n# $recordList->[0]->{'str_val_1'} =3D "string";\n# = $recordList->[1]->{'int_val_1'} =3D "99";\n# $recordList->[1]->{'= str_val_1'} =3D "Dummy";\n#\nsub readAcqVarData {\n\tmy ($where) =3D @_;\n\= tmy $recordList =3D undef;\n\tmy $ipos_valcont_7 =3D 56; # position valcont= _7-Spalte in select-statement - 1\n\n\t$debug .=3D "

readAcqVarData() \\n" if $debugOn;\n\n\t$erg =3D selectData(\n\t\t "select id, brgroup= , ins_time, upd_time, task_1, task_2, task_3, "\n\t\t . "int_sel_1, int_se= l_2, int_sel_3, int_sel_4, int_sel_5, "\n\t\t . "str_sel_1, str_sel_2, str= _sel_3, dat_sel_1, dat_sel_2, "\n\t\t . "sel_seq_1, sel_seq_2, "\n\t\t . = "int_val_1, int_val_2, int_val_3, int_val_4, int_val_5, "\n\t\t . "str_val= _1, str_val_2, str_val_3, str_val_4, str_val_5, "\n\t\t . "valtype_1, valt= ype_2, valtype_3, valtype_4, valtype_5, valtype_6, valtype_7, "\n\t\t . "v= almode_1, valmode_2, valmode_3, valmode_4, valmode_5, valmode_6, valmode_7,= "\n\t\t . > >=20 > > matthias > >=20 >=20 >=20 > --=20 > Adrian Klaver > adrian.klaver@aklaver.com --=20 Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ +49-176= -38902045 Public GnuPG key: http://www.unixarea.de/key.pub May, 9: =D0=A1=D0=BF=D0=B0=D1=81=D0=B8=CC=81=D0=B1=D0=BE =D0=BE=D1=81=D0=B2= =D0=BE=D0=B1=D0=BE=D0=B4=D0=B8=D1=82=D0=B5=D0=BB=D0=B8! Thank you very much= , Russian liberators!