Re: Can SELECT statements throw an error - Mailing list pgsql-sql

From Tom Lane
Subject Re: Can SELECT statements throw an error
Date
Msg-id 19902.1121956526@sss.pgh.pa.us
Whole thread Raw
In response to Can SELECT statements throw an error  (Erik Wasser <erik.wasser@iquer.net>)
List pgsql-sql
Erik Wasser <erik.wasser@iquer.net> writes:
> can SELECT statements throw errors except the followings:

> - SQL syntax errors
> - connection based errors (database is down/etc...)
> - deadlocks

> Did I miss an option?

Many.  Considerselect 1 / 0
In general I'd think that most errors in the "data exception",
"cardinality violation", "insufficient resources",
and "operator intervention" categories are possible.  See the
error codes appendix for some ideas.

And of course, if the SELECT invokes a user-defined function,
no holds are barred ...
        regards, tom lane


pgsql-sql by date:

Previous
From: Achilleus Mantzios
Date:
Subject: Re: Are long term never commited SELECT statements are a
Next
From: Michael Fuhr
Date:
Subject: Re: Are long term never commited SELECT statements are a problem?