Re: [HACKERS] Triggers with DO functionality

2012-02-22 Thread Gianni Ciolli
On Fri, Feb 17, 2012 at 11:43:53AM -0500, Andrew Dunstan wrote: > On 02/17/2012 11:29 AM, David E. Wheeler wrote: > >On Feb 17, 2012, at 5:22 AM, Thom Brown wrote: > >>The purpose being to only have a single statement to set up the > >>trigger rather than setting up a separate trigger function whic

Re: [HACKERS] Should we add crc32 in libpgport?

2012-02-22 Thread Daniel Farina
On Thu, Feb 16, 2012 at 6:09 AM, Robert Haas wrote: > On Fri, Feb 3, 2012 at 7:33 PM, Daniel Farina wrote: >> Ah, yes, I think my optimizations were off when building, or >> something.  I didn't get such verbosity at first, and then I remember >> doing something slightly different and then gettin

Re: [HACKERS] 16-bit page checksums for 9.2

2012-02-22 Thread Robert Haas
On Wed, Feb 22, 2012 at 6:17 PM, Peter Geoghegan wrote: > I decided that it would be worth benchmarking this patch. > Specifically, I tested: > > master, as a basis of comparison > > checksum16_with_wallogged_hint_bits.v10.patch, page_checksums = 'on' > > checksum16_with_wallogged_hint_bits.v10.pa

Re: [HACKERS] Displaying accumulated autovacuum cost

2012-02-22 Thread Robert Haas
On Tue, Feb 21, 2012 at 11:55 PM, Greg Smith wrote: > I just took this for spin.  Everything I tried worked, docs built and read > fine.  The description of how "dirty" differs from "written" is a bit > cryptic, but I don't see an easy way to do better without a whole new > section on that topic.

Re: [HACKERS] [PATCH] typo fix

2012-02-22 Thread Robert Haas
On Wed, Feb 22, 2012 at 8:47 AM, Sandro Santilli wrote: > Typo in a comment... Committed, thanks. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscripti

Re: [HACKERS] leakproof

2012-02-22 Thread Robert Haas
On Wed, Feb 22, 2012 at 6:30 PM, Tom Lane wrote: > Andrew Dunstan writes: >> On 02/22/2012 04:29 PM, Marc Munro wrote: >>> As the developer of veil I feel marginally qualified to bikeshed here: >>> how about "silent"?  A silent function being one that will not blab. > >> I also made this suggesti

[HACKERS] Commit a445cb92 not tested without OpenSSL support?

2012-02-22 Thread Affan Salman
Hey folks It appears that the commit a445cb92ef5b3a31313ebce30e18cc1d6e0bdecb causes ld to bail when building *without* OpenSSL support: utils/misc/guc.o:(.data+0x4d80): undefined reference to `ssl_cert_file' utils/misc/guc.o:(.data+0x4ddc): undefined reference to `ssl_key_file' utils/misc/guc.o:

Re: [HACKERS] 16-bit page checksums for 9.2

2012-02-22 Thread David Fetter
On Wed, Feb 22, 2012 at 11:17:53PM +, Peter Geoghegan wrote: > I decided that it would be worth benchmarking this patch. > Specifically, I tested: > > master, as a basis of comparison > > checksum16_with_wallogged_hint_bits.v10.patch, page_checksums = 'on' > > checksum16_with_wallogged_hint_

Re: [HACKERS] pg_upgrade --logfile option documentation

2012-02-22 Thread Bruce Momjian
On Wed, Feb 22, 2012 at 10:50:07PM +0200, Peter Eisentraut wrote: > On ons, 2012-02-22 at 14:38 -0500, Bruce Momjian wrote: > > How about? > > > > -l, --logfile=FILENAMElog internal activity to file > > That sounds better. Done. -- Bruce Momjian http://momjian.us Enter

Re: [HACKERS] pg_upgrade --logfile option documentation

2012-02-22 Thread Bruce Momjian
On Wed, Feb 22, 2012 at 05:49:26PM -0500, Robert Haas wrote: > On Wed, Feb 22, 2012 at 3:51 PM, Peter Eisentraut wrote: > > On sön, 2012-02-19 at 13:24 -0500, Robert Haas wrote: > >> But I also think the > >> logging needs improvement.  Right now, we studiously redirect both > >> stdout and stderr

Re: [HACKERS] SSI rw-conflicts and 2PC

2012-02-22 Thread Jeff Davis
On Tue, 2012-02-14 at 19:32 -0500, Dan Ports wrote: > On Tue, Feb 14, 2012 at 09:27:58AM -0600, Kevin Grittner wrote: > > Heikki Linnakangas wrote: > > > On 14.02.2012 04:57, Dan Ports wrote: > > >> The easiest answer would be to just treat every prepared > > >> transaction found during recovery a

Re: [HACKERS] leakproof

2012-02-22 Thread Tom Lane
Andrew Dunstan writes: > On 02/22/2012 04:29 PM, Marc Munro wrote: >> As the developer of veil I feel marginally qualified to bikeshed here: >> how about "silent"? A silent function being one that will not blab. > I also made this suggestion later in the day. SILENT isn't a bad idea. It seems

Re: [HACKERS] 16-bit page checksums for 9.2

2012-02-22 Thread Peter Geoghegan
I decided that it would be worth benchmarking this patch. Specifically, I tested: master, as a basis of comparison checksum16_with_wallogged_hint_bits.v10.patch, page_checksums = 'on' checksum16_with_wallogged_hint_bits.v10.patch, page_checksums = 'off' This test was performed using pgbench-too

Re: [HACKERS] WIP: proof of concept patch for fixing quantified regex backrefs

2012-02-22 Thread Robert Haas
On Wed, Feb 22, 2012 at 11:19 AM, Tom Lane wrote: > Attached is as far as I've gotten with fixing depesz's complaint about > backrefs embedded within larger quantified expressions (the complaint > being that only the last match of the backref is checked properly). > This is per the analysis I post

Re: [HACKERS] pg_upgrade --logfile option documentation

2012-02-22 Thread Robert Haas
On Wed, Feb 22, 2012 at 3:51 PM, Peter Eisentraut wrote: > On sön, 2012-02-19 at 13:24 -0500, Robert Haas wrote: >> But I also think the >> logging needs improvement.  Right now, we studiously redirect both >> stdout and stderr to /dev/null; maybe it would be better to redirect >> stdout to /dev/n

[HACKERS] swapcache-style cache?

2012-02-22 Thread james
Has anyone considered managing a system like the DragonFLY swapcache for a DBMS like PostgreSQL? ie where the admin can assign drives with good random read behaviour (but perhaps also-ran random write) such as SSDs to provide a cache for blocks that were dirtied, with async write that hopefull

Re: [HACKERS] VACUUM ANALYZE is faster than ANALYZE?

2012-02-22 Thread Robert Haas
On Wed, Feb 22, 2012 at 2:23 PM, Simon Riggs wrote: > The industry accepted description for non-sequential access is "random > access" whether or not the function that describes the movement is > entirely random. To argue otherwise is merely hairsplitting. I don't think so. For example, a bitmap

Re: [HACKERS] leakproof

2012-02-22 Thread Robert Haas
On Wed, Feb 22, 2012 at 10:21 AM, Tom Lane wrote: > Robert Haas writes: >> Anyway, to your point, I suppose I might hesitate to mark factorial >> leak-proof even if it didn't throw an error on overflow, because the >> time it takes to return an answer for larger inputs does grow rather >> rapidly

Re: [HACKERS] determining a type oid from the name

2012-02-22 Thread Dimitri Fontaine
Andrew Dunstan writes: > I fully agree it's not bulletproof, but I'm not sure what alternative there > is. If you know the type has been installed as an extension you can look at the extension's content in pg_depend, much like \dx+ does, limiting to only types whose name matches. Regards, -- Di

Re: [HACKERS] leakproof

2012-02-22 Thread Andrew Dunstan
On 02/22/2012 04:29 PM, Marc Munro wrote: On Wed, 2012-02-22 at 12:44 -0400, Andrew Dunstan wrote: Returning to the original point, I've come to the conclusion that "pure" isn't the right way to go. The trouble with "leakproof" is that it doesn't point to what it is that's not leaking, which

Re: [HACKERS] leakproof

2012-02-22 Thread Marc Munro
On Wed, 2012-02-22 at 12:44 -0400, Andrew Dunstan wrote: > Returning to the original point, I've come to the conclusion that > "pure" > isn't the right way to go. The trouble with "leakproof" is that it > doesn't point to what it is that's not leaking, which is information > rather than memory,

[HACKERS] Proposal: PL/pgPSM for 9.3

2012-02-22 Thread Pavel Stehule
Hello I am sending a proposal for PSM language support. It is early maybe. I would to have a patch for first 9.3 commitfest. Proposal PL/pgPSM I propose to integrate a PSM language into the core. This language is defined as part of ANSI SQL - SQL/PSM and is used in some well known databases like

Re: [HACKERS] REASSIGN OWNED lacks support for FDWs

2012-02-22 Thread Alvaro Herrera
Excerpts from Tom Lane's message of mar feb 21 21:30:39 -0300 2012: > > Alvaro Herrera writes: > > Excerpts from Alvaro Herrera's message of mar feb 21 15:54:03 -0300 2012: > >> Excerpts from Tom Lane's message of lun feb 20 12:37:45 -0300 2012: > >>> As per http://archives.postgresql.org/pgsql-

Re: [HACKERS] pg_upgrade --logfile option documentation

2012-02-22 Thread Peter Eisentraut
On sön, 2012-02-19 at 13:24 -0500, Robert Haas wrote: > But I also think the > logging needs improvement. Right now, we studiously redirect both > stdout and stderr to /dev/null; maybe it would be better to redirect > stdout to /dev/null and NOT redirect stderr. If that generates too > much chatt

Re: [HACKERS] pg_upgrade --logfile option documentation

2012-02-22 Thread Peter Eisentraut
On ons, 2012-02-22 at 14:38 -0500, Bruce Momjian wrote: > How about? > > -l, --logfile=FILENAMElog internal activity to file That sounds better. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/m

Re: [HACKERS] pg_upgrade --logfile option documentation

2012-02-22 Thread Bruce Momjian
On Wed, Feb 22, 2012 at 05:22:29PM -0300, Alvaro Herrera wrote: > > Excerpts from Bruce Momjian's message of mié feb 22 17:01:10 -0300 2012: > > On Sun, Feb 19, 2012 at 01:24:34PM -0500, Robert Haas wrote: > > > > One pretty obvious improvement would be: if pg_upgrade fails after > > > renaming t

Re: [HACKERS] determining a type oid from the name

2012-02-22 Thread Andrew Dunstan
On 02/22/2012 03:20 PM, Tom Lane wrote: Andrew Dunstan writes: Maybe I need to be more clear. The C code I'm writing will process composites. I want to cache the Oids of certain non-builtin types in the function info's fn_extra, and then be able to test whether or not the fields in the compos

Re: [HACKERS] REASSIGN OWNED lacks support for FDWs

2012-02-22 Thread Alvaro Herrera
Excerpts from Etsuro Fujita's message of mié feb 22 05:37:36 -0300 2012: > I did some tests. The results look good to me. Please find attached a > logfile. Thanks. > My only concern on the patch is > > +static void > +AlterForeignServerOwner_internal(Relation rel, HeapTuple tup, Oid > newOwn

Re: [HACKERS] pg_upgrade --logfile option documentation

2012-02-22 Thread Alvaro Herrera
Excerpts from Bruce Momjian's message of mié feb 22 17:01:10 -0300 2012: > On Sun, Feb 19, 2012 at 01:24:34PM -0500, Robert Haas wrote: > > One pretty obvious improvement would be: if pg_upgrade fails after > > renaming the control file for the old cluster out of the way - say, > > while loading

Re: [HACKERS] determining a type oid from the name

2012-02-22 Thread Tom Lane
Andrew Dunstan writes: > Maybe I need to be more clear. The C code I'm writing will process > composites. I want to cache the Oids of certain non-builtin types in the > function info's fn_extra, and then be able to test whether or not the > fields in the composites are of those types. What's y

Re: [HACKERS] pg_upgrade --logfile option documentation

2012-02-22 Thread Bruce Momjian
On Sun, Feb 19, 2012 at 01:24:34PM -0500, Robert Haas wrote: > As a more general comment, I think that the way pg_upgrade does > logging right now is absolutely terrible. IME, it is utterly > impossible to understand what has gone wrong with pg_upgrade without > looking at the log file. And by de

Re: [HACKERS] pg_upgrade --logfile option documentation

2012-02-22 Thread Bruce Momjian
On Sun, Feb 19, 2012 at 01:13:10PM +0200, Peter Eisentraut wrote: > The documentation of the pg_upgrade -l/--logfile option never made much > sense to me: > > -l, --logfile=FILENAMElog session activity to file > > I don't know what "session" means for pg_upgrade, so I never used it. >

Re: [HACKERS] VACUUM ANALYZE is faster than ANALYZE?

2012-02-22 Thread Simon Riggs
On Wed, Feb 22, 2012 at 3:29 PM, Tom Lane wrote: > Simon Riggs writes: >> On Tue, Feb 21, 2012 at 2:00 PM, Pavel Stehule >> wrote: >>> I had to reply to query about usage VACUUM ANALYZE or ANALYZE. I >>> expected so ANALYZE should be faster then VACUUM ANALYZE. > >> VACUUM ANALYZE scans the who

Re: [HACKERS] determining a type oid from the name

2012-02-22 Thread Andrew Dunstan
On 02/22/2012 01:36 PM, Thom Brown wrote: On 22 February 2012 18:34, Kevin Grittner wrote: Thom Brown wrote: Does this help? test=# SELECT pg_typeof('4834.34'::numeric)::oid; pg_typeof --- 1700 (1 row) Wouldn't it be easier to do this instead? test=# SELECT 'numeric'::re

Re: [HACKERS] VACUUM ANALYZE is faster than ANALYZE?

2012-02-22 Thread Pavel Stehule
2012/2/22 Kevin Grittner : > Pavel Stehule wrote: > >> usual pattern in our application is >> >> create table xx1 as select >> analyze xx1 >> create table xx2 as select from xx1, >> analyze xx2 >> create table xx3 as select ... from xx3, >> analyze xx3 >> create table xx4 as se

Re: [HACKERS] Publish checkpoint timing and sync files summary data to pg_stat_bgwriter

2012-02-22 Thread Peter Geoghegan
On 16 January 2012 06:28, Greg Smith wrote: > One of the most useful bits of feedback on how well checkpoint I/O is going > is the amount of time taken to sync files to disk.  Right now the only way > to get that is to parse the logs.  The attached patch publishes the most > useful three bits of d

Re: [HACKERS] VACUUM ANALYZE is faster than ANALYZE?

2012-02-22 Thread Kevin Grittner
Pavel Stehule wrote: > usual pattern in our application is > > create table xx1 as select > analyze xx1 > create table xx2 as select from xx1, > analyze xx2 > create table xx3 as select ... from xx3, > analyze xx3 > create table xx4 as select ... from xx1, ... > > tables xx

Re: [HACKERS] pg_test_timing tool for EXPLAIN ANALYZE overhead

2012-02-22 Thread Marti Raudsepp
On Wed, Feb 22, 2012 at 19:36, Greg Smith wrote: > From the patch: > > Newer operating systems may check for the known TSC problems and > switch to a slower, more stable clock source when they are seen. > If your system supports TSC time but doesn't default to that, it > may be disabled for a good

Re: [HACKERS] VACUUM ANALYZE is faster than ANALYZE?

2012-02-22 Thread Pavel Stehule
2012/2/22 Robert Haas : > On Wed, Feb 22, 2012 at 8:13 AM, Nicolas Barbier > wrote: >> 2012/2/22 Robert Haas : >> >>> On Tue, Feb 21, 2012 at 9:00 AM, Pavel Stehule >>> wrote: >>> I had to reply to query about usage VACUUM ANALYZE or ANALYZE. I expected so ANALYZE should be faster then

Re: [HACKERS] determining a type oid from the name

2012-02-22 Thread Thom Brown
On 22 February 2012 18:34, Kevin Grittner wrote: > Thom Brown wrote: >> Does this help? >> >> test=# SELECT pg_typeof('4834.34'::numeric)::oid; >>  pg_typeof >> --- >>       1700 >> (1 row) > > Wouldn't it be easier to do this instead? > > test=# SELECT 'numeric'::regtype::oid; >  oid > -

Re: [HACKERS] determining a type oid from the name

2012-02-22 Thread Kevin Grittner
Thom Brown wrote: > Does this help? > > test=# SELECT pg_typeof('4834.34'::numeric)::oid; > pg_typeof > --- > 1700 > (1 row) Wouldn't it be easier to do this instead? test=# SELECT 'numeric'::regtype::oid; oid -- 1700 (1 row) -Kevin -- Sent via pgsql-hackers mailing

Re: [HACKERS] determining a type oid from the name

2012-02-22 Thread Thom Brown
On 22 February 2012 18:00, Andrew Dunstan wrote: > Say I'm writing an extension X, and I want to process data values from > another extension that creates type Y (e.g. an hstore), what's the best way > to determine the Oid of type Y in my module X code? SPI code that runs > "select 'something'::Y"

[HACKERS] determining a type oid from the name

2012-02-22 Thread Andrew Dunstan
Say I'm writing an extension X, and I want to process data values from another extension that creates type Y (e.g. an hstore), what's the best way to determine the Oid of type Y in my module X code? SPI code that runs "select 'something'::Y" and then examines the oid in SPI_tuptable? Or do we h

Re: [HACKERS] VACUUM ANALYZE is faster than ANALYZE?

2012-02-22 Thread Jeroen Vermeulen
On 2012-02-22 16:29, Tom Lane wrote: (Snip context) VACUUM ANALYZE consists of two separate passes, VACUUM and then ANALYZE, and the second pass is going to be "random" I/O by your definition no matter what. I don't suppose there's a cas

Re: [HACKERS] pg_test_timing tool for EXPLAIN ANALYZE overhead

2012-02-22 Thread Greg Smith
On 02/22/2012 12:25 PM, Marti Raudsepp wrote: On Wed, Feb 22, 2012 at 18:44, Greg Smith wrote: As far as I've been able to tell, there aren't any issues unique to Windows there. Multiple cores can have their TSC results get out of sync on Windows for the same reason they do on Linux systems, a

Re: [HACKERS] WIP: URI connection string support for libpq

2012-02-22 Thread Greg Smith
This submission has turned into a bit of a mess. I did the closest thing to a review the day after it was submitted; follow-up review attempts had issues applying the patch. And it's been stuck there. The patch is still fine, I just tested it out to pick this back up myself again. I think t

Re: [HACKERS] pg_test_timing tool for EXPLAIN ANALYZE overhead

2012-02-22 Thread Marti Raudsepp
On Wed, Feb 22, 2012 at 18:44, Greg Smith wrote: > As far as I've been able to tell, there aren't any issues unique to Windows > there.  Multiple cores can have their TSC results get out of sync on Windows > for the same reason they do on Linux systems, and there's also the same > frequency/temper

Re: [HACKERS] foreign key locks, 2nd attempt

2012-02-22 Thread Noah Misch
On Mon, Feb 13, 2012 at 07:16:58PM -0300, Alvaro Herrera wrote: > Okay, so this patch fixes the truncation and wraparound issues through a > mechanism much like pg_clog's: it keeps track of the oldest possibly > existing multis on each and every table, and then during tuple freezing > those are rem

Re: [HACKERS] pg_test_timing tool for EXPLAIN ANALYZE overhead

2012-02-22 Thread Greg Smith
On 02/22/2012 11:10 AM, Jay Levitt wrote: N.B.: Windows has at least two clock APIs, timeGetTime and QueryPerformanceCounters (and probably more, these days). They rely on different hardware clocks, and can get out of sync with each other; meanwhile, QueryPerformanceCounters can get out of sync w

Re: [HACKERS] Patch: add timing of buffer I/O requests

2012-02-22 Thread Ants Aasma
On Wed, Feb 22, 2012 at 4:43 PM, Greg Smith wrote: > Attached are updated versions of this feature without the pg_test_timing > tool part, since I broke that out into another discussion thread.  I've > split the part that updates pg_stat_statistics out from the main feature > too, separate patch a

Re: [HACKERS] leakproof

2012-02-22 Thread Andrew Dunstan
On 02/22/2012 11:14 AM, Kevin Grittner wrote: Andrew Dunstan wrote: Returning to the original point, I've come to the conclusion that "pure" isn't the right way to go. The trouble with "leakproof" is that it doesn't point to what it is that's not leaking, which is information rather than mem

[HACKERS] WIP: proof of concept patch for fixing quantified regex backrefs

2012-02-22 Thread Tom Lane
Attached is as far as I've gotten with fixing depesz's complaint about backrefs embedded within larger quantified expressions (the complaint being that only the last match of the backref is checked properly). This is per the analysis I posted at https://sourceforge.net/tracker/index.php?func=detail

Re: [HACKERS] leakproof

2012-02-22 Thread Kevin Grittner
Andrew Dunstan wrote: > Returning to the original point, I've come to the conclusion that > "pure" isn't the right way to go. The trouble with "leakproof" is > that it doesn't point to what it is that's not leaking, which is > information rather than memory, as many might imagine (and I did) > w

Re: [HACKERS] pg_test_timing tool for EXPLAIN ANALYZE overhead

2012-02-22 Thread Jay Levitt
Greg Smith wrote: Anyway, the patch does now includes several examples and a short primer on PC clock hardware, to help guide what good results look like and why they've been impossible to obtain in the past. That's a bit Linux-centric, but the hardware described covers almost all systems using

Re: [HACKERS] pg_basebackup -x stream from the standby gets stuck

2012-02-22 Thread Magnus Hagander
On Tue, Feb 7, 2012 at 12:30, Fujii Masao wrote: > Hi, > > http://www.depesz.com/2012/02/03/waiting-for-9-2-pg_basebackup-from-slave/ >> =$ time pg_basebackup -D /home/pgdba/slave2/ -F p -x stream -c fast -P -v -h >> 127.0.0.1 -p 5921 -U replication >> xlog start point: 2/AC4E2600 >> pg_basebacku

Re: [HACKERS] leakproof

2012-02-22 Thread Andrew Dunstan
On 02/22/2012 10:21 AM, Tom Lane wrote: Robert Haas writes: Anyway, to your point, I suppose I might hesitate to mark factorial leak-proof even if it didn't throw an error on overflow, because the time it takes to return an answer for larger inputs does grow rather rapidly. But it's kind of

Re: [HACKERS] VACUUM ANALYZE is faster than ANALYZE?

2012-02-22 Thread k...@rice.edu
On Wed, Feb 22, 2012 at 10:29:56AM -0500, Tom Lane wrote: > Simon Riggs writes: > > On Tue, Feb 21, 2012 at 2:00 PM, Pavel Stehule > > wrote: > >> I had to reply to query about usage VACUUM ANALYZE or ANALYZE. I > >> expected so ANALYZE should be faster then VACUUM ANALYZE. > > > VACUUM ANALYZE

Re: [HACKERS] VACUUM ANALYZE is faster than ANALYZE?

2012-02-22 Thread Tom Lane
Simon Riggs writes: > On Tue, Feb 21, 2012 at 2:00 PM, Pavel Stehule > wrote: >> I had to reply to query about usage VACUUM ANALYZE or ANALYZE. I >> expected so ANALYZE should be faster then VACUUM ANALYZE. > VACUUM ANALYZE scans the whole table sequentially. > ANALYZE accesses a random sample

Re: [HACKERS] leakproof

2012-02-22 Thread Tom Lane
Robert Haas writes: > Anyway, to your point, I suppose I might hesitate to mark factorial > leak-proof even if it didn't throw an error on overflow, because the > time it takes to return an answer for larger inputs does grow rather > rapidly. But it's kind of a moot point because the error makes

Re: [HACKERS] Incorrect behaviour when using a GiST index on points

2012-02-22 Thread Alexander Korotkov
Attached patch fixes GiST behaviour without altering operators behaviour. -- With best regards, Alexander Korotkov. *** a/src/backend/access/gist/gistproc.c --- b/src/backend/access/gist/gistproc.c *** *** 836,842 gist_box_picksplit(PG_FUNCTION_ARGS) } /* ! * Equality

[HACKERS] [PATCH] typo fix

2012-02-22 Thread Sandro Santilli
Typo in a comment... --strk; >From cfca9507df8612a48cad341653f8e9193c6b7e08 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 22 Feb 2012 11:32:48 +0100 Subject: [PATCH] typo fix --- src/backend/commands/extension.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --gi

Re: [HACKERS] VACUUM ANALYZE is faster than ANALYZE?

2012-02-22 Thread Simon Riggs
On Tue, Feb 21, 2012 at 2:00 PM, Pavel Stehule wrote: > I had to reply to query about usage VACUUM ANALYZE or ANALYZE. I > expected so ANALYZE should be faster then VACUUM ANALYZE. VACUUM ANALYZE scans the whole table sequentially. ANALYZE accesses a random sample of data blocks. Random access

Re: [HACKERS] VACUUM ANALYZE is faster than ANALYZE?

2012-02-22 Thread Robert Haas
On Wed, Feb 22, 2012 at 8:13 AM, Nicolas Barbier wrote: > 2012/2/22 Robert Haas : > >> On Tue, Feb 21, 2012 at 9:00 AM, Pavel Stehule >> wrote: >> >>> I had to reply to query about usage VACUUM ANALYZE or ANALYZE. I >>> expected so ANALYZE should be faster then VACUUM ANALYZE. >>> >>> But is not

Re: [HACKERS] 16-bit page checksums for 9.2

2012-02-22 Thread Robert Haas
On Tue, Feb 21, 2012 at 5:07 AM, Noah Misch wrote: > We do, in numerous places, drop a shared buffer content lock and reacquire it > in exclusive mode.  However, the existing users of that pattern tend to trade > the lock, complete subsequent work, and unlock the buffer all within the same > funct

Re: [HACKERS] temporal algebra and data type

2012-02-22 Thread Euler Taveira de Oliveira
On 22-02-2012 09:50, Peter Padua Krauss wrote: > 1) There are another project, similar or better than my!? There are "pure SQL > standard libraries" for this? > Range Types [1]. It is 9.2 material but it is already in the repository. [1] http://www.postgresql.org/docs/devel/static/rangetypes.ht

Re: [HACKERS] VACUUM ANALYZE is faster than ANALYZE?

2012-02-22 Thread Nicolas Barbier
2012/2/22 Robert Haas : > On Tue, Feb 21, 2012 at 9:00 AM, Pavel Stehule > wrote: > >> I had to reply to query about usage VACUUM ANALYZE or ANALYZE. I >> expected so ANALYZE should be faster then VACUUM ANALYZE. >> >> But is not true. Why? > > I'm pretty sure that VACUUM ANALYZE *will* be faste

Re: [HACKERS] VACUUM ANALYZE is faster than ANALYZE?

2012-02-22 Thread Robert Haas
On Tue, Feb 21, 2012 at 9:00 AM, Pavel Stehule wrote: > I had to reply to query about usage VACUUM ANALYZE or ANALYZE. I > expected so ANALYZE should be faster then VACUUM ANALYZE. > > But is not true. Why? I'm pretty sure that VACUUM ANALYZE *will* be faster than ANALYZE in general, because VACU

Re: [HACKERS] leakproof

2012-02-22 Thread Robert Haas
On Tue, Feb 21, 2012 at 11:54 AM, Jeff Janes wrote: > I don't think that "pure" is sufficient to be leakproof.  For example, > if I have a function which is pure but which takes an unusually long > time to evaluate for some unique pathological combination of > arguments, I don't think that it woul

[HACKERS] temporal algebra and data type

2012-02-22 Thread Peter Padua Krauss
Hello, I am new here, it is a question about "how to colaborate" and/or "where to find", in the scope of temporal database... - I see the Temporal Postgres, "a project for making tools and documentation that people can use to better manage, query, and maintain time data in Postgres", http://

Re: [HACKERS] Potential reference miscounts and segfaults in plpython.c

2012-02-22 Thread Jan Urbański
On 21/02/12 18:28, Jan Urbański wrote: > On 21/02/12 18:05, Peter Eisentraut wrote: >>> it might be better to use ereport, to expose the message >>> for translation. >>> > After giving it some thought some of these elogs could be changed into > PLy_elogs (which is meant to propagate a Python error

Re: [HACKERS] 16-bit page checksums for 9.2

2012-02-22 Thread Simon Riggs
On Wed, Feb 22, 2012 at 7:06 AM, Noah Misch wrote: > On Sun, Feb 19, 2012 at 05:04:06PM -0500, Robert Haas wrote: >> On Sun, Feb 19, 2012 at 11:35 AM, Simon Riggs wrote: >> >> So, when the page has a checksum, PD_CHECKSUM2 is not set, and when it >> >> doesn't have a checksum, PD_CHECKSUM2 is not

[HACKERS] pg_test_timing tool for EXPLAIN ANALYZE overhead

2012-02-22 Thread Greg Smith
Attached is a feature extracted from the Ants Aasma "add timing of buffer I/O requests" submission. That included a tool to measure timing overhead, from gettimeofday or whatever else INSTR_TIME_SET_CURRENT happens to call. That's what I've broken out here; it's a broader topic than just buff

Re: [HACKERS] Runtime SHAREDIR for testing CREATE EXTENSION

2012-02-22 Thread Sandro Santilli
On Tue, Feb 21, 2012 at 10:34:42PM +0100, Dimitri Fontaine wrote: > Sandro Santilli writes: > > On Tue, Feb 21, 2012 at 10:21:17AM -0500, Tom Lane wrote: > >> Sandro Santilli writes: > >> > I'm trying to understand what options I have to test "CREATE EXTENSION" > >> > w/out installing the extensi

Extensions default full version (was: [HACKERS] Displaying accumulated autovacuum cost)

2012-02-22 Thread Dimitri Fontaine
Greg Smith writes: > On 02/21/2012 04:44 PM, Dimitri Fontaine wrote: >> The solution would be to be able to create hstore 1.1 from 1.0 >> automatically and I sent over a very simple patch to do that, albeit >> after the deadline for the current CF (that's why it's not listed). >> >> Maybe that's s

Re: [HACKERS] REASSIGN OWNED lacks support for FDWs

2012-02-22 Thread Etsuro Fujita
(2012/02/22 9:30), Tom Lane wrote: > Alvaro Herrera writes: >> Excerpts from Alvaro Herrera's message of mar feb 21 15:54:03 -0300 2012: >>> Excerpts from Tom Lane's message of lun feb 20 12:37:45 -0300 2012: As per http://archives.postgresql.org/pgsql-general/2012-02/msg00304.php there