From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Gregory Stark <stark(at)enterprisedb(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: CommandCounterIncrement versus plan caching |
Date: | 2007-12-02 00:33:27 |
Message-ID: | 29457.1196555607@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> ExecutorStart could also determine when the query is a "write-only" query for
> which the provided command id won't be used for any snapshot checks (ie, a
> simple INSERT) and tell CCI not to bump the CCI if the previous CC even if
> it's dirty.
Ummm ... I'm not convinced about that. ExecutorStart doesn't have any
cheap way of inspecting the query carefully (eg, to see if it invokes
volatile functions), nor any understanding of what context the query is
being called in (eg, inside a subtransaction or volatile function).
> That would eliminate the other big use case where users can run out of
> command ids, batch inserts.
If you're planning to insert 4 billion rows without using COPY (or at
least multi-VALUES inserts), you've got more patience than I do.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Dragan Zubac | 2007-12-02 02:40:18 | Stored procedure issue |
Previous Message | Andrew Dunstan | 2007-12-02 00:01:53 | Re: Re: [HACKERS] [GENERAL] plperl and regexps with accented characters - incompatible? |