Re: [HACKERS] INSERT...ON DUPLICATE KEY IGNORE

2013-08-31 Thread Peter Geoghegan
On Sat, Aug 31, 2013 at 7:53 PM, Peter Geoghegan wrote: > With a table with many unique indexes and many reasons to decide > to reject a tuple proposed for insertion by INSERT...ON DUPLICATE KEY > IGNORE, it isn't hard to imagine them all becoming heavily bloated > very quickly. There may be no i

Re: [HACKERS] INSERT...ON DUPLICATE KEY IGNORE

2013-08-31 Thread Peter Geoghegan
On Sat, Aug 31, 2013 at 7:38 PM, Peter Geoghegan wrote: >> Imo that solution is fairly elegant because it doesn't cause any heap >> bloat, and it causes the same amount of index bloat >> "insert-into-heap-first" type of solutions cause. > > I don't think that's a reasonable comparison. Bloating in

Re: [HACKERS] INSERT...ON DUPLICATE KEY IGNORE

2013-08-31 Thread Peter Geoghegan
On Sat, Aug 31, 2013 at 11:34 AM, Andres Freund wrote: >> > Won't S2 in this case exclusively lock a page in foo_a_key (the one >> > where 2 will reside on) for 3600s, while it's waiting for S1 to finish >> > while getting the speculative insertion into foo_b_key? >> >> Yes. The way the patch curr

Re: [HACKERS] CREATE FUNCTION .. SET vs. pg_dump

2013-08-31 Thread Stephen Frost
* Stefan Kaltenbrunner (ste...@kaltenbrunner.cc) wrote: > On 08/18/2013 05:40 PM, Tom Lane wrote: > > Stefan Kaltenbrunner writes: > >> While working on upgrading the database of the search system on > >> postgresql.org to 9.2 I noticed that the dumps that pg_dump generates on > >> that system are

Re: [HACKERS] CREATE FUNCTION .. SET vs. pg_dump

2013-08-31 Thread Stefan Kaltenbrunner
On 08/18/2013 05:40 PM, Tom Lane wrote: > Stefan Kaltenbrunner writes: >> While working on upgrading the database of the search system on >> postgresql.org to 9.2 I noticed that the dumps that pg_dump generates on >> that system are actually invalid and cannot be reloaded without being >> hacked o

Re: [HACKERS] [v9.4] row level security

2013-08-31 Thread Stephen Frost
KaiGai, * Kohei KaiGai (kai...@kaigai.gr.jp) wrote: > The point we shouldn't forget is information leakage via covert-channel > has less grade of threat than leakage via main-channel, because of > much less bandwidth. While true, this argument can't be used to simply ignore any and all covert cha

Re: [HACKERS] INSERT...ON DUPLICATE KEY IGNORE

2013-08-31 Thread Andres Freund
Hi, On 2013-08-30 19:38:24 -0700, Peter Geoghegan wrote: > On Fri, Aug 30, 2013 at 5:47 PM, Andres Freund wrote: > > While I ponder on it some more, could you explain whether I understood > > something correctly? Consider the following scenario: > > > > CREATE TABLE foo(a int UNIQUE, b int UNIQUE

Re: [HACKERS] dynamic shared memory

2013-08-31 Thread Robert Haas
On Fri, Aug 30, 2013 at 11:45 AM, Andres Freund wrote: >> The way I've designed it, no. If what we expect to be the control >> segment doesn't exist or doesn't conform to our expectations, we just >> assume that it's not really the control segment after all - e.g. >> someone rebooted, clearing al

Re: [HACKERS] dynamic shared memory

2013-08-31 Thread Robert Haas
On Thu, Aug 29, 2013 at 8:12 PM, Jim Nasby wrote: > On 8/13/13 8:09 PM, Robert Haas wrote: >> is removed, the segment automatically goes away (we could allow for >> server-lifespan segments as well with only trivial changes, but I'm >> not sure whether there are compelling use cases for that). > >