Re: [HACKERS] pg_stat directory and pg_stat_statements

2014-05-28 Thread Ashesh Vashi
On Thu, May 29, 2014 at 11:32 AM, Peter Geoghegan wrote: > On Wed, May 28, 2014 at 10:49 PM, Fujii Masao > wrote: > > You're concerned about the scenario using pg_upgrade? > Yeah - I was. > I'm not sure the detail > > of pg_upgrade. But if it doesn't work properly, we should have gotten > > th

Re: [HACKERS] pg_stat directory and pg_stat_statements

2014-05-28 Thread Peter Geoghegan
On Wed, May 28, 2014 at 10:49 PM, Fujii Masao wrote: > You're concerned about the scenario using pg_upgrade? I'm not sure the detail > of pg_upgrade. But if it doesn't work properly, we should have gotten > the trouble I'm not worried about pg_upgrade, because by design pg_stat_statements will di

Re: [HACKERS] pg_stat directory and pg_stat_statements

2014-05-28 Thread Fujii Masao
On Thu, May 29, 2014 at 1:01 PM, Ashesh Vashi wrote: > On Thu, May 29, 2014 at 8:52 AM, Fujii Masao wrote: >> >> On Thu, May 29, 2014 at 4:55 AM, Tomas Vondra wrote: >> > On 28.5.2014 19:52, Fujii Masao wrote: >> >> On Thu, May 29, 2014 at 12:37 AM, Peter Geoghegan >> >> wrote: >> >>> On Wed, M

Re: [HACKERS] libpq: PQexec may block indefinitly

2014-05-28 Thread Amit Kapila
On Mon, May 26, 2014 at 1:34 PM, Dmitry Samonenko wrote: > 1. Connection to PSQL server is made without an option to specify SO_RCVTIMEO and SO_SNDTIMEO. Why is that? Is setting socket timeouts considered harmful? > 2. PQexec ultimately leads to PQwait, which after some function calls "lands" in p

Re: [HACKERS] Proposing pg_hibernate

2014-05-28 Thread Amit Kapila
On Wed, May 28, 2014 at 5:30 PM, Gurjeet Singh wrote: > On Wed, May 28, 2014 at 2:15 AM, Amit Kapila wrote: > > How about the cases when shared buffers already contain some > > data: > > a. Before Readers start filling shared buffers, if this cluster wishes > > to join replication as a slave and

Re: [HACKERS] pg_stat directory and pg_stat_statements

2014-05-28 Thread Ashesh Vashi
On Thu, May 29, 2014 at 8:52 AM, Fujii Masao wrote: > On Thu, May 29, 2014 at 4:55 AM, Tomas Vondra wrote: > > On 28.5.2014 19:52, Fujii Masao wrote: > >> On Thu, May 29, 2014 at 12:37 AM, Peter Geoghegan > wrote: > >>> On Wed, May 28, 2014 at 7:01 AM, Fujii Masao > wrote: > But pg_stat_s

[HACKERS] Odd uuid-ossp behavior on smew and shearwater

2014-05-28 Thread Tom Lane
Buildfarm critters smew and shearwater are reporting regression test failures that suggest that the UUID library can't get a system MAC address: http://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=smew&dt=2014-05-28%2023%3A38%3A28 http://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=shearwater

Re: [HACKERS] pg_stat directory and pg_stat_statements

2014-05-28 Thread Fujii Masao
On Thu, May 29, 2014 at 4:55 AM, Tomas Vondra wrote: > On 28.5.2014 19:52, Fujii Masao wrote: >> On Thu, May 29, 2014 at 12:37 AM, Peter Geoghegan wrote: >>> On Wed, May 28, 2014 at 7:01 AM, Fujii Masao wrote: But pg_stat_statements file is saved under $PGDATA/global yet. Is this inten

[HACKERS] Ancient bug in formatting.c/to_char()

2014-05-28 Thread Peter Geoghegan
Consider this example: [local]/postgres=# SELECT to_char(1e9::float8,'9D9'); to_char -- 10.0 (1 row) [local]/postgres=# SELECT to_char(1e20::float8,'9D9'); to_char 1000

Re: [HACKERS] SQL access to database attributes

2014-05-28 Thread Vik Fearing
On 05/26/2014 08:19 PM, Vik Fearing wrote: > On 05/26/2014 07:10 AM, Stephen Frost wrote: >> * Tom Lane (t...@sss.pgh.pa.us) wrote: >>> I don't really object to doing an unlocked check for another such >>> database, but I'm not convinced that additional locking to try to >>> prevent a race is worth

[HACKERS] Avoiding re-creation of uuid_t state with OSSP UUID

2014-05-28 Thread Tom Lane
While mucking around with contrib/uuid-ossp, I realized that its usage of the OSSP UUID library is really rather broken: it creates and destroys a uuid_t object for each call of the UUID creation functions. This is not the way you're supposed to use that library. The uuid_t object is meant to hol

Re: [HACKERS] Extended Prefetching using Asynchronous IO - proposal and patch

2014-05-28 Thread Peter Geoghegan
On Wed, May 28, 2014 at 5:59 PM, Claudio Freire wrote: > For nestloop, correct me if I'm wrong, but index scan nodes don't have > visibility of the next tuple to be searched for. Nested loop joins are considered a particularly compelling case for prefetching, actually. -- Peter Geoghegan --

Re: [HACKERS] Extended Prefetching using Asynchronous IO - proposal and patch

2014-05-28 Thread Claudio Freire
On Wed, May 28, 2014 at 6:51 PM, Peter Geoghegan wrote: > Have you thought about things like specialized prefetching for nested > loop joins? Currently, such a thing would need some non-trivial changes to the execution nodes, I believe. For nestloop, correct me if I'm wrong, but index scan nodes

Re: [HACKERS] Compression of full-page-writes

2014-05-28 Thread Bruce Momjian
On Wed, May 28, 2014 at 04:04:13PM +0100, Simon Riggs wrote: > On 28 May 2014 15:34, Fujii Masao wrote: > > >> Also, compress_backup_block GUC needs to be merged with full_page_writes. > > > > Basically I agree with you because I don't want to add new GUC very similar > > to > > the existing one

[HACKERS] Re: [COMMITTERS] pgsql: Fix bogus %name-prefix option syntax in all our Bison files.

2014-05-28 Thread Andres Freund
On 2014-05-28 19:12:44 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2014-05-28 18:52:22 -0400, Tom Lane wrote: > >> and IMO we should also lobby the Bison people to not emit the > >> deprecation warnings yet. > > > That's a good idea. What i've been thinking about is to add > > -Wno-depr

Re: [HACKERS] [COMMITTERS] pgsql: Fix bogus %name-prefix option syntax in all our Bison files.

2014-05-28 Thread Tom Lane
Andres Freund writes: > On 2014-05-28 18:52:22 -0400, Tom Lane wrote: >> and IMO we should also lobby the Bison people to not emit the >> deprecation warnings yet. > That's a good idea. What i've been thinking about is to add > -Wno-deprecated to the bison rule in the interim. Maybe after a > con

[HACKERS] Re: [COMMITTERS] pgsql: Fix bogus %name-prefix option syntax in all our Bison files.

2014-05-28 Thread Andres Freund
On 2014-05-28 18:52:22 -0400, Tom Lane wrote: > I guess we have to revert this Looks like it. > and IMO we should also lobby the Bison people to not emit the > deprecation warnings yet. That's a good idea. What i've been thinking about is to add -Wno-deprecated to the bison rule in the interim.

Re: [HACKERS] [COMMITTERS] pgsql: Fix bogus %name-prefix option syntax in all our Bison files.

2014-05-28 Thread Tom Lane
Andres Freund writes: > On 2014-05-28 22:55:28 +0200, Andres Freund wrote: >> On 2014-05-28 19:42:35 +, Tom Lane wrote: >>> Fix bogus %name-prefix option syntax in all our Bison files. >> Are you sure about this? When I saw those warnings first after debian >> unstable got bison 3.0 I've read

Re: [HACKERS] replication protocol documentation inconsistencies

2014-05-28 Thread Andres Freund
Hi, On 2014-05-21 07:29:53 -0400, Peter Eisentraut wrote: > Looking at > http://www.postgresql.org/docs/devel/static/protocol-replication.html > under START_REPLICATION it goes > > """ > The payload of each CopyData message from server to the client contains > a message of one of the following fo

Re: [HACKERS] json casts

2014-05-28 Thread Andrew Dunstan
On 05/27/2014 07:25 PM, Andrew Dunstan wrote: On 05/27/2014 07:17 PM, Tom Lane wrote: Stephen Frost writes: * Andrew Dunstan (and...@dunslane.net) wrote: Given that this would be a hard coded behaviour change, is it too late to do this for 9.4? No, for my 2c. If we do it by adding casts t

Re: [HACKERS] CREATE REPLICATION SLOT fails on a timeout

2014-05-28 Thread Andres Freund
Hi, On 2014-05-17 01:34:25 +0200, Andres Freund wrote: > On 2014-05-16 17:02:33 -0400, Steve Singer wrote: > > >I don't think that's going to cut it though. The creation can take > > >longer than whatever wal_sender_timeout is set to (when there's lots of > > >longrunning transactions). I think ch

Re: [HACKERS] SP-GiST bug.

2014-05-28 Thread Tom Lane
Teodor Sigaev writes: > create table xxx ( t text); > insert into xxx select 'x' || v::text from generate_series(1, 291) as v; > insert into xxx values (''); > create index xxxidx on xxx using spgist (t); Fun! > And postgres will eat memory forever. It seems to me that checkAllTheSame > wron

Re: [HACKERS] Extended Prefetching using Asynchronous IO - proposal and patch

2014-05-28 Thread Peter Geoghegan
On Tue, May 27, 2014 at 3:17 PM, John Lumby wrote: > Below I am pasting the README we have written for this new functionality > which mentions some of the measurements, advantages (and disadvantages) > and we welcome all and any comments on this. I think that this is likely to be a useful area to

Re: [HACKERS] Extended Prefetching using Asynchronous IO - proposal and patch

2014-05-28 Thread Heikki Linnakangas
On 05/28/2014 11:52 PM, John Lumby wrote: The patch is attached. It is based on clone of today's 9.4dev source. I have noticed that this source is (not suprisingly) quite a moving target at present, meaning that this patch becomes stale quite quickly. So although this copy is fine for reviewing,

Re: [HACKERS] Re: popen and pclose redefinitions causing many warning in Windows build

2014-05-28 Thread Bruce Momjian
On Wed, May 28, 2014 at 12:29:28PM -0400, Tom Lane wrote: > Bruce Momjian writes: > > I think this is caused because the variable is not defined as SOCKET. > > The attached patch fixes this. This should prevent the warning. > > Surely that's just going to move the errors somewhere else. The ca

Re: [HACKERS] pg_stat directory and pg_stat_statements

2014-05-28 Thread Tomas Vondra
On 28.5.2014 19:52, Fujii Masao wrote: > On Thu, May 29, 2014 at 12:37 AM, Peter Geoghegan wrote: >> On Wed, May 28, 2014 at 7:01 AM, Fujii Masao wrote: >>> But pg_stat_statements file is saved under $PGDATA/global yet. >>> Is this intentional or just oversight? >> >> >> I think it's an oversight

Re: [HACKERS] jsonb failed assertions

2014-05-28 Thread Heikki Linnakangas
On 05/28/2014 04:13 AM, Peter Geoghegan wrote: On Wed, May 21, 2014 at 4:53 AM, Heikki Linnakangas wrote: Hmm. The patch looks correct as far as it goes. But that function is still a bit funny. When it compares two identical arrays (or objects), and reaches the WJB_END_ARRAY token, it will stil

Re: [HACKERS] Bison 3.0 updates

2014-05-28 Thread Peter Eisentraut
On 5/28/14, 2:43 PM, Tom Lane wrote: > Peter Eisentraut writes: >> What they want is that you use >> %name-prefix "base_yy" >> instead of >> %name-prefix="base_yy" >> That makes the warning go away. > > Oh really!? > >> The %something=something syntax is not documented anywhere, so it lo

Re: [HACKERS] Bison 3.0 updates

2014-05-28 Thread Tom Lane
Peter Eisentraut writes: > What they want is that you use > %name-prefix "base_yy" > instead of > %name-prefix="base_yy" > That makes the warning go away. Oh really!? > The %something=something syntax is not documented anywhere, so it looks > like it worked more or less by accident. We

Re: [HACKERS] Bison 3.0 updates

2014-05-28 Thread Peter Eisentraut
On 5/21/14, 12:29 PM, Tom Lane wrote: > Vik Fearing writes: >> I'm getting some more of these, including some I thought you had fixed. >> Bison 3.0.2 on current head. > > I didn't do anything to suppress those warnings: > >> gram.y:172.1-13: warning: deprecated directive, use ‘%name-prefix’

Re: [HACKERS] Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE?

2014-05-28 Thread Stephen Frost
* ash (a...@commandprompt.com) wrote: > OK, forget functions, I now realize it's not feasible to consider. I never meant to imply that it was but rather to point out that we might have users who actually want to get an error when they're changing a type definition which goes beyond the scope of th

Re: [HACKERS] IMPORT FOREIGN SCHEMA statement

2014-05-28 Thread Stephen Frost
* David Fetter (da...@fetter.org) wrote: > On Tue, May 27, 2014 at 09:41:06AM -0400, Stephen Frost wrote: > > * David Fetter (da...@fetter.org) wrote: > > > - We make type mappings settable at the level of: > > > - FDW > > > - Instance (a.k.a. cluster) > > > - Database > > > - Schem

Re: [HACKERS] pg_stat directory and pg_stat_statements

2014-05-28 Thread Fujii Masao
On Thu, May 29, 2014 at 12:37 AM, Peter Geoghegan wrote: > On Wed, May 28, 2014 at 7:01 AM, Fujii Masao wrote: >> But pg_stat_statements file is saved under $PGDATA/global yet. >> Is this intentional or just oversight? > > > I think it's an oversight. OK, patch attached. I'm afraid that it's no

[HACKERS] libpq: PQexec may block indefinitly

2014-05-28 Thread Dmitry Samonenko
Greetings. I have an application which uses libpq for interaction with remote PostgreSQL server 9.2. Clients and Server nodes are running Linux and connection is established using TCPv4. The client application has some small fault-tolerance features, which are activated when server related problem

Re: [HACKERS] Re: popen and pclose redefinitions causing many warning in Windows build

2014-05-28 Thread Tom Lane
Bruce Momjian writes: > I think this is caused because the variable is not defined as SOCKET. > The attached patch fixes this. This should prevent the warning. Surely that's just going to move the errors somewhere else. The call site still expects the argument to be int[].

Re: [HACKERS] Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE?

2014-05-28 Thread Alvaro Herrera
ash wrote: > > Tom Lane writes: > > > > We don't store dependency information for function bodies, so there's > > no way to do this except by reparsing everything in sight. > OK, forget functions, I now realize it's not feasible to consider. > > Can we get back to re-defining views at least? H

Re: [HACKERS] Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE?

2014-05-28 Thread ash
Tom Lane writes: > > We don't store dependency information for function bodies, so there's > no way to do this except by reparsing everything in sight. > > A larger issue with the idea is that a function might fail reparsing > for reasons having nothing to do with the proposed ALTER TABLE. > For

Re: [HACKERS] pg_stat directory and pg_stat_statements

2014-05-28 Thread Peter Geoghegan
On Wed, May 28, 2014 at 7:01 AM, Fujii Masao wrote: > But pg_stat_statements file is saved under $PGDATA/global yet. > Is this intentional or just oversight? I think it's an oversight. -- Peter Geoghegan -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes t

Re: [HACKERS] Re: popen and pclose redefinitions causing many warning in Windows build

2014-05-28 Thread Jeff Janes
On Wed, May 28, 2014 at 7:38 AM, Bruce Momjian wrote: > On Mon, May 26, 2014 at 09:50:42PM +0900, Michael Paquier wrote: > > > x86_64-w64-mingw32-gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith > -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute > -Wformat-security -fno-s

[HACKERS] pg_sleep() doesn't work well with recovery conflict interrupts.

2014-05-28 Thread Andres Freund
Hi, Since a64ca63e59c11d8fe6db24eee3d82b61db7c2c83 pg_sleep() uses WaitLatch() to wait. That's fine in itself. But procsignal_sigusr1_handler, which is used e.g. when resolving recovery conflicts, doesn't unconditionally do a SetLatch(). That means that we'll we'll currently not be able to cancel

Re: [HACKERS] Compression of full-page-writes

2014-05-28 Thread Simon Riggs
On 28 May 2014 15:34, Fujii Masao wrote: >> Also, compress_backup_block GUC needs to be merged with full_page_writes. > > Basically I agree with you because I don't want to add new GUC very similar to > the existing one. > > But could you imagine the case where full_page_writes = off. Even in thi

Re: [HACKERS] Re: popen and pclose redefinitions causing many warning in Windows build

2014-05-28 Thread Bruce Momjian
On Mon, May 26, 2014 at 09:50:42PM +0900, Michael Paquier wrote: > > x86_64-w64-mingw32-gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith > > -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute > > -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard >

Re: [HACKERS] Compression of full-page-writes

2014-05-28 Thread Fujii Masao
On Tue, May 27, 2014 at 12:57 PM, Rahila Syed wrote: > Hello All, > > 0001-CompressBackupBlock_snappy_lz4_pglz extends patch on compression of > full page writes to include LZ4 and Snappy . Changes include making > "compress_backup_block" GUC from boolean to enum. Value of the GUC can be > OFF, pg

Re: [HACKERS] IMPORT FOREIGN SCHEMA statement

2014-05-28 Thread David Fetter
On Tue, May 27, 2014 at 09:41:06AM -0400, Stephen Frost wrote: > * David Fetter (da...@fetter.org) wrote: > > - We make type mappings settable at the level of: > > - FDW > > - Instance (a.k.a. cluster) > > - Database > > - Schema > > - Table > > - Column > > While I like th

Re: [HACKERS] Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE?

2014-05-28 Thread Tom Lane
ash writes: > Stephen Frost writes: >> We're not going to re-parse every function in the system, like, ever. > Well, only every *affected* function, which might be pretty minimal in > the usual case. We don't store dependency information for function bodies, so there's no way to do this except

[HACKERS] pg_stat directory and pg_stat_statements

2014-05-28 Thread Fujii Masao
Hi, Thanks to 187492b6c2e8cafc5b39063ca3b67846e8155d24, pgstat files are now saved to $PGDATA/pg_stat directory at shutdown. But pg_stat_statements file is saved under $PGDATA/global yet. Is this intentional or just oversight? Saving that file to global is harmless, though. Regards, -- Fujii Ma

Re: [HACKERS] pg_llog not mentioned in "Database File Layout"

2014-05-28 Thread Fabrízio de Royes Mello
On Wed, May 28, 2014 at 10:46 AM, Fujii Masao wrote: > On Wed, May 28, 2014 at 4:36 AM, Fabrízio de Royes Mello > wrote: > > > > On Mon, May 26, 2014 at 12:33 PM, Amit Langote > > wrote: > >> > >> Hi, > >> > >> Just noticed pg_llog is not mentioned in the "Database File Layout" > >> section. Wo

Re: [HACKERS] Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE?

2014-05-28 Thread Stephen Frost
* ash (a...@commandprompt.com) wrote: > What I am suggesting is that we try to detect such breakage at the time > the user runs ALTER TABLE (issuing NOTICE or ERROR at user discretion.) > If changing column type of a table breaks some functions down the way, > the user will hit it anyway, but bette

Re: [HACKERS] pg_llog not mentioned in "Database File Layout"

2014-05-28 Thread Andres Freund
Hi, On 2014-05-27 00:33:12 +0900, Amit Langote wrote: > Just noticed pg_llog is not mentioned in the "Database File Layout" > section. Wonder if it's an oversight? Yes, it should be mentioned there. I'll fix it. Greetings, Andres Freund -- Andres Freund http://www.2ndQuad

Re: [HACKERS] pg_llog not mentioned in "Database File Layout"

2014-05-28 Thread Fujii Masao
On Wed, May 28, 2014 at 4:36 AM, Fabrízio de Royes Mello wrote: > > On Mon, May 26, 2014 at 12:33 PM, Amit Langote > wrote: >> >> Hi, >> >> Just noticed pg_llog is not mentioned in the "Database File Layout" >> section. Wonder if it's an oversight? >> > > Yes, it is an oversight. Patch attached.

Re: [HACKERS] Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE?

2014-05-28 Thread ash
Stephen Frost writes: > * ash (a...@commandprompt.com) wrote: >> Stephen Frost writes: >> >> > Also consider MatViews which would need to be rewritten for the new >> > type >> >> That might be costly but not impossible. A user would need to do that >> anyway, though manually. > > I was point

Re: [HACKERS] Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE?

2014-05-28 Thread Stephen Frost
* ash (a...@commandprompt.com) wrote: > Stephen Frost writes: > > I hadn't even considered the idea that we would go through and try to > > change everything which referenced that view to now be the new type- but > > in that case, I'd want to know that there were other changes which were > > happe

Re: [HACKERS] Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE?

2014-05-28 Thread ash
Stephen Frost writes: > > I hadn't even considered the idea that we would go through and try to > change everything which referenced that view to now be the new type- but > in that case, I'd want to know that there were other changes which were > happening beyond the single view which I was updat

Re: [HACKERS] Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE?

2014-05-28 Thread ash
Robert Haas writes: > > Well, pg_dump is trying to do something different than what you're > trying to do here. pg_dump wants to make sure that the view, when fed > back into psql, creates the same view that exists now, regardless of > whether that's what the user created originally. For exampl

Re: [HACKERS] Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE?

2014-05-28 Thread Stephen Frost
* Robert Haas (robertmh...@gmail.com) wrote: > On Mon, May 26, 2014 at 10:39 AM, Stephen Frost wrote: > > It'd need to be explicitly requested, eg a 'CASCADE' option. > > Why? Would any sane person NOT want this behavior? [...] > Now maybe there are options other than trying to reproduce what

Re: [HACKERS] Proposing pg_hibernate

2014-05-28 Thread Gurjeet Singh
On Wed, May 28, 2014 at 2:15 AM, Amit Kapila wrote: > On Wed, May 28, 2014 at 7:31 AM, Gurjeet Singh wrote: > > Caveats >> -- >> >> - Buffer list is saved only when Postgres is shutdown in "smart" and >> "fast" modes. >> >> That is, buffer list is not saved when database crashes,

Re: [HACKERS] pg9.4b1: unhelpful error message when creating a collation

2014-05-28 Thread Fabien COELHO
Searching for that error turned up: https://sourceware.org/bugzilla/show_bug.cgi?id=14247 https://bugzilla.redhat.com/show_bug.cgi?id=827510 Indeed. Thanks for the pointer. I have reported the issue on launchpad (ubuntu bug tracking site) with a link to the redhat bug and Tom's test program

Re: [HACKERS] Allowing join removals for more join types

2014-05-28 Thread David Rowley
On Sun, May 25, 2014 at 5:42 AM, Tom Lane wrote: > David Rowley writes: > > I agree that there are not many cases left to remove the join that remain > > after is_simple_subquery() has decided not to pullup the subquery. Some > of > > the perhaps more common cases would be having windowing funct

Re: [HACKERS] rangetypes spgist questions/refactoring

2014-05-28 Thread Bruce Momjian
On Tue, May 20, 2014 at 11:18:29AM -0700, Jeff Davis wrote: > I think this can be done without breaking upgrade compatibility, because > I think the structure already satisfies the invariants I mentioned in > the other email (aside from the special case of a root tuple with two > nodes and no prefi

Re: [HACKERS] Race condition within _bt_findinsertloc()? (new page split code)

2014-05-28 Thread Heikki Linnakangas
On 05/28/2014 02:15 AM, Peter Geoghegan wrote: On Tue, May 27, 2014 at 12:19 PM, Heikki Linnakangas wrote: Fair enough, but I don't think that affects correctness either way (I don't think that you meant to imply that this was a necessary precaution that you'd taken - right?). Right. So, th

Re: [HACKERS] Spreading full-page writes

2014-05-28 Thread Heikki Linnakangas
On 05/28/2014 09:41 AM, Simon Riggs wrote: On 27 May 2014 13:20, Heikki Linnakangas wrote: On 05/27/2014 03:18 PM, Simon Riggs wrote: IIRC Koichi had a patch for prefetch during recovery. Heikki, is that the reason you also discussed changing the WAL record format to allow us to identify the