"David G. Johnston" <david.g.johnston@gmail.com> writes: > On Wed, Nov 23, 2016 at 3:46 AM, Poul Kristensen <bcc5226@gmail.com> wrote: >> In the postgresql.log I get "select datname from $1".
> That is expected when you parameterize a query - the query string includes > parameters instead of values.
It looks like Poul is hoping to use a parameter as a table name, which doesn't work. Parameters can only represent values (constants).
regards, tom lane
--
Med venlig hilsen / Best regards Poul Kristensen Linux-OS/Virtualizationexpert and Oracle DBA
--
Med venlig hilsen / Best regards Poul Kristensen Linux-OS/Virtualizationexpert and Oracle DBA