Errors from Sub-select Not Showing Up - Mailing list pgsql-general

From Ian Harding
Subject Errors from Sub-select Not Showing Up
Date
Msg-id 3F27908E.1050807@tpchd.org
Whole thread Raw
List pgsql-general
Has anyone else seen cases where errors from subselects are not being
raised?  I just had it happen again but can't find a simple case that
reproduces it.  The query is like this:

insert into ...
select (a bunch of CASE statements specifying a subselect to use if the
value of the attribute is null)...
from...(a messy JOIN)

in which one of the CASE contains a subselect which has an "Attribute
not found" error when executed independently.  However, the only way it
manifests itself is through a NOT NULL constraint not being satisfied in
the insert.

Should I spend any time trying to reproduce this in a simple case, or is
there some known stupid way of making this happen?

Thanks!


pgsql-general by date:

Previous
From: "Tambet Matiisen"
Date:
Subject: COPY and domains
Next
From: "George Weaver"
Date:
Subject: Re: [SQL] ALTER TABLE ... DROP CONSTRAINT