Re: [HACKERS] 8.4, One-Time Filter and subquery ( ... FROM function() union all ... )

2009-07-07 Thread Tom Lane
Sergey Burladyan eshkin...@gmail.com writes: Oh, now problem with simple query: 8.4.0 from Debian explain analyze select i from t where i = 10 and i = 1; QUERY PLAN

Re: [HACKERS] Maintenance Policy?

2009-07-07 Thread Greg Williamson
Andrew Dunstan wrote: ... branch | released | curr_version | curr_date | final_date ++--++ 8.4| 2009-07-01 | 8.4.0| 2009-07-01 | 8.3| 2008-02-04 | 8.3.7| 2009-03-16 | 8.2| 2006-12-05 | 8.2.13

Re: [HACKERS] WIP: Deferrable unique constraints

2009-07-07 Thread Jeff Davis
On Tue, 2009-07-07 at 19:38 +0100, Dean Rasheed wrote: This approach works well if the number of potential conflicts is small. [...] Curing the scalability problem by spooling the queue to disk shouldn't be too hard to do, but that doesn't address the problem that if a significant

[HACKERS] fmgroids.h not installed by make install in VPATH

2009-07-07 Thread Alvaro Herrera
Hi, It seems our makefiles fail to install fmgroids.h by make install in a VPATH build. The reason is that they do this (src/include/Makefile) for dir in $(SUBDIRS); do \ cp $(srcdir)/$$dir/*.h '$(DESTDIR)$(includedir_server)'/$$dir/ || exit; \ chmod $(INSTALL_DATA_MODE)

Re: [HACKERS] 8.4, One-Time Filter and subquery ( ... FROM function() union all ... )

2009-07-07 Thread Sergey Burladyan
Tom Lane t...@sss.pgh.pa.us writes: Sergey Burladyan eshkin...@gmail.com writes: Oh, now problem with simple query: 8.4.0 from Debian explain analyze select i from t where i = 10 and i = 1; QUERY PLAN

Re: [HACKERS] Re: Synch Rep: direct transfer of WAL file from the primary to the standby

2009-07-07 Thread Greg Stark
On Tue, Jul 7, 2009 at 8:12 PM, Tom Lanet...@sss.pgh.pa.us wrote: (If nothing else, there is no point in keeping so much WAL that catching up by scanning it would take longer than taking a fresh base backup. My impression from recent complaints about our WAL-reading speed is that that might be

Re: [HACKERS] New types for transparent encryption

2009-07-07 Thread Itagaki Takahiro
Heikki Linnakangas heikki.linnakan...@enterprisedb.com wrote: Greg Stark wrote: It would still protect against offline attacks such as against backup files. True, but filesystem-level encryption handles that scenario with less pain. Yes, I intended offline attacks, and also agree that

Re: [HACKERS] New types for transparent encryption

2009-07-07 Thread Greg Stark
On Wed, Jul 8, 2009 at 1:49 AM, Itagaki Takahiroitagaki.takah...@oss.ntt.co.jp wrote: Heikki Linnakangas heikki.linnakan...@enterprisedb.com wrote: Greg Stark wrote: It would still protect against offline attacks such as against backup files. True, but filesystem-level encryption handles

Re: [HACKERS] New types for transparent encryption

2009-07-07 Thread Andrew Chernow
Encrypting lots of small chunks of data with the same key is a very dangerous thing to do and it's very tricky to get right. Using an initialization vector (IV) is the way to go, recommend using CBC or CFB mode. Although, an IV is never supposed to be used more than once with the same key;

Re: [HACKERS] New types for transparent encryption

2009-07-07 Thread Andrew Dunstan
Andrew Chernow wrote: Encrypting lots of small chunks of data with the same key is a very dangerous thing to do and it's very tricky to get right. Using an initialization vector (IV) is the way to go, recommend using CBC or CFB mode. Although, an IV is never supposed to be used more

Re: [HACKERS] New types for transparent encryption

2009-07-07 Thread Andrew Chernow
Andrew Dunstan wrote: Andrew Chernow wrote: Encrypting lots of small chunks of data with the same key is a very dangerous thing to do and it's very tricky to get right. Using an initialization vector (IV) is the way to go, recommend using CBC or CFB mode. Although, an IV is never

Re: [HACKERS] *_collapse_limit, geqo_threshold

2009-07-07 Thread Robert Haas
On Tue, Jul 7, 2009 at 6:33 PM, Tom Lanet...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: On Jul 7, 2009, at 4:56 PM, Tom Lane t...@sss.pgh.pa.us wrote: My own thought is that from_collapse_limit has more justification, That's pretty much where I am with it, too.  The

Re: [HACKERS] Re: Synch Rep: direct transfer of WAL file from the primary to the standby

2009-07-07 Thread Fujii Masao
Hi, On Wed, Jul 8, 2009 at 12:49 AM, Tom Lanet...@sss.pgh.pa.us wrote: This design seems totally wrong to me.  It's confusing the master's pg_xlog directory with the archive.  We should *not* use pg_xlog as a long-term archive area; that's terrible from both a performance and a reliability

Re: [HACKERS] Re: Synch Rep: direct transfer of WAL file from the primary to the standby

2009-07-07 Thread Fujii Masao
Hi, On Wed, Jul 8, 2009 at 4:00 AM, Heikki Linnakangasheikki.linnakan...@enterprisedb.com wrote:  I would envision the slaves connecting to the master's replication port and asking feed me WAL beginning at LSN position thus-and-so, with no notion of WAL file boundaries exposed anyplace.

Re: [HACKERS] First CommitFest: July 15th

2009-07-07 Thread Joshua Tolley
On Thu, Jul 02, 2009 at 03:42:56PM +0100, Dave Page wrote: On Thu, Jul 2, 2009 at 3:22 PM, Joshua Tolleyeggyk...@gmail.com wrote: On Thu, Jul 02, 2009 at 08:41:27AM +0100, Dave Page wrote: As far as I'm aware, there's been no code review yet either, which would probably be a good idea.

[HACKERS] multi-threaded pgbench

2009-07-07 Thread Itagaki Takahiro
Pgbench is a famous tool to measure postgres performance, but nowadays it does not work well because it cannot use multiple CPUs. On the other hand, postgres server can use CPUs very well, so the bottle-neck of workload is *in pgbench*. Multi-threading would be a solution. The attached patch adds

Re: [HACKERS] [pgsql-www] commitfest.postgresql.org

2009-07-07 Thread Brendan Jurd
2009/7/8 Alvaro Herrera alvhe...@commandprompt.com: By the way, if the migration of the current commitfest was an automatic procedure, is there a chance that the old commitfests can be migrated as well? It wasn't really automatic as such. I used a few scripts that I saved in case we needed

Re: [HACKERS] New types for transparent encryption

2009-07-07 Thread Itagaki Takahiro
to...@tuxteam.de wrote: As other posters have put it, I'd be very sceptical of server-side decryption. If the server has all the necessary bits to decrypt the data, all bets are off. Server can access both encrypted data and its password, but we can put them in different disk drives. We

Re: [HACKERS] [pgsql-www] commitfest.postgresql.org

2009-07-07 Thread Brendan Jurd
2009/7/8 Peter Eisentraut pete...@gmx.net: I have the following concern: Likely, this tool and the overall process will evolve over time.  To pick an example that may or may not be actually useful, in the future we might want to change from a fixed list of patch sections to a free list of

Re: [HACKERS] New types for transparent encryption

2009-07-07 Thread Greg Stark
On Wed, Jul 8, 2009 at 6:43 AM, Itagaki Takahiroitagaki.takah...@oss.ntt.co.jp wrote: to...@tuxteam.de wrote: As other posters have put it, I'd be very sceptical of server-side decryption. If the server has all the necessary bits to decrypt the data, all bets are off. Server can access

<    1   2