From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | Craig Ringer <craig(at)2ndquadrant(dot)com>, Simon Riggs <simon(at)2ndQuadrant(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Stephen Frost <sfrost(at)snowman(dot)net>, Josh Berkus <josh(at)agliodbs(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Planning incompatibilities for Postgres 10.0 |
Date: | 2013-05-28 22:39:10 |
Message-ID: | 51A5320E.7090200@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 05/28/2013 03:36 PM, Bruce Momjian wrote:
>> The other option would be to do it on query execute but that doesn't
>> seem as efficient as it would have to be parsed each time. Although
>> it would still be better than reading the actual SQL.
>
> Well, you could do SET TRANSACTION READ ONLY, and that would prevent any
> write transactions. You could assume it is a read query, and get the
> error and resubmit on the master if that happens, but that sounds
> inefficient. I thought you were asking for something where you could
> submit a query and it would report back as read/write or read-only.
No I am suggesting something that before anything happens with the
parser, the protocol knows what is up. So things like pgpool-ii don't
even need a parser, it just knows it is a read only query because the
protocol says so.
JD
--
Command Prompt, Inc. - http://www.commandprompt.com/ 509-416-6579
PostgreSQL Support, Training, Professional Services and Development
High Availability, Oracle Conversion, Postgres-XC, @cmdpromptinc
For my dreams of your image that blossoms
a rose in the deeps of my heart. - W.B. Yeats
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2013-05-28 22:43:06 | Re: Logging of PAM Authentication Failure |
Previous Message | Bruce Momjian | 2013-05-28 22:38:11 | Re: Planning incompatibilities for Postgres 10.0 |