pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim Finnerty <jfinnert@amazon.com>
To: pgsql-general@postgresql.org
Subject: Re: Removing INNER JOINs
Date: Sun, 10 Dec 2017 21:33:21 -0700 (MST)
Message-ID: <1512966801439-0.post@n3.nabble.com> (raw)
In-Reply-To: <CAKJS1f-5UrL0R-z5TQnJ37YkgU9RwkDHW4NSkL+ZO3adUDLzQQ@mail.gmail.com>
References: <VisenaEmail.2b.7dfa64bdab147c49.1600d1d9df0@tc7-visena>
	<CAKJS1f9FToa68cr_DETV=utG6xqokXYm+yQ=-PpVj9aPkGXanw@mail.gmail.com>
	<CANP8+jKTPQqiUEba6WZ4dd+ca=UrhbJ1BEUv080bs6Gy-tXKQQ@mail.gmail.com>
	<CAKJS1f-5UrL0R-z5TQnJ37YkgU9RwkDHW4NSkL+ZO3adUDLzQQ@mail.gmail.com>

FK constraint enforcement may be deferred, but only to the end of the DML
transaction.  Can someone provide an example where a SELECT statement that
is not in that DML transaction and that can view only committed data can see
a FK-side row that doesn't join with any PK-side row?

I don't think I understand why the volatile function scenario.  Can a
volatile function somehow circumvent FK enforcement?  If not, then why is
the volatile function scenario different than any other DML with respect to
the enforcement of FK constraints?

thank you,

    /Jim F






--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html




view thread (10+ messages)  latest in thread

Message-ID: <1512966801439-0.post@n3.nabble.com>
Permalink:  ../1512966801439-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1512966801439-0.post@n3.nabble.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-general@postgresql.org
  Cc: jfinnert@amazon.com
  Subject: Re: Removing INNER JOINs
  In-Reply-To: <1512966801439-0.post@n3.nabble.com>
  References: <VisenaEmail.2b.7dfa64bdab147c49.1600d1d9df0@tc7-visena> <CAKJS1f9FToa68cr_DETV=utG6xqokXYm+yQ=-PpVj9aPkGXanw@mail.gmail.com> <CANP8+jKTPQqiUEba6WZ4dd+ca=UrhbJ1BEUv080bs6Gy-tXKQQ@mail.gmail.com> <CAKJS1f-5UrL0R-z5TQnJ37YkgU9RwkDHW4NSkL+ZO3adUDLzQQ@mail.gmail.com> <1512966801439-0.post@n3.nabble.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