Re: Using a CTE for an update

From: Victor Yegorov <vyegorov(at)gmail(dot)com>
To: David Salisbury <salisbury(at)globe(dot)gov>
Cc: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Using a CTE for an update
Date: 2013-05-31 21:59:41
Message-ID: CAGnEbohkPQCEdF7qP=1hAgcnmxnWTj4GWByf7wRybc56OpEROg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2013/6/1 David Salisbury <salisbury(at)globe(dot)gov>

> I would think this would be possible. I'm on 9.0.8
>

Data-Modifying CTEs are available since 9.1:
http://www.depesz.com/2011/03/16/waiting-for-9-1-writable-cte/

Please note, that CTE acts as an optimization fence, therefore you might
experience query slowdown.

--
Victor Y. Yegorov

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Janes 2013-05-31 22:21:14 Re: Using a CTE for an update
Previous Message Bosco Rama 2013-05-31 21:57:40 Re: Using a CTE for an update