pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #13753: Docs for plpy.execute() miss info about quoting
2+ messages / 2 participants
[nested] [flat]

* BUG #13753: Docs for plpy.execute() miss info about quoting
@ 2015-11-03 13:22 guettliml@thomas-guettler.de
  2015-11-03 17:03 ` Re: BUG #13753: Docs for plpy.execute() miss info about quoting Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: guettliml@thomas-guettler.de @ 2015-11-03 13:22 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      13753
Logged by:          Thomas Güttler
Email address:      guettliml@thomas-guettler.de
PostgreSQL version: 9.4.5
Operating system:   Linux
Description:        

This page misses important information:

http://www.postgresql.org/docs/9.4/static/plpython-database.html

How to quote the arguments?

The relevant information is here:
http://www.postgresql.org/docs/9.4/static/plpython-util.html

Please include a link from the execute() docs to the quoting docs.

I was trapped by a bug made by a team mate who did no quoting.

Not quoting the values of a SQL query can lead to SQL injects which are a
big security concern.

Please add a note to the docs.

Thank you.



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #13753: Docs for plpy.execute() miss info about quoting
  2015-11-03 13:22 BUG #13753: Docs for plpy.execute() miss info about quoting guettliml@thomas-guettler.de
@ 2015-11-03 17:03 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2015-11-03 17:03 UTC (permalink / raw)
  To: guettliml@thomas-guettler.de; +Cc: pgsql-bugs

guettliml@thomas-guettler.de writes:
> This page misses important information:
> http://www.postgresql.org/docs/9.4/static/plpython-database.html
> How to quote the arguments?

AFAICS, none of the examples shown there require quoting of arguments,
so the issue doesn't really come up naturally.

> The relevant information is here:
> http://www.postgresql.org/docs/9.4/static/plpython-util.html
> Please include a link from the execute() docs to the quoting docs.

We cannot put everything on one page; that will not make it more
readable or understandable.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-11-03 17:03 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-11-03 13:22 BUG #13753: Docs for plpy.execute() miss info about quoting guettliml@thomas-guettler.de
2015-11-03 17:03 ` Tom Lane <tgl@sss.pgh.pa.us>

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