pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Edmar Wiggers <edmar@brasmap.com>
To: pgsql-sql@postgresql.org
Subject: RE: Using SELECT as DDL/DML statement is wrong (was RE: reinitialize a sequence?)
Date: Wed, 6 Dec 2000 10:43:59 -0200
Message-ID: <NEBBIAKDCDHFGJMLHCKIIEOGCBAA.edmar@brasmap.com> (raw)
In-Reply-To: <7F124BC48D56D411812500D0B747251480F315@fileserver002.intecsystems.co.uk>


> But, altering the database in a procedure
> called from a select is a design decision,
> and if somebody wants to do it, well, it's
> their problem.  There may (on very few
> occasions, one would hope) actually be some
> good reasons to do this.

Ok, it's their problem. But, as a DBA, I would like to have stored
procedures. Having that, I would also like a way to prevent any application
development that uses SELECT statements to alter the database. By
definition, that's not what SELECT is for (and so it is bad practice to use
it that way).

Currently however, that's the only whay to do it (use something similar to
stored procs). And, true, that's much better than not doing it at all.

Yours sincerely,

Edmar Wiggers
BRASMAP Information Systems
+55 48 9960 2752




view thread (3+ messages)

Message-ID: <NEBBIAKDCDHFGJMLHCKIIEOGCBAA.edmar@brasmap.com>
Permalink:  ../NEBBIAKDCDHFGJMLHCKIIEOGCBAA.edmar@brasmap.com/
Also on:    postgresql.org/message-id/NEBBIAKDCDHFGJMLHCKIIEOGCBAA.edmar@brasmap.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: edmar@brasmap.com
  Subject: Re: Using SELECT as DDL/DML statement is wrong (was RE: reinitialize a sequence?)
  In-Reply-To: <NEBBIAKDCDHFGJMLHCKIIEOGCBAA.edmar@brasmap.com>
  References: <7F124BC48D56D411812500D0B747251480F315@fileserver002.intecsystems.co.uk> <NEBBIAKDCDHFGJMLHCKIIEOGCBAA.edmar@brasmap.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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