From: Kong Man <kong_mansatiansin@hotmail.com>
To: vyegorov@gmail.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Writeable CTE Not Working?
Date: Tue, 29 Jan 2013 11:29:40 -0800
Message-ID: <DUB116-W10DDC6C15D2D368AD772C08B1F0@phx.gbl> (raw)
In-Reply-To: <CAGnEbohaO2r8Zg=PXNsAOEG+c+8oUwO_2z7X6QKj+3QE=wtDbA@mail.gmail.com>
References: <DUB116-W6555FD44F7B4D966C07B48B1F0@phx.gbl>
<CAGnEbohaO2r8Zg=PXNsAOEG+c+8oUwO_2z7X6QKj+3QE=wtDbA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
Hi Victor,
> I see 2 problems with this query:
> 1) CTE is just a named subquery, in your query I see no reference to
> the “upd_code” CTE.
> Therefore it is never gets called;
So, in conclusion, my misconception about CTE in general was that all CTE get called without being referenced.
Thank you much for the explanation.
-Kong
=
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: kong_mansatiansin@hotmail.com, vyegorov@gmail.com
Subject: Re: Writeable CTE Not Working?
In-Reply-To: <DUB116-W10DDC6C15D2D368AD772C08B1F0@phx.gbl>
* 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