pl/python quoting functions

From: Jan Urbański <wulczer(at)wulczer(dot)org>
To: Postgres - Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: pl/python quoting functions
Date: 2011-01-10 21:48:56
Message-ID: 4D2B7EC8.4020500@wulczer.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Here's a patch that adds a few PL/Python functions for quoting strings.
It's an incremental patch on top of the plpython-refactor patch sent in
http://archives.postgresql.org/message-id/4D135170.3080705@wulczer.org.

Git branch for this patch:
https://github.com/wulczer/postgres/tree/functions

The new functions are plpy.quote_literal, plpy.quote_nullable and
plpy.quote_ident, and work just like their sql or plperl equivalents.

Cheers,
Jan

Attachment Content-Type Size
plpython-functions.diff text/x-patch 8.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joel Jacobson 2011-01-10 22:09:47 Re: Bug in pg_describe_object (was: Re: [HACKERS] obj_unique_identifier(oid))
Previous Message Tom Lane 2011-01-10 21:37:20 Re: Bug in pg_describe_object (was: Re: [HACKERS] obj_unique_identifier(oid))