Re: [HACKERS] Patch for fail-back without fresh backup

2013-09-16 Thread Samrat Revagade
> > syncrep.c: In function ‘SyncRepReleaseWaiters’: > > syncrep.c:421:6: warning: variable ‘numdataflush’ set but not used > > [-Wunused-but-set-variable] > > > > Sorry I forgot fix it. > > I have attached the patch which I modified. > > Attached patch combines documentation patch and source-code p

Re: [HACKERS] Minmax indexes

2013-09-16 Thread Jaime Casanova
On Mon, Sep 16, 2013 at 3:47 AM, Thom Brown wrote: > On 15 September 2013 01:14, Alvaro Herrera wrote: >> >> Hi, >> >> Here's a reviewable version of what I've dubbed Minmax indexes. >> > Thanks for the patch, but I seem to have immediately hit a snag: > > pgbench=# CREATE INDEX minmaxtest ON pgb

Re: [HACKERS] [PATCH] Add an ldapoption to disable chasing LDAP referrals

2013-09-16 Thread Peter Eisentraut
On Tue, 2013-07-09 at 11:33 +1000, James Sewell wrote: > New patch attached. I've moved from using a boolean to an enum > trivalue. You have updated the documentation to say that the ldareferrals option only applies in search+bind mode. But looking over the code I think it applies in both modes.

Re: [HACKERS] [PATCH] Revive line type

2013-09-16 Thread Alvaro Herrera
David Fetter escribió: > Should the things you tried and others be in the regression tests? If > so, should we start with whatever had been in the regression tests > when the line type was dropped? Actually, the patch does include a regression test for the revived type (and it passes). I don't

[HACKERS] relscan_details.h

2013-09-16 Thread Alvaro Herrera
relscan.h is a bit of an unfortunate header because it requires a lot of other headers to compile, and is also required by execnodes.h. This quick patch removes the struct definitions from that file, moving them into a new relscan_details.h file; the reworked relscan.h does not need any other head

Re: [HACKERS] Dead function argument?

2013-09-16 Thread Alvaro Herrera
Antonin Houska escribió: > While reading storage/lmgr/lock.c I noticed that the last (proc) > argument of LockCheckConflicts() is not referenced inside the function. > Is it just a remnant from older version? My guess is this is just an oversight. The use of that argument was removed in commit 85

Re: [HACKERS] record identical operator

2013-09-16 Thread Andres Freund
On 2013-09-16 15:26:08 -0700, Kevin Grittner wrote: > > I can understand claiming that the risk is acceptable but arguing > > it's not there seems extremly strange to me. > > It's not a risk.  It's why the operator exists.  Pft. It's fine if the materialized view code uses it. I don't see the dan

Re: [HACKERS] [PATCH] Revive line type

2013-09-16 Thread David Fetter
On Mon, Sep 16, 2013 at 07:04:32PM -0300, Alvaro Herrera wrote: > Peter Eisentraut escribió: > > Here is a new patch for the line type, with a new input/output format > > {A,B,C}, as discussed in this thread. > > I gave this a quick look. The new input/output format appears to work > well. The i

Re: [HACKERS] record identical operator

2013-09-16 Thread Kevin Grittner
Andres Freund wrote: > On 2013-09-16 14:39:30 -0700, Kevin Grittner wrote: >> Andres Freund wrote: >>> On 2013-09-16 16:58:21 -0400, Noah Misch wrote: memcmp() has served well for HOT and for _equalConst(); why would it suddenly fall short for MV maintenance? >>> >>> I don't have a prob

Re: [HACKERS] Row-wise Comparison

2013-09-16 Thread Noah Misch
On Tue, Sep 10, 2013 at 02:32:56PM -0700, Kevin Grittner wrote: > The operators and sequencing involving actual records seems to be > different from that for row value constructors, and it appears to > be for good reason -- so that indexing will work correctly. > > My questions: > > Did I miss so

Re: [HACKERS] record identical operator

2013-09-16 Thread Andres Freund
On 2013-09-16 23:58:46 +0200, Andres Freund wrote: > > suppress_redundant_updates_trigger() function? > > You get superflous trigger calls. So what. It's not usable for anything > but a trigger. Primarily unneccesary IO, not unneccessary trigger calls (which can also happen). Greetings, Andres

Re: [HACKERS] record identical operator

2013-09-16 Thread Andres Freund
On 2013-09-16 14:39:30 -0700, Kevin Grittner wrote: > Andres Freund wrote: > > On 2013-09-16 16:58:21 -0400, Noah Misch wrote: > >> memcmp() has served well for HOT and for _equalConst(); why > >> would it suddenly fall short for MV maintenance? > > > > I don't have a problem using it internally,

Re: [HACKERS] record identical operator

2013-09-16 Thread Kevin Grittner
Andres Freund wrote: > On 2013-09-16 16:58:21 -0400, Noah Misch wrote: >> memcmp() has served well for HOT and for _equalConst(); why >> would it suddenly fall short for MV maintenance? > > I don't have a problem using it internally, I have a problem > exposing the capability to sql. ... like we

Re: [HACKERS] [PATCH] Revive line type

2013-09-16 Thread Alvaro Herrera
Peter Eisentraut escribió: > Here is a new patch for the line type, with a new input/output format > {A,B,C}, as discussed in this thread. I gave this a quick look. The new input/output format appears to work well. The input format using two points still works, which is nice. Regression tests pa

Re: [HACKERS] record identical operator

2013-09-16 Thread Noah Misch
On Mon, Sep 16, 2013 at 04:28:23PM +0200, Andres Freund wrote: > On 2013-09-15 19:49:26 -0400, Noah Misch wrote: > > Type-specific identity operators seem like overkill, anyway. If we find > > that > > meaningless variations in a particular data type are causing too many false > > non-matches for

[HACKERS] Dead function argument?

2013-09-16 Thread Antonin Houska
While reading storage/lmgr/lock.c I noticed that the last (proc) argument of LockCheckConflicts() is not referenced inside the function. Is it just a remnant from older version? // Antonin Houska (Tony) -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to you

Re: [HACKERS] [PATCH] Add use of asprintf()

2013-09-16 Thread Alvaro Herrera
Peter Eisentraut wrote: > The attached patch should speak for itself. Yeah, it's a very nice cleanup. > I have supplied a few variants: > > - asprintf() is the standard function, supplied by libpgport if > necessary. > > - pg_asprintf() is asprintf() with automatic error handling (like > pg_ma

Re: [HACKERS] git apply vs patch -p1

2013-09-16 Thread Andrew Gierth
> "Jeff" == Jeff Janes writes: Jeff> I used "git diff" configured to use Jeff> src/tools/git-external-diff, as described here: hmm... so that git-external-diff script is trying to fake git diff output, including using 'diff -git' and index lines, but the context-diff output wouldn't work

Re: [HACKERS] Possible memory leak with SQL function?

2013-09-16 Thread Yeb Havinga
On 2013-09-13 18:32, Robert Haas wrote: On Thu, Sep 12, 2013 at 5:29 AM, Yeb Havinga wrote: Is the following known behaviour, or should I put some time in writing a self contained test case? We have a function that takes a value and returns a ROW type. With the function implemented in language

Re: [HACKERS] record identical operator

2013-09-16 Thread Andres Freund
On 2013-09-16 16:58:21 -0400, Noah Misch wrote: > memcmp() has served well for HOT and for _equalConst(); why would it suddenly > fall short for MV maintenance? I don't have a problem using it internally, I have a problem exposing the capability to sql. Don't tell me that's the same. Greetings,

Re: [HACKERS] Proposal: json_populate_record and nested json objects

2013-09-16 Thread Andrew Dunstan
On 09/16/2013 09:57 AM, Chris Travers wrote: > On 16 September 2013 at 14:43 Merlin Moncure wrote: > > Huge +1 on on this. Couple random thoughts: > > *) Hard to see how you would structure this as an extension as you're > adjusting the behaviors of existing functions, unless you wanted to

Re: [HACKERS] Possible memory leak with SQL function?

2013-09-16 Thread Greg Stark
Noah, this is the kind of memory leak I was referring to which would be nice if valgrind could help with. I'm not sure exactly what that would look like though, I've never tried writing support code for valgrind to deal with custom allocators. -- greg On 16 Sep 2013 15:38, "Yeb Havinga" wrote:

Re: [HACKERS] Updatable view columns

2013-09-16 Thread Marko Tiikkaja
Hi Dean, First of all, thanks for working on this! The patch compiles and applies fine (though with offsets). The feature is in the SQL standard, and further improves an existing feature. Some stuff I've spotted and fixed in the attached patch (hope you don't mind, thought it'd be easier to

Re: [HACKERS] git apply vs patch -p1

2013-09-16 Thread Jeff Janes
On Mon, Sep 16, 2013 at 12:11 PM, Andrew Gierth wrote: > > "Josh" == Josh Berkus writes: > > Josh> The issue isn't that, it's that git apply is just buggy and > Josh> can't tell the difference between a new file and a modified > Josh> one. > > It's not the fault of git apply; the patch co

Re: [HACKERS] Assertions in PL/PgSQL

2013-09-16 Thread Pavel Stehule
Hello a few other comments: 1. you disable a assert in compile time in dependency of enable_assertions variable. I don't think, so it is good idea. When somebody enables a assertions, then assertions will not work on all cached functions in session. You should to do check if assertions are enable

Re: [HACKERS] git apply vs patch -p1

2013-09-16 Thread Josh Berkus
On 09/15/2013 11:46 PM, Ashutosh Bapat wrote: > On Sun, Sep 15, 2013 at 12:38 AM, Andres Freund wrote: >> git reset? >> >> > git reset wouldn't remove the files that were newly added by the patch, > would it? The issue isn't that, it's that git apply is just buggy and can't tell the difference bet

Re: [HACKERS] git apply vs patch -p1

2013-09-16 Thread Andrew Gierth
> "Josh" == Josh Berkus writes: Josh> The issue isn't that, it's that git apply is just buggy and Josh> can't tell the difference between a new file and a modified Josh> one. It's not the fault of git apply; the patch contained explicit annotations on all the files claiming that they were

Re: [HACKERS] record identical operator

2013-09-16 Thread Kevin Grittner
Andres Freund wrote: > On 2013-09-16 10:58:01 -0700, Kevin Grittner wrote: >> Andres Freund wrote: >>> On 2013-09-16 10:46:53 -0700, Kevin Grittner wrote: I don't recall seeing anyone posting regarding the existing undocumented record comparison operators.  Nor do I recall seeing a

Re: [HACKERS] record identical operator

2013-09-16 Thread Kevin Grittner
Merlin Moncure wrote: > Kevin Grittner wrote: >> I don't recall seeing anyone posting regarding the existing >> undocumented record comparison operators. > This behavior came about via a gripe of mine (but mostly courtesy > Tom Lane_: > http://www.postgresql.org/message-id/6EE64EF3AB31D5448D000

Re: [HACKERS] record identical operator

2013-09-16 Thread Merlin Moncure
On Mon, Sep 16, 2013 at 12:46 PM, Kevin Grittner wrote: > Hannu Krosing wrote: > >> What I meant is that rather than leave it really undocumented, >> document it as "system function for specific usage, has caveats >> and may change in future versions. use at your own risk and >> make sure you kno

Re: [HACKERS] record identical operator

2013-09-16 Thread Kevin Grittner
Andres Freund wrote: > On 2013-09-16 10:46:53 -0700, Kevin Grittner wrote: >> I don't recall seeing anyone posting >> regarding the existing undocumented record comparison operators. >> Nor do I recall seeing anyone posting about the undocumented >> pattern comparison operators. > > I've used and

Re: [HACKERS] record identical operator

2013-09-16 Thread Andres Freund
On 2013-09-16 10:46:53 -0700, Kevin Grittner wrote: > One would think so, yet I don't recall seeing anyone posting > regarding the existing undocumented record comparison operators. > Nor do I recall seeing anyone posting about the undocumented > pattern comparison operators. I've used and have s

Re: [HACKERS] \h open

2013-09-16 Thread Kevin Grittner
Oleg Bartunov wrote: > I noticed there is nothing available in built-in psql help about > OPEN command. Does it intentional ? > > postgres=# \h open > No help available for "open". > Try \h with no arguments to see available help. PostgreSQL does not include OPEN as a SQL command: http://www.po

Re: [HACKERS] record identical operator

2013-09-16 Thread Andres Freund
On 2013-09-16 10:58:01 -0700, Kevin Grittner wrote: > Andres Freund wrote: > > On 2013-09-16 10:46:53 -0700, Kevin Grittner wrote: > >> I don't recall seeing anyone posting > >> regarding the existing undocumented record comparison operators. > >> Nor do I recall seeing anyone posting about the un

Re: [HACKERS] record identical operator

2013-09-16 Thread Kevin Grittner
Hannu Krosing wrote: > What I meant is that rather than leave it really undocumented, > document it as "system function for specific usage, has caveats > and may change in future versions. use at your own risk and > make sure you know what you are doing" Well, that was my original assumption and

Re: [HACKERS] Where to load modules from?

2013-09-16 Thread Greg Stark
On 15 Sep 2013 18:55, "Andrew Dunstan" wrote: > > > On 09/15/2013 05:52 PM, Jeff Janes wrote: > >> On Sun, Sep 15, 2013 at 6:51 AM, Peter Eisentraut > wrote: >> >> On Sat, 2013-09-14 at 22:15 +0200, Dimitri Fontaine wrote: >> > >> > This proposal comes with no patch because I think we

Re: [HACKERS] record identical operator

2013-09-16 Thread Hannu Krosing
On 09/16/2013 04:01 PM, Kevin Grittner wrote: > Hannu Krosing wrote: > >> Lots of people were bitten when (undocumented) hash >> functions were changed thus breaking hash-based partitioning. > Nobody can be affected by the new operators in this patch unless > they choose to use them to compare two

Re: [HACKERS] Improve setup for documentation building with FOP

2013-09-16 Thread Alvaro Herrera
Peter Eisentraut wrote: > In order to modernize our documentation tool chain, I have made a few > tweaks to allow using FOP to build the PDF documentation. I'd like to > get some testing on different operating systems and versions thereof in > order to learn whether this solution is robust and eas

Re: [HACKERS] record identical operator

2013-09-16 Thread Kevin Grittner
Andres Freund wrote: > I think it's far more realistic to implement an identity operator > that will fall back to a type specific operator iff equals has > "strange" properties. My biggest problem with that approach is that it defaults to incorrect behavior for types for which user-visible diffe

Re: [HACKERS] Support for REINDEX CONCURRENTLY

2013-09-16 Thread Andres Freund
Hi, Looking at this version of the patch now: 1) comment for "Phase 4 of REINDEX CONCURRENTLY" ends with an incomplete sentence. 2) I don't think the drop algorithm used now is correct. Your index_concurrent_set_dead() sets both indisvalid = false and indislive = false at the same time. It does s

Re: [HACKERS] record identical operator

2013-09-16 Thread Merlin Moncure
On Sun, Sep 15, 2013 at 6:49 PM, Noah Misch wrote: > On Sat, Sep 14, 2013 at 08:58:32PM +0200, Andres Freund wrote: >> On 2013-09-14 11:25:52 -0700, Kevin Grittner wrote: >> > Andres Freund wrote: >> > > But both arrays don't have the same binary representation since >> > > the former has a null

Re: [HACKERS] Questions about checksum feature in 9.3

2013-09-16 Thread David Johnston
Ants Aasma-2 wrote >> So, has anyone compiled checksum vectorized on OS X? Are there any >> performance data that would indicate whether or not I should worry with >> this in the first place? > > Even without vectorization the worst case performance hit is about > 20%. This is for a workload that

Re: [HACKERS] Questions about checksum feature in 9.3

2013-09-16 Thread Ants Aasma
On Sun, Sep 15, 2013 at 8:13 AM, Kevin wrote: > My attempts to compile it vectorized on OS X seemed to have failed since I > don't find a vector instruction in the .o file even though the options > -msse4.1 -funroll-loops -ftree-vectorize should be supported according to the > man page for Appl

Re: [HACKERS] Support for REINDEX CONCURRENTLY

2013-09-16 Thread Andres Freund
On 2013-08-29 10:39:09 -0400, Robert Haas wrote: > I have been of the opinion for some time now that the > shared-invalidation code is not a particularly good design for much of > what we need. Waiting for an old snapshot is often a proxy for > waiting long enough that we can be sure every other b

Re: [HACKERS] record identical operator

2013-09-16 Thread Andres Freund
On 2013-09-15 19:49:26 -0400, Noah Misch wrote: > On Sat, Sep 14, 2013 at 08:58:32PM +0200, Andres Freund wrote: > > On 2013-09-14 11:25:52 -0700, Kevin Grittner wrote: > > > Andres Freund wrote: > > > > But both arrays don't have the same binary representation since > > > > the former has a null

Re: [HACKERS] Proposal: json_populate_record and nested json objects

2013-09-16 Thread Merlin Moncure
On Mon, Sep 16, 2013 at 8:57 AM, Chris Travers wrote: >> On 16 September 2013 at 14:43 Merlin Moncure wrote: > >> >> Huge +1 on on this. Couple random thoughts: >> >> *) Hard to see how you would structure this as an extension as you're >> adjusting the behaviors of existing functions, unless you

Re: [HACKERS] record identical operator

2013-09-16 Thread Kevin Grittner
Hannu Krosing wrote: > Lots of people were bitten when (undocumented) hash > functions were changed thus breaking hash-based partitioning. Nobody can be affected by the new operators in this patch unless they choose to use them to compare two records.  They don't work for any other type and they

Re: [HACKERS] Freezing without write I/O

2013-09-16 Thread Heikki Linnakangas
On 27.08.2013 19:37, Heikki Linnakangas wrote: On 27.08.2013 18:56, Heikki Linnakangas wrote: Here's an updated patch. Ah, forgot one thing: Here's a little extension I've been using to test this. It contains two functions; one to simply consume N xids, making it faster to hit the creation of

Re: [HACKERS] Proposal: json_populate_record and nested json objects

2013-09-16 Thread Chris Travers
> On 16 September 2013 at 14:43 Merlin Moncure wrote: > > Huge +1 on on this. Couple random thoughts: > > *) Hard to see how you would structure this as an extension as you're > adjusting the behaviors of existing functions, unless you wanted to > introduce new function names for testing purpos

Re: [HACKERS] insert throw error when year field len > 4 for timestamptz datatype

2013-09-16 Thread Haribabu kommi
On 14 August 2013 Rushabh Lathia wrote: >postgres=# create table test ( a timestamptz); >CREATE TABLE >-- Date with year 1000 >postgres=# insert into test values ( 'Sat Mar 11 23:58:48 1000 IST'); >INSERT 0 1 >-- Now try with year 1 it will return error >postgres=# insert into test values

Proposal: UPDATE/DELETE ... WHERE OFFSET n OF cursor_name, was: Re: New ECPG idea, was: Re: [HACKERS] ECPG FETCH readahead

2013-09-16 Thread Boszormenyi Zoltan
Hi, 2013-08-17 13:02 keltezéssel, Boszormenyi Zoltan írta: [snip, discussion of WHERE CURRENT OF in the ECPG client lib] I had a second thought about it and the client side caching and parser behind the application's back seems to be an overkill. Instead, I propose a different solution, which i

Re: [HACKERS] Assertions in PL/PgSQL

2013-09-16 Thread Peter Eisentraut
On 9/15/13 10:49 AM, Marko Tiikkaja wrote: > On 2013-09-15 16:34, Peter Eisentraut wrote: >> On Sat, 2013-09-14 at 20:47 +0200, Marko Tiikkaja wrote: >>> Attached is a patch for supporting assertions in PL/PgSQL. These are >>> similar to the Assert() backend macro: they can be disabled during >>>

Re: [HACKERS] Proposal: json_populate_record and nested json objects

2013-09-16 Thread Merlin Moncure
On Sat, Sep 14, 2013 at 9:27 PM, chris travers wrote: > Hi all; > > Currently json_populate_record and json_populate_recordset cannot work with > nested json objects. This creates two fundamental problems when trying to > use JSON as an interface format. > > The first problem is you can't easily

Re: [HACKERS] patch: add MAP_HUGETLB to mmap() where supported (WIP)

2013-09-16 Thread Andres Freund
On 2013-09-16 15:18:50 +0200, Andres Freund wrote: > > So even a tiny allocation, much smaller than any page size, succeeds, and it > > reserves a huge page. I tried the same with larger values; the kernel always > > uses huge pages, and rounds up the allocation to a multiple of the huge page > > s

Re: [HACKERS] patch: add MAP_HUGETLB to mmap() where supported (WIP)

2013-09-16 Thread Andres Freund
On 2013-09-16 16:13:57 +0300, Heikki Linnakangas wrote: > On 16.09.2013 13:15, Andres Freund wrote: > >On 2013-09-16 11:15:28 +0300, Heikki Linnakangas wrote: > >>On 14.09.2013 02:41, Richard Poole wrote: > >>>The attached patch adds the MAP_HUGETLB flag to mmap() for shared memory > >>>on systems

Re: [HACKERS] patch: add MAP_HUGETLB to mmap() where supported (WIP)

2013-09-16 Thread Heikki Linnakangas
On 16.09.2013 13:15, Andres Freund wrote: On 2013-09-16 11:15:28 +0300, Heikki Linnakangas wrote: On 14.09.2013 02:41, Richard Poole wrote: The attached patch adds the MAP_HUGETLB flag to mmap() for shared memory on systems that support it. It's based on Christian Kruse's patch from last year,

Re: [HACKERS] UTF8 national character data type support WIP patch and list of open issues.

2013-09-16 Thread MauMau
Hello, I think it would be nice for PostgreSQL to support national character types largely because it should ease migration from other DBMSs. [Reasons why we need NCHAR] -- 1. Invite users of other DBMSs to PostgreSQL. Oracle, SQL Server, MySQL,

Re: [HACKERS] Fix picksplit with nan values

2013-09-16 Thread Andrew Gierth
> "Alexander" == Alexander Korotkov writes: Alexander> 2) NaN coordinates should be processed in GiST index scan Alexander> like in sequential scan. postgres=# select * from pts order by a <-> '(0,0)' limit 10; a -- (1,1) (7,nan) (9,nan) (11,nan) (4,nan) (nan,6) (2,

Re: [HACKERS] GUC for data checksums

2013-09-16 Thread Andres Freund
On 2013-09-16 14:43:27 +0300, Heikki Linnakangas wrote: > On 15.09.2013 17:05, Andres Freund wrote: > >On 2013-09-15 03:34:53 +0200, Bernd Helmle wrote: > >> > >> > >>--On 15. September 2013 00:25:34 +0200 Andres Freund > >> wrote: > >> > >>>Looks like a good idea to me. The implementation looks s

Re: [HACKERS] GUC for data checksums

2013-09-16 Thread Heikki Linnakangas
On 15.09.2013 17:05, Andres Freund wrote: On 2013-09-15 03:34:53 +0200, Bernd Helmle wrote: --On 15. September 2013 00:25:34 +0200 Andres Freund wrote: Looks like a good idea to me. The implementation looks sane as well, except that I am not sure if we really need to introduce that faux va

[HACKERS] Not In Foreign Key Constraint

2013-09-16 Thread Misa Simic
Hi hackers, I just wonder how hard would be to implement something like "Not In FK Constraint" or opposite to FK... i.e: FK ensures that value of FK column of inserted row exists in refferenced Table NotInFK should ensure that value of NotInFK column of inserted row does not Exist in referen

Re: [HACKERS] Minmax indexes

2013-09-16 Thread Andres Freund
On 2013-09-16 11:19:19 +0100, Chris Travers wrote: > > > > On 16 September 2013 at 11:03 Heikki Linnakangas > > wrote: > > > > > Something like this seems completely sensible to me: > > > > create index i_accounts on accounts using minmax (ts) where valid = true; > > > > The situation where tha

Re: [HACKERS] git apply vs patch -p1

2013-09-16 Thread Andres Freund
On 2013-09-16 10:16:37 +0530, Ashutosh Bapat wrote: > On Sun, Sep 15, 2013 at 12:38 AM, Andres Freund wrote: > > > On 2013-09-14 15:03:52 -0400, Andrew Dunstan wrote: > > > > > > On 09/14/2013 02:37 PM, Josh Berkus wrote: > > > >Folks, > > > > > > > >Lately I've been running into a lot of reports

Re: [HACKERS] Minmax indexes

2013-09-16 Thread Chris Travers
> On 16 September 2013 at 11:03 Heikki Linnakangas > wrote: > > Something like this seems completely sensible to me: > > create index i_accounts on accounts using minmax (ts) where valid = true; > > The situation where that would be useful is if 'valid' accounts are > fairly well clustered, but

Re: [HACKERS] patch: add MAP_HUGETLB to mmap() where supported (WIP)

2013-09-16 Thread Andres Freund
On 2013-09-16 11:15:28 +0300, Heikki Linnakangas wrote: > On 14.09.2013 02:41, Richard Poole wrote: > >The attached patch adds the MAP_HUGETLB flag to mmap() for shared memory > >on systems that support it. It's based on Christian Kruse's patch from > >last year, incorporating suggestions from Andr

Re: [HACKERS] Minmax indexes

2013-09-16 Thread Heikki Linnakangas
On 15.09.2013 03:14, Alvaro Herrera wrote: + Partial indexes are not supported; since an index is concerned with minimum and + maximum values of the involved columns across all the pages in the table, it + doesn't make sense to exclude values. Another way to see "partial" indexes + here would b

Re: [HACKERS] Re: [HACKERS] Is it necessary to rewrite table while increasing the scale of datatype numeric?

2013-09-16 Thread wangshuo
"wangs...@highgo.com.cn" wrote: I modified the code for this situation.I consider it very simple. It will does not modify the table file, when the scale has been increased exclusively. Kevin Grittner wrote: This patch would allow data in a column which was not consistent with the colum

Re: [HACKERS] plpgsql.print_strict_params

2013-09-16 Thread Marko Tiikkaja
On 9/16/13 8:04 AM, Ian Lawrence Barwick wrote: I'm taking a look at this patch as part of the current commitfest [*], Thanks! However the sample function provided in the documentation throws a runtime error due to a missing FROM-clause entry. Ugh. I'll look into fixing that. * Does it f

Re: [HACKERS] Minmax indexes

2013-09-16 Thread Thom Brown
On 15 September 2013 01:14, Alvaro Herrera wrote: > Hi, > > Here's a reviewable version of what I've dubbed Minmax indexes. Some > people said they would like to use some other name for this feature, but > I have yet to hear usable ideas, so for now I will keep calling them > this way. I'm open

Re: [HACKERS] UNNEST with multiple args, and TABLE with multiple funcs

2013-09-16 Thread Boszormenyi Zoltan
2013-09-13 21:03 keltezéssel, Andrew Gierth írta: Latest version of patch, incorporating regression tests and docs, and fixing the "operator" issue previously raised. It looks good. I think it's ready for a committer. Best regards, Zoltán Böszörményi -- -- Zolt

Re: [HACKERS] patch: add MAP_HUGETLB to mmap() where supported (WIP)

2013-09-16 Thread Heikki Linnakangas
On 14.09.2013 02:41, Richard Poole wrote: The attached patch adds the MAP_HUGETLB flag to mmap() for shared memory on systems that support it. It's based on Christian Kruse's patch from last year, incorporating suggestions from Andres Freund. I don't understand the logic in figuring out the pag

Re: [HACKERS] GIN improvements part 1: additional information

2013-09-16 Thread Alexander Korotkov
On Mon, Sep 16, 2013 at 11:43 AM, Heikki Linnakangas < hlinnakan...@vmware.com> wrote: > On 15.09.2013 12:14, Alexander Korotkov wrote: > >> On Sat, Jun 29, 2013 at 12:56 PM, Heikki Linnakangas< >> hlinnakan...@vmware.com> wrote: >> >> There's a few open questions: >>> >>> 1. How are we going to

Re: [HACKERS] GIN improvements part 1: additional information

2013-09-16 Thread Heikki Linnakangas
On 15.09.2013 12:14, Alexander Korotkov wrote: On Sat, Jun 29, 2013 at 12:56 PM, Heikki Linnakangas< hlinnakan...@vmware.com> wrote: There's a few open questions: 1. How are we going to handle pg_upgrade? It would be nice to be able to read the old page format, or convert on-the-fly. OTOH, if

Re: [HACKERS] Re: [BUGS] BUG #7873: pg_restore --clean tries to drop tables that don't exist

2013-09-16 Thread Satoshi Nagayasu
(2013/07/06 1:16), Pavel Stehule wrote: I am sending a patch that removes strict requirements for DROP IF EXISTS statements. This behave is similar to our ALTER IF EXISTS behave now. postgres=# DROP CAST IF EXISTS (sss AS public.casttesttype); NOTICE: types "sss" and "public.casttesttype" does

Re: [HACKERS] Triggers on foreign tables

2013-09-16 Thread Ronan Dunklau
On Thursday 12 September 2013 12:10:01 Peter Eisentraut wrote: > The documentation build fails: > > openjade:trigger.sgml:72:9:E: end tag for "ACRONYM" omitted, but OMITTAG > NO was specified > openjade:trigger.sgml:70:56: start tag was here Thank you, I took the time to install a working doc-bui