Skip site navigation (1) Skip section navigation (2)

pg_restore recognizing $-quotes

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: <pgsql-patches(at)postgresql(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: pg_restore recognizing $-quotes
Date: 2004-08-14 16:28:03
Message-ID: 6.1.1.1.0.20040815022225.05d55a80@203.8.195.10 (view raw or flat)
Thread:
Lists: pgsql-patches
Not sure if this is the desired approach, but since it works, I thought I'd 
send it.

This patch allows pg_restore to recognize $-quotes in SQL queries. It will 
treat any unquoted string that starts with a $ and has no preceding 
identifier chars as a potential $-quote tag, it then makes sure that the 
tag chars are valid. If so, it processes the $-quote.

Tested against local DBs and regression DB.



----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 03 5330 3172          |                 ___________ |
Http://www.rhyme.com.au          |                /           \|
                                  |    --________--
PGP key available upon request,  |  /
and from pgp.mit.edu:11371       |/ 

Attachment: pg_dump_040812.patch.gz
Description: application/octet-stream (2.5 KB)

Responses

pgsql-patches by date

Next:From: Michael GlaesemannDate: 2004-08-14 16:48:42
Subject: Re: to_timestamp overloaded to convert from Unix epoch
Previous:From: Tom LaneDate: 2004-08-14 16:19:32
Subject: Re: to_timestamp overloaded to convert from Unix epoch

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group