Re: Connection.setReadOnly() - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Connection.setReadOnly()
Date
Msg-id 4B219FAE.6070100@opencloud.com
Whole thread Raw
In response to Re: Connection.setReadOnly()  (John R Pierce <pierce@hogranch.com>)
Responses Re: Connection.setReadOnly()
List pgsql-jdbc
John R Pierce wrote:
> we have a fairly large database thats fed a
> constant stream of realtime data 24/7 from a factory doing both inserts
> and updates...    many different sorts of things have to query this
> database, including mechanical/electrical engineering types doing adhoc
> queries for oddball reports and such who are not SQL experts.   its way
> to easy for them to accidentally create a transaction that they never
> end, causing multiday blockage of VACUUM, massive table bloat, etc.

Presumably they could also run a query that accidentally consumes all
the CPU and I/O bandwidth on your server (hello missing WHERE clause!)

It sounds like what you need is an intermediate layer that enforces
transaction and query timeouts, rather than giving your mech/eng types
direct access to the DB.

-O

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: Connection.setReadOnly()
Next
From: John R Pierce
Date:
Subject: Re: Connection.setReadOnly()