pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Mariel Cherkassky <mariel.cherkassky@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: sqlite_fdw crashes & errors
Date: Wed, 19 Sep 2018 11:02:07 +1200
Message-ID: <63820e86-991e-fa2e-4e1c-4596aae14fb7@catalyst.net.nz> (raw)
In-Reply-To: <87k1njhqxp.fsf@news-spur.riddles.org.uk>
References: <CA+t6e1kzja9ats3yLtLYo4jY52h-cNiMxt7zyEgQixHx=vazKQ@mail.gmail.com>
	<534fa6d9-4541-bb7d-a26c-3c021690cc4b@catalyst.net.nz>
	<CA+t6e1njA-BnjqDeAJ9gdzhhfFYhBtKsfnxceFh0BLphM=yonw@mail.gmail.com>
	<3e05aedb-987b-29aa-bb5e-e89bfd372834@catalyst.net.nz>
	<CA+t6e1=h+814eAbv=1Etq_EZ-4PhKF+3cJpi+m3ZUOAU6aGpFw@mail.gmail.com>
	<170c1a6b-651a-4ae8-6ea3-4ce1ab54275f@catalyst.net.nz>
	<CA+t6e1=PHY0S9h6mvPn6A6EFn7trUsq3+uvcx9=JfqzkthesZA@mail.gmail.com>
	<CA+t6e1kAW1wzH_ogge9E3e0yG8feM092Oh5bKjig+u3irp6nkw@mail.gmail.com>
	<CA+t6e1=hiby+-PG1gY3MwEmu9PvTQGztURej-wZuZ=iJ0HhCqg@mail.gmail.com>
	<87sh27hrxj.fsf@news-spur.riddles.org.uk>
	<CA+t6e1kZNsdLw6bRhhzKrjDsr784sES_FErb-5dXhi5EJKoD7Q@mail.gmail.com>
	<87k1njhqxp.fsf@news-spur.riddles.org.uk>

On 19/09/18 01:33, Andrew Gierth wrote:
>>>>>> "Mariel" == Mariel Cherkassky <mariel.cherkassky@gmail.com> writes:
>  Mariel> So, how exactly it works for other people ? Shouldnt everyone
>  Mariel> who use this extension should have suffered from this bug ? And
>  Mariel> why for selects it works fine ?
>
> The bug is in error reporting, so it kicks in only when an error occurs
> and then only when a null value for the sql text is passed to the
> reporting function.
>
Ah right - I guess I was not tickling the bug correctly:

$ chmod 444 sqlite/test.db
$

$ psql

=#  insert into MARIEL_TEST_foreign values(4,1,1);
ERROR:  failed to execute remote SQL: rc=1 SQL logic error
   sql=INSERT INTO main."MARIEL_TEST"("cola", "colb", "colc") VALUES (?,
?, ?)

regards

Mark





view thread (18+ messages)  latest in thread

Message-ID: <63820e86-991e-fa2e-4e1c-4596aae14fb7@catalyst.net.nz>
Permalink:  ../63820e86-991e-fa2e-4e1c-4596aae14fb7@catalyst.net.nz/
Also on:    postgresql.org/message-id/63820e86-991e-fa2e-4e1c-4596aae14fb7@catalyst.net.nz

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: mark.kirkwood@catalyst.net.nz, andrew@tao11.riddles.org.uk, mariel.cherkassky@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: sqlite_fdw crashes & errors
  In-Reply-To: <63820e86-991e-fa2e-4e1c-4596aae14fb7@catalyst.net.nz>

* 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