Re: [HACKERS] proposal: plpgsql - Assert statement

2015-03-24 Thread Pavel Stehule
2015-03-25 0:17 GMT+01:00 Tom Lane : > Pavel Stehule writes: > > updated version with Jim Nasby's doc and rebase against last changes in > > plpgsql. > > I started looking at this patch. ISTM there are some pretty questionable > design decisions in it: > > 1. Why create a core GUC to control a b

Re: [HACKERS] Zero-padding and zero-masking fixes for to_char(float)

2015-03-24 Thread Noah Misch
On Tue, Mar 24, 2015 at 03:08:26PM -0400, Bruce Momjian wrote: > On Tue, Mar 24, 2015 at 10:05:12AM -0400, Bruce Momjian wrote: > > On Tue, Mar 24, 2015 at 09:47:56AM -0400, Noah Misch wrote: > > > On Sun, Mar 22, 2015 at 10:53:12PM -0400, Bruce Momjian wrote: > > > > On Sun, Mar 22, 2015 at 04:41:

Re: [HACKERS] proposal GSoC 2015 task: Allow access to the database via HTTP

2015-03-24 Thread Pavel Stehule
2015-03-24 21:19 GMT+01:00 Вадим Горбачев : > I came across correspondences: > > http://www.postgresql.org/message-id/cafjnryu+z1kfkt1..44k4pg69ou7fu...@mail.gmail.com > > http://www . > posatgresql.org/message-id/9a28c8860f777e439aa12e8aea7694f8fb8...@bpxm15gp.gisp.nec.co.jp > as I understand, in

Re: [HACKERS] Exposing PG_VERSION_NUM in pg_config

2015-03-24 Thread Michael Paquier
On Wed, Mar 25, 2015 at 8:26 AM, Tom Lane wrote: > Hm. We're all agreed that there's a use case for exposing PG_VERSION_NUM > to the makefiles, but I did not hear one for adding it to pg_config; and > doing the former takes about two lines whereas adding a pg_config option > entails quite a lot o

Re: [HACKERS] Zero-padding and zero-masking fixes for to_char(float)

2015-03-24 Thread Noah Misch
On Tue, Mar 24, 2015 at 09:26:10AM -0700, Jeff Anton wrote: > The issue of significant (decimal) digits to and from floating point > representation is a complex one. > > What 'significant' means may depend upon the intent. True. I meant simply that Oracle TO_CHAR emits no more than 17 nonzero di

Re: [HACKERS] Exposing PG_VERSION_NUM in pg_config

2015-03-24 Thread David Fetter
On Tue, Mar 24, 2015 at 07:26:18PM -0400, Tom Lane wrote: > Andrew Gierth writes: > > "Tom" == Tom Lane writes: > > Tom> I concur with Michael that there's value in exposing the version > > Tom> number in the numeric form used by PG_VERSION_NUM. However, I > > Tom> also concur with Andrew tha

Re: [HACKERS] printing table in asciidoc with psql

2015-03-24 Thread Michael Paquier
On Wed, Mar 25, 2015 at 4:52 AM, Bruce Momjian wrote: > On Tue, Mar 24, 2015 at 11:15:33AM +0900, Michael Paquier wrote: >> On Tue, Mar 24, 2015 at 8:44 AM, Bruce Momjian wrote: >> > Notice the added 'l' next to the '<'. Updated patch attached. Any >> > other issues? >> >> Ah, right. That's a go

Re: Custom/Foreign-Join-APIs (Re: [HACKERS] [v9.5] Custom Plan API)

2015-03-24 Thread Kouhei Kaigai
> > At this moment, I'm not 100% certain about its logic. Especially, I didn't > > test SEMI- and ANTI- join cases yet. > > However, time is money - I want people to check overall design first, rather > > than detailed debugging. Please tell me if I misunderstood the logic to > > break > > down jo

Re: [HACKERS] parallel mode and parallel contexts

2015-03-24 Thread Alvaro Herrera
Robert Haas wrote: > On Wed, Mar 18, 2015 at 7:10 PM, Andres Freund wrote: > >> + /* > >> + * For now, parallel operations are required to be strictly > >> read-only. > >> + * Unlike heap_update() and heap_delete(), an insert should never > >> create > >> + * a combo CID, so

Re: [HACKERS] Why SyncRepWakeQueue is not static?

2015-03-24 Thread Michael Paquier
On Wed, Mar 25, 2015 at 12:13 PM, Tatsuo Ishii wrote: > SyncRepWakeQueue (src/backend/replication/syncrep.c) is not used > anywhere except in the file. If there's no good reason for it, I think > it should be declared as a static function. Included patch does so. That's indeed contradictory with

Re: [HACKERS] Auditing extension for PostgreSQL (Take 2)

2015-03-24 Thread David Steele
> On Wed, Mar 25, 2015 at 12:38 AM, David Steele wrote: >>> 2. OBJECT auditing does not work before adding acl info to pg_class.rel_acl. >>> In following situation, pg_audit can not audit OBJECT log. >>> $ cat postgresql.conf | grep audit >>> shared_preload_libraries = 'pg_audit' >>> pg_audit.role

[HACKERS] Why SyncRepWakeQueue is not static?

2015-03-24 Thread Tatsuo Ishii
SyncRepWakeQueue (src/backend/replication/syncrep.c) is not used anywhere except in the file. If there's no good reason for it, I think it should be declared as a static function. Included patch does so. Best regards, -- Tatsuo Ishii SRA OSS, Inc. Japan English: http://www.sraoss.co.jp/index_en.p

Re: [HACKERS] Replication identifiers, take 4

2015-03-24 Thread Robert Haas
On Mon, Feb 16, 2015 at 4:46 AM, Andres Freund wrote: >> At a quick glance, this basic design seems workable. I would suggest >> expanding the replication IDs to regular 4 byte oids. Two extra bytes is a >> small price to pay, to make it work more like everything else in the system. > > I don't kn

Re: [HACKERS] Error with index on unlogged table

2015-03-24 Thread Michael Paquier
On Tue, Mar 24, 2015 at 8:46 PM, Thom Brown wrote: > The index is unlogged until reindexing... > > [...] > Which is think also raises the question, why are unlogged indexes made > persistent by a reindex? That's a bug of HEAD, ~9.4 keeping the index as unlogged even after REINDEX INDEX. What happe

Re: [HACKERS] Repeatable read and serializable transactions see data committed after tx start

2015-03-24 Thread Álvaro Hernández Tortosa
On 24/03/15 20:56, Bruce Momjian wrote: On Fri, Mar 20, 2015 at 04:43:42PM -0400, Bruce Momjian wrote: On Sat, Nov 8, 2014 at 09:53:18PM +0100, Álvaro Hernández Tortosa wrote: On 07/11/14 22:02, Greg Sabino Mullane wrote: Kevin Grittner wrote: I think most people have always assumed that BE

Re: [HACKERS] INT64_MIN and _MAX

2015-03-24 Thread Andrew Gierth
> "Kyotaro" == Kyotaro HORIGUCHI writes: Kyotaro> Hello, Kyotaro> Grep showed me some unfixed usages of bare constant or Kyotaro> INT64CONST as (u)int64 max/min values. Kyotaro> ./src/interfaces/ecpg/pgtypeslib/dt.h: I didn't touch the ecpg stuff since it wasn't too clear that it was sa

Re: [HACKERS] Error with index on unlogged table

2015-03-24 Thread Michael Paquier
On Tue, Mar 24, 2015 at 8:37 PM, Andres Freund wrote: > On March 24, 2015 12:35:28 PM GMT+01:00, Michael Paquier wrote: > I think Thom's point is that he promoted the node... > > Thom, are you sure this want transient? Well, I got his point :) I was just thinking that this error message is legit,

Re: [HACKERS] Auditing extension for PostgreSQL (Take 2)

2015-03-24 Thread Sawada Masahiko
Hi David, Thank you for your answer! On Wed, Mar 25, 2015 at 12:38 AM, David Steele wrote: > Hi Sawada, > > Thank you for taking the time to look at the patch. > > On 3/24/15 10:28 AM, Sawada Masahiko wrote: >> I've applied these patchese successfully. >> >> I looked into this module, and had a

Re: [HACKERS] INT64_MIN and _MAX

2015-03-24 Thread Kyotaro HORIGUCHI
Hello, Grep showed me some unfixed usages of bare constant or INT64CONST as (u)int64 max/min values. At Tue, 24 Mar 2015 21:57:42 +, Andrew Gierth wrote in <87619q6ouh@news-spur.riddles.org.uk> > > "Kevin" == Kevin Grittner writes: > Kevin> Well, InvalidSerCommitSeqNo was initiall

Re: [HACKERS] proposal: doc: simplify examples of dynamic SQL

2015-03-24 Thread Bruce Momjian
On Fri, Mar 20, 2015 at 04:28:38PM -0400, Bruce Momjian wrote: > On Fri, Mar 20, 2015 at 08:43:21AM -0700, David G. Johnston wrote: > > On Thu, Mar 19, 2015 at 6:49 PM, Bruce Momjian wrote: > > It is making a point about nulls and stuff.  There are later queries > > that use format(). > >

Re: [HACKERS] Repeatable read and serializable transactions see data committed after tx start

2015-03-24 Thread Bruce Momjian
On Fri, Mar 20, 2015 at 04:43:42PM -0400, Bruce Momjian wrote: > On Sat, Nov 8, 2014 at 09:53:18PM +0100, Álvaro Hernández Tortosa wrote: > > > > On 07/11/14 22:02, Greg Sabino Mullane wrote: > > >Kevin Grittner wrote: > > >>>I think most people have always assumed that > > >>>BEGIN starts the tr

Re: [HACKERS] proposal GSoC 2015 task: Allow access to the database via HTTP

2015-03-24 Thread Bruce Momjian
On Tue, Mar 24, 2015 at 11:19:08PM +0300, Вадим Горбачев wrote: > I came across correspondences: > http://www.postgresql.org/message-id/ > cafjnryu+z1kfkt1..44k4pg69ou7fu...@mail.gmail.com > > http://www .posatgresql.org/message-id/ > 9a28c8860f777e439aa12e8aea7694f8fb8...@bpxm15gp.gisp.nec.co.jp

Re: [HACKERS] NUMERIC private methods?

2015-03-24 Thread Bruce Momjian
On Sun, Mar 22, 2015 at 04:08:32AM +, Andrew Gierth wrote: > > "Bruce" == Bruce Momjian writes: > > > ! However, calculations on numeric values is very slow > > arithmetic ... is, but calculations ... are Ah, good point. Fixed an applied. Thanks. -- Bruce Momjian h

Re: [HACKERS] Exposing PG_VERSION_NUM in pg_config

2015-03-24 Thread Tom Lane
Andrew Gierth writes: > "Tom" == Tom Lane writes: > Tom> I concur with Michael that there's value in exposing the version > Tom> number in the numeric form used by PG_VERSION_NUM. However, I > Tom> also concur with Andrew that if the use-case for this is > Tom> Makefiles, pg_config is a pret

Re: [HACKERS] proposal: plpgsql - Assert statement

2015-03-24 Thread Tom Lane
Pavel Stehule writes: > updated version with Jim Nasby's doc and rebase against last changes in > plpgsql. I started looking at this patch. ISTM there are some pretty questionable design decisions in it: 1. Why create a core GUC to control a behavior that's plpgsql-only? I think it'd make more

Re: [HACKERS] parallel mode and parallel contexts

2015-03-24 Thread Robert Haas
On Tue, Mar 24, 2015 at 3:26 PM, Andres Freund wrote: >> >> + - The currently active user ID and security context. Note that this is >> >> +the fourth user ID we restore: the initial step of binding to the >> >> correct >> >> +database also involves restoring the authenticated user ID.

Re: [HACKERS] INT64_MIN and _MAX

2015-03-24 Thread Andrew Gierth
> "Kevin" == Kevin Grittner writes: >> I didn't replace the 0x ones because most or all of them >> looked like basically bit-masking operations rather than actually >> dealing with the bounds of an unsigned int or uint32. I was >> specifically looking for places where literals wer

Re: [HACKERS] Exposing PG_VERSION_NUM in pg_config

2015-03-24 Thread Andrew Gierth
> "Tom" == Tom Lane writes: Michael> Well, my point is to have something on which you can directly Michael> apply maths on without changing its shape ;) >> There's this trick: >> # if version < 9.1 ... >> ifeq ($(filter-out 7.% 8.% 9.0, $(MAJORVERSION)),) >> # stuff >> endif >> # i

Re: [HACKERS] INT64_MIN and _MAX

2015-03-24 Thread Kevin Grittner
Andrew Gierth wrote: > I didn't replace the 0x ones because most or all of them looked > like basically bit-masking operations rather than actually dealing with > the bounds of an unsigned int or uint32. I was specifically looking for > places where literals were being used to represent m

Re: [HACKERS] Replication identifiers, take 4

2015-03-24 Thread Petr Jelinek
On 24/03/15 16:33, Andres Freund wrote: Hi, Here's the next version of this patch. I've tried to address the biggest issue (documentation) and some more. Now that both the more flexible commit WAL record format and the BKI_FORCE_NOT_NULL thing is in, it looks much cleaner. Nice, I see you als

Re: [HACKERS] parallel mode and parallel contexts

2015-03-24 Thread Tom Lane
Andres Freund writes: > Also: Man, trying to understand the guts of deadlock.c only made me > understand how *friggin* expensive deadlock checking is. I'm really > rather surprised that it only infrequently causes problems. The reason for that is that we only run deadlock checking if something's

Re: [HACKERS] Zero-padding and zero-masking fixes for to_char(float)

2015-03-24 Thread
I like the idea of using extra_float_digits (which I always set this to 3 to ensure I don't lose precision). http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html#1251 Theorem 15 "When a binary IEEE single precision number is converted to the closest eight digit decimal number,

Re: [HACKERS] Exposing PG_VERSION_NUM in pg_config

2015-03-24 Thread Tom Lane
Andrew Gierth writes: > "Michael" == Michael Paquier writes: > Michael> Well, my point is to have something on which you can directly > Michael> apply maths on without changing its shape ;) > There's this trick: > # if version < 9.1 ... > ifeq ($(filter-out 7.% 8.% 9.0, $(MAJORVERSION)),) > #

Re: [HACKERS] INT64_MIN and _MAX

2015-03-24 Thread Andrew Gierth
> "Andres" == Andres Freund writes: >> This replaces the one I posted before; it does both INT64_MIN/MAX and >> INT32_MIN/MAX, and also int16/int8/uint*. Uses of 0x7fff in code >> have been replaced unless there was a reason not to, with either INT_MAX >> or INT32_MAX according to the

Re: [HACKERS] Replication identifiers, take 4

2015-03-24 Thread Andres Freund
Hi, Here's the next version of this patch. I've tried to address the biggest issue (documentation) and some more. Now that both the more flexible commit WAL record format and the BKI_FORCE_NOT_NULL thing is in, it looks much cleaner. Changes: * Loads of documentation and comments * Revamped locki

Re: [HACKERS] INT64_MIN and _MAX

2015-03-24 Thread Andres Freund
Hi, On 2015-03-22 17:20:22 +, Andrew Gierth wrote: > This replaces the one I posted before; it does both INT64_MIN/MAX and > INT32_MIN/MAX, and also int16/int8/uint*. Uses of 0x7fff in code > have been replaced unless there was a reason not to, with either INT_MAX > or INT32_MAX according

Re: [HACKERS] parallel mode and parallel contexts

2015-03-24 Thread Andres Freund
On 2015-03-19 14:13:59 -0400, Robert Haas wrote: > On Wed, Mar 18, 2015 at 5:36 PM, Andres Freund wrote: > > Reading the README first, the rest later. So you can comment on my > > comments, while I actually look at the code. Parallelism, yay! > > Sorry, we don't support parallelism yet. :-) And

Re: [HACKERS] proposal GSoC 2015 task: Allow access to the database via HTTP

2015-03-24 Thread Вадим Горбачев
I came across correspondences: http://www.postgresql.org/message-id/cafjnryu+z1kfkt1..44k4pg69ou7fu...@mail.gmail.com http://www . posatgresql.org/message-id/9a28c8860f777e439aa12e8aea7694f8fb8...@bpxm15gp.gisp.nec.co.jp as I understand, in this https://github.com/dobesv/restgres/project the idea

Re: [HACKERS] Order of enforcement of CHECK constraints?

2015-03-24 Thread Fabrízio de Royes Mello
On Tue, Mar 24, 2015 at 4:28 PM, Fabrízio de Royes Mello < fabriziome...@gmail.com> wrote: > > > > On Mon, Mar 23, 2015 at 12:33 PM, Tom Lane wrote: > > > > =?UTF-8?Q?Fabr=C3=ADzio_de_Royes_Mello?= writes: > > > On Fri, Mar 20, 2015 at 4:37 PM, Tom Lane wrote: > > We could fix it by, say, h

Re: [HACKERS] logical column ordering

2015-03-24 Thread Kevin Grittner
Robert Haas wrote: > On Thu, Mar 12, 2015 at 9:57 AM, Alvaro Herrera > wrote: >> However, there's a difference between making a query silently given >> different results, and breaking it completely forcing the user to >> re-study how to write it. I think the latter is better. In that light >>

Re: [HACKERS] EvalPlanQual behaves oddly for FDW queries involving system columns

2015-03-24 Thread Tom Lane
Etsuro Fujita writes: > Let me explain further. Here is the comment in ExecOpenScanRelation: > * Determine the lock type we need. First, scan to see if target > relation > * is a result relation. If not, check if it's a FOR UPDATE/FOR SHARE > * relation. In either of those

Re: [HACKERS] printing table in asciidoc with psql

2015-03-24 Thread Bruce Momjian
On Tue, Mar 24, 2015 at 11:15:33AM +0900, Michael Paquier wrote: > On Tue, Mar 24, 2015 at 8:44 AM, Bruce Momjian wrote: > > Notice the added 'l' next to the '<'. Updated patch attached. Any > > other issues? > > Ah, right. That's a good catch and your patch fixes the issue. Still, > there are p

Re: [HACKERS] Order of enforcement of CHECK constraints?

2015-03-24 Thread Fabrízio de Royes Mello
On Mon, Mar 23, 2015 at 12:33 PM, Tom Lane wrote: > > =?UTF-8?Q?Fabr=C3=ADzio_de_Royes_Mello?= writes: > > On Fri, Mar 20, 2015 at 4:37 PM, Tom Lane wrote: > We could fix it by, say, having CheckConstraintFetch() sort the > constraints by name after loading them. > > > Isn't better do

Re: [HACKERS] Zero-padding and zero-masking fixes for to_char(float)

2015-03-24 Thread Bruce Momjian
On Tue, Mar 24, 2015 at 10:05:12AM -0400, Bruce Momjian wrote: > On Tue, Mar 24, 2015 at 09:47:56AM -0400, Noah Misch wrote: > > On Sun, Mar 22, 2015 at 10:53:12PM -0400, Bruce Momjian wrote: > > > On Sun, Mar 22, 2015 at 04:41:19PM -0400, Noah Misch wrote: > > > > On Wed, Mar 18, 2015 at 05:52:44P

Re: [HACKERS] Zero-padding and zero-masking fixes for to_char(float)

2015-03-24 Thread Andrew Gierth
> "Jeff" == Jeff Anton writes: Jeff> Postgresql seems to be using the first interpretation and Jeff> reporting fewer digits. I've noticed this with pg_dump. That a Jeff> dump and restore of floating point values does not produce the Jeff> same floating point values. To me, that is inex

Re: [HACKERS] Zero-padding and zero-masking fixes for to_char(float)

2015-03-24 Thread Jeff Anton
The issue of significant (decimal) digits to and from floating point representation is a complex one. What 'significant' means may depend upon the intent. There are (at least) two different tests which may need to be used. * How many digits can be stored and then accurately returned? or * How

Re: [HACKERS] Auditing extension for PostgreSQL (Take 2)

2015-03-24 Thread David Steele
Hi Sawada, Thank you for taking the time to look at the patch. On 3/24/15 10:28 AM, Sawada Masahiko wrote: > I've applied these patchese successfully. > > I looked into this module, and had a few comments as follows. > 1. pg_audit audits only one role currently. > In currently code, we can not m

Re: [HACKERS] Auditing extension for PostgreSQL (Take 2)

2015-03-24 Thread Sawada Masahiko
On Tue, Mar 24, 2015 at 3:17 AM, Alvaro Herrera wrote: > Sawada Masahiko wrote: > >> I tied to look into latest patch, but got following error. >> >> masahiko [pg_audit] $ LANG=C make >> gcc -Wall -Wmissing-prototypes -Wpointer-arith >> -Wdeclaration-after-statement -Wendif-labels >> -Wmissing-for

Re: [HACKERS] recovery_target_time ignored ?

2015-03-24 Thread David Steele
king on. 1) Postgres is inited and started: initdb -D /test/db/common -A trust;pg_ctl start -o "-c port=6543 -c checkpoint_segments=1 -c log_timezone='Australia/Sydney' -c timezone='Australia/Sydney' -c wal_level=hot_standby -c archive_mode=on -c archive_command='

Re: [HACKERS] Zero-padding and zero-masking fixes for to_char(float)

2015-03-24 Thread Bruce Momjian
On Tue, Mar 24, 2015 at 09:47:56AM -0400, Noah Misch wrote: > On Sun, Mar 22, 2015 at 10:53:12PM -0400, Bruce Momjian wrote: > > On Sun, Mar 22, 2015 at 04:41:19PM -0400, Noah Misch wrote: > > > On Wed, Mar 18, 2015 at 05:52:44PM -0400, Bruce Momjian wrote: > > > > This "junk" digit zeroing matches

Re: [HACKERS] GSoC 2015 proposal. Bitmap Index-only Count

2015-03-24 Thread Tom Lane
Anastasia Lubennikova writes: > There is a problem of slow counting in PostgreSQL [1]. The reason why this > is slow is related to the *MVCC* implementation in PostgreSQL. Index-only > scans (implemented since PostgreSQL-9.2) providing some performance > improvements where the *visibility map* of

Re: [HACKERS] Zero-padding and zero-masking fixes for to_char(float)

2015-03-24 Thread Noah Misch
On Sun, Mar 22, 2015 at 10:53:12PM -0400, Bruce Momjian wrote: > On Sun, Mar 22, 2015 at 04:41:19PM -0400, Noah Misch wrote: > > On Wed, Mar 18, 2015 at 05:52:44PM -0400, Bruce Momjian wrote: > > > This "junk" digit zeroing matches the Oracle behavior: > > > > > > SELECT to_char(1.12345678912345

Re: [HACKERS] Abbreviated keys for Numeric

2015-03-24 Thread k...@rice.edu
On Mon, Mar 23, 2015 at 09:41:40PM +, Andrew Gierth wrote: > > "Peter" == Peter Geoghegan writes: > > Peter> As I said, I don't really consider that my patch is a rewrite, > Peter> especially V4, which changes nothing substantive except removing > Peter> 32-bit support. > > Well, that

Re: [HACKERS] Performance improvement for joins where outer side is unique

2015-03-24 Thread Kyotaro HORIGUCHI
Hi, thanks for the new patch. I made an additional shrink from your last one. Do you have a look on the attached? At Sun, 22 Mar 2015 19:42:21 +1300, David Rowley wrote in > On 20 March 2015 at 21:11, David Rowley wrote: > > > > I can continue working on your patch if you like? Or are you pla

Re: [HACKERS] Error with index on unlogged table

2015-03-24 Thread Thom Brown
On 24 March 2015 at 11:46, Thom Brown wrote: > > On 24 March 2015 at 11:37, Andres Freund wrote: > >> On March 24, 2015 12:35:28 PM GMT+01:00, Michael Paquier < >> michael.paqu...@gmail.com> wrote: >> >On Tue, Mar 24, 2015 at 5:53 PM, Thom Brown wrote: >> >> I was attempting to set up a data se

[HACKERS] GSoC 2015 proposal. Bitmap Index-only Count

2015-03-24 Thread Anastasia Lubennikova
Hi, hackers! Here is the text of my proposal which I've applied to GSoC. (and link http://www.google-melange.com/gsoc/proposal/public/google/gsoc2015/lubennikovaav/5657382461898752 ) Any suggestions and comments are welcome. *Project name* Bitmap Index-only Count *Brief review* There is a p

Re: [HACKERS] Error with index on unlogged table

2015-03-24 Thread Thom Brown
On 24 March 2015 at 11:37, Andres Freund wrote: > On March 24, 2015 12:35:28 PM GMT+01:00, Michael Paquier < > michael.paqu...@gmail.com> wrote: > >On Tue, Mar 24, 2015 at 5:53 PM, Thom Brown wrote: > >> I was attempting to set up a data set to test pg_rewind, when I > >encountered > >> an error

Re: [HACKERS] Error with index on unlogged table

2015-03-24 Thread Andres Freund
On March 24, 2015 12:35:28 PM GMT+01:00, Michael Paquier wrote: >On Tue, Mar 24, 2015 at 5:53 PM, Thom Brown wrote: >> I was attempting to set up a data set to test pg_rewind, when I >encountered >> an error. I created a primary and standby, then: >> >> [...] >> >> # insert into utest (thing) v

Re: [HACKERS] pg_dump quietly ignore missing tables - is it bug?

2015-03-24 Thread Pavel Stehule
2015-03-23 17:11 GMT+01:00 Pavel Stehule : > Hi > > 2015-03-15 16:09 GMT+01:00 Tom Lane : > >> Pavel Stehule writes: >> > other variant, I hope better than previous. We can introduce new long >> > option "--strict". With this active option, every pattern specified by >> -t >> > option have to hav

Re: [HACKERS] Error with index on unlogged table

2015-03-24 Thread Michael Paquier
On Tue, Mar 24, 2015 at 5:53 PM, Thom Brown wrote: > I was attempting to set up a data set to test pg_rewind, when I encountered > an error. I created a primary and standby, then: > > [...] > > # insert into utest (thing) values ('moomoo'); > ERROR: index "utest_pkey" contains unexpected zero pa

Re: Custom/Foreign-Join-APIs (Re: [HACKERS] [v9.5] Custom Plan API)

2015-03-24 Thread Shigeru HANADA
2015/03/23 9:12、Kouhei Kaigai のメール: > Sorry for my response late. It was not easy to code during business trip. > > The attached patch adds a hook for FDW/CSP to replace entire join-subtree > by a foreign/custom-scan, according to the discussion upthread. > > GetForeignJoinPaths handler of FDW

Re: [HACKERS] WIP: multivariate statistics / proof of concept

2015-03-24 Thread Tomas Vondra
Hello, On 03/24/15 06:34, Kyotaro HORIGUCHI wrote: Sorry, not shown above, the *previous* t1 had been done "alter table t1 add statistics (a, b, c)". Removing t1 didn't remove the setting. reiniting cluster let me do that without error. OK, thanks. My guess is this issue got already fixed in

Re: [HACKERS] recovery_target_time ignored ?

2015-03-24 Thread Venkata Balaji N
On Tue, Mar 24, 2015 at 9:54 AM, David Steele wrote: > On 3/23/15 12:42 AM, Venkata Balaji N wrote: > > Hi, > > > > Assuming that this might require a patch, i am posting this in > > pgsql-hackers. Apologies, if this is not the appropriate mailing list to > > start this discussion. > > > > I perf

[HACKERS] Error with index on unlogged table

2015-03-24 Thread Thom Brown
Hi, I was attempting to set up a data set to test pg_rewind, when I encountered an error. I created a primary and standby, then: # create table test (id serial primary key, thing text); CREATE TABLE # create unlogged table utest (id serial primary key, thing text); CREATE TABLE # insert into t

Re: [HACKERS] Order of enforcement of CHECK constraints?

2015-03-24 Thread David Rowley
On 24 March 2015 at 17:51, Ashutosh Bapat wrote: > > In case of million inserts or bulk load with constraints on, these few > cycles spent in ordering the constraints might be problematic, unless the > ordering happens only once for a series of inserts. > As far as I can see this sort only occu

Re: [HACKERS] Abbreviated keys for Numeric

2015-03-24 Thread Andrew Gierth
So here's the latest (and, hopefully, last) version: - adds diagnostic output from numeric_abbrev_abort using the trace_sort GUC - fixed Datum cs. uint32 issues in hash_uint32 - added a short comment about excess-k representation - tweaked the indenting and comments a bit I'm not partic