Re: Bugs/slowness inserting and indexing cubes
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jay Levitt <jay.levitt@gmail.com>
Cc: pgsql-hackers@postgresql.org, Robert Haas <robertmhaas@gmail.com>
Date: 2012-02-08T19:15:09Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
pg_dump: Further reduce reliance on global variables.
- 1631598ea204 9.2.0 cited
-
Fix postmaster to attempt restart after a hot-standby crash.
- ef19c9dfaa99 9.1.3 cited
Jay Levitt <jay.levitt@gmail.com> writes: > [Posted at Andres's request] > TL;DR: Inserting and indexing cubes is slow and/or broken in various ways in > various builds. Not sure yet about most of these, but I know the reason for this one: > 2. In both 9.1 and 9.2, there is a long delay before CREATE INDEX realizes > it can't work on an unlogged table That error is thrown in gistbuildempty, which is not called until after we have finished building the main-fork index. This is a tad unfriendly when the table already contains lots of data. ISTM there are two ways we could fix this: 1. Introduce a duplicative test at the start of gistbuild(). 2. Rearrange the order of operations in index_build() so that the init fork is made first. Both of these are kinda ugly, but #2 puts the ugliness into someplace that shouldn't have to know about it, and furthermore someplace that's unlikely to get reverted if/when gist is fixed to not have this problem. So I think I favor #1. Other opinions anyone? regards, tom lane