Re: [HACKERS] Logging of PAM Authentication Failure

2013-05-15 Thread Amit Langote
Attached herewith is a patch based on description in my previous mail. This patch would need revision since the error situation in case of authentication timeout on the server needs to be handled; probably in simple_prompt()? -- Amit Langote -- Sent via pgsql-hackers mailing list (pgsql-hacker

Re: [HACKERS] Fast promotion failure

2013-05-15 Thread Kyotaro HORIGUCHI
Hello, > > >> Is the point of this discussion that the patch may leave out some > > >> glich about timing of timeline-related changing and Heikki saw an > > >> egress of that? > > > > > > AFAIU, the committed patch has some gap in overall scenario which is > > the > > > fast promotion issue. > >

Re: [HACKERS] Better LWLocks with compare-and-swap (9.4)

2013-05-15 Thread Daniel Farina
On Wed, May 15, 2013 at 3:08 PM, Daniel Farina wrote: > On Mon, May 13, 2013 at 5:50 AM, Heikki Linnakangas > wrote: >> pgbench -S is such a workload. With 9.3beta1, I'm seeing this profile, when >> I run "pgbench -S -c64 -j64 -T60 -M prepared" on a 32-core Linux machine: >> >> - 64.09% postgre

Re: [HACKERS] Logging of PAM Authentication Failure

2013-05-15 Thread Amit Langote
Sorry that I am writing separate emails on the same topic. I seem to have a solution that allows us to accomplish what we are trying to without much change to the existing libpq interface (especially what to expect about return values and connection state that we are in when we return from connectD

Re: [HACKERS] plperl segfault in plperl_trusted_init() on kfreebsd

2013-05-15 Thread Christoph Berg
Re: Tom Lane 2013-05-15 <244.1368675...@sss.pgh.pa.us> > You sure that wholesale override of CFLAGS is a good idea? > This report doesn't show what flags the rest of your system was built > with, but seems like there could be a compatibility issue. Or maybe > you prevented plperl from being built

Re: [HACKERS] commit fest schedule for 9.4

2013-05-15 Thread Boszormenyi Zoltan
2013-05-15 20:05 keltezéssel, Andrew Dunstan írta: On 05/15/2013 02:00 PM, Josh Berkus wrote: Obviously we need a meta-manager who makes sure we have managers, and is able to notice that a manager is MIA and needs replaced (or at least backed-up). And then a meta-meta-manager to make sure that

Re: [HACKERS] Logging of PAM Authentication Failure

2013-05-15 Thread Amit Langote
>>> I created a patch which enables it to use the existing connection in >>> such a case (unlike what we currently do). It modifies >>> connectDBComplete() and PQconnectPoll() to also include states >>> pertaining to password being accepted from the user. That is, the >>> state machine in PQconnect

Re: [HACKERS] fallocate / posix_fallocate for new WAL file creation (etc...)

2013-05-15 Thread Jon Nelson
On Wed, May 15, 2013 at 10:17 PM, Alvaro Herrera wrote: > Jon Nelson escribió: >> On Wed, May 15, 2013 at 4:46 PM, Jon Nelson >> wrote: > >> > That's true. I originally wrote the patch using fallocate(2). What >> > would be appropriate here? Should I switch on the return value and the >> > six (

Re: [HACKERS] plperl segfault in plperl_trusted_init() on kfreebsd

2013-05-15 Thread Tom Lane
Christoph Berg writes: > Here's what I did: > ./configure > cd src && make > cd pl/plperl && make clean && make CFLAGS="-g" > make check You sure that wholesale override of CFLAGS is a good idea? This report doesn't show what flags the rest of your system was built with, but seems like there cou

Re: [HACKERS] fallocate / posix_fallocate for new WAL file creation (etc...)

2013-05-15 Thread Alvaro Herrera
Jon Nelson escribió: > On Wed, May 15, 2013 at 4:46 PM, Jon Nelson wrote: > > That's true. I originally wrote the patch using fallocate(2). What > > would be appropriate here? Should I switch on the return value and the > > six (6) or so relevant error codes? > > I addressed this, hopefully in a

Re: [HACKERS] fallocate / posix_fallocate for new WAL file creation (etc...)

2013-05-15 Thread Jon Nelson
On Wed, May 15, 2013 at 4:46 PM, Jon Nelson wrote: > On Wed, May 15, 2013 at 4:34 PM, Andres Freund wrote: .. >> Some where quick comments, without thinking about this: > > Thank you for the kind feedback. > >> * needs a configure check for posix_fallocate. The current version will >> e.g. fail

Re: [HACKERS] Heap truncation without AccessExclusiveLock (9.4)

2013-05-15 Thread Andres Freund
On 2013-05-15 18:35:35 +0300, Heikki Linnakangas wrote: > Truncating a heap at the end of vacuum, to release unused space back to > the OS, currently requires taking an AccessExclusiveLock. Although it's only > held for a short duration, it can be enough to cause a hiccup in query > processing whil

[HACKERS] Extent Locks

2013-05-15 Thread Stephen Frost
All, Starting a new thread to avoid hijacking Heikki's original, but.. * Heikki Linnakangas (hlinnakan...@vmware.com) wrote: > Truncating a heap at the end of vacuum, to release unused space back to > the OS, currently requires taking an AccessExclusiveLock. Although > it's only held for a shor

Re: [HACKERS] "on existing update" construct

2013-05-15 Thread Dev Kumkar
Basically I was referring to this link http://mbk.projects.postgresql.org Any suggestions here? Thanks!

Re: [HACKERS] Heap truncation without AccessExclusiveLock (9.4)

2013-05-15 Thread Tom Lane
Robert Haas writes: > I've been thinking for a while that we need some other system for > managing other kinds of invalidations. For example, suppose we want > to cache relation sizes in blocks. So we allocate 4kB of shared > memory, interpreted as an array of 512 8-byte entries. Whenever you >

Re: [HACKERS] "on existing update" construct

2013-05-15 Thread Dev Kumkar
> Please do not top-post on the PostgreSQL lists. See < http://idallen.com/topposting.html> > Also, note that pgsql-hackers is entirely the wrong list for this sort of question. You should have been asking on pgsql-general. Apologies for top-post! Well I thought pgsql-hackers will suggest some new

Re: [HACKERS] Heap truncation without AccessExclusiveLock (9.4)

2013-05-15 Thread Robert Haas
On Wed, May 15, 2013 at 7:10 PM, Tom Lane wrote: >> Another problem is that sinval resets are bad for performance, and >> anything we do that pushes more messages through sinval will increase >> the frequency of resets. > > I've been thinking that we should increase the size of the sinval ring; >

Re: [HACKERS] Heap truncation without AccessExclusiveLock (9.4)

2013-05-15 Thread Tom Lane
Robert Haas writes: > On Wed, May 15, 2013 at 11:35 AM, Heikki Linnakangas > wrote: >> To not slow down common backend >> operations, the values (or lack thereof) are cached in relcache. To sync the >> relcache when the values change, there will be a new shared cache >> invalidation event to forc

Re: [HACKERS] pg_dump versus defaults on foreign tables

2013-05-15 Thread Josh Berkus
> In any case, that restriction isn't breaking pg_dump so I don't feel > a need to change it during beta. Sure. Maybe put it on the stack for 9.4. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make chang

Re: [HACKERS] "on existing update" construct

2013-05-15 Thread Josh Berkus
On 05/15/2013 02:22 PM, Dev Kumkar wrote: > Well ya, stored procedure also was thinking about pre-insert trigger. > > Am sure folks here must have gone thru this and had alternatives. Also was > reading about merge_by_key. It's been on the TODO list forever. It's harder to implement well than yo

Re: [HACKERS] pg_dump versus defaults on foreign tables

2013-05-15 Thread Tom Lane
Josh Berkus writes: >> Comments? > I personally think that FOREIGN should be optional on most commands > where ambiguity is unlikely. In addition to ALTER, there's no > particularly good reason why "DROP TABLE myforeigntable" doesn't work. Well, it's certainly bizarre that we allow ALTER TABLE

Re: [HACKERS] Better handling of archive_command problems

2013-05-15 Thread Peter Geoghegan
On Wed, May 15, 2013 at 3:46 AM, Robert Haas wrote: > One possible objection to this line of attack is that, IIUC, waits to > acquire a LWLock are non-interruptible. If someone tells PostgreSQL > to wait for some period of time before performing each WAL write, > other backends that grab the WALW

Re: [HACKERS] Better LWLocks with compare-and-swap (9.4)

2013-05-15 Thread Daniel Farina
On Mon, May 13, 2013 at 5:50 AM, Heikki Linnakangas wrote: > pgbench -S is such a workload. With 9.3beta1, I'm seeing this profile, when > I run "pgbench -S -c64 -j64 -T60 -M prepared" on a 32-core Linux machine: > > - 64.09% postgres postgres [.] tas >- tas > - 99.83% s_loc

Re: [HACKERS] fallocate / posix_fallocate for new WAL file creation (etc...)

2013-05-15 Thread Jon Nelson
On Wed, May 15, 2013 at 4:34 PM, Andres Freund wrote: > Hi, > > On 2013-05-15 16:26:15 -0500, Jon Nelson wrote: >> >> I have written up a patch to use posix_fallocate in new WAL file >> >> creation, including configuration by way of a GUC variable, but I've >> >> not contributed to the PostgreSQL

Re: [HACKERS] fallocate / posix_fallocate for new WAL file creation (etc...)

2013-05-15 Thread Andres Freund
Hi, On 2013-05-15 16:26:15 -0500, Jon Nelson wrote: > >> I have written up a patch to use posix_fallocate in new WAL file > >> creation, including configuration by way of a GUC variable, but I've > >> not contributed to the PostgreSQL project before. Therefore, I'm > >> fairly certain the patch is

Re: [HACKERS] fallocate / posix_fallocate for new WAL file creation (etc...)

2013-05-15 Thread Jon Nelson
On Tue, May 14, 2013 at 9:43 PM, Robert Haas wrote: > On Mon, May 13, 2013 at 9:54 PM, Jon Nelson wrote: >> Pertinent to another thread titled >> [HACKERS] corrupt pages detected by enabling checksums >> I hope to explore the possibility of using fallocate (or >> posix_fallocate) for new WAL file

Re: [HACKERS] "on existing update" construct

2013-05-15 Thread Dev Kumkar
Well ya, stored procedure also was thinking about pre-insert trigger. Am sure folks here must have gone thru this and had alternatives. Also was reading about merge_by_key. On Wed, May 15, 2013 at 12:51 PM, Daniel Farina wrote: > On Wed, May 15, 2013 at 11:44 AM, Dev Kumkar > wrote: > > Hello,

Re: [HACKERS] Heap truncation without AccessExclusiveLock (9.4)

2013-05-15 Thread Robert Haas
On Wed, May 15, 2013 at 11:35 AM, Heikki Linnakangas wrote: > Shared memory space is limited, but we only need the watermarks for any > in-progress truncations. Let's keep them in shared memory, in a small > fixed-size array. That limits the number of concurrent truncations that can > be in-progre

Re: [HACKERS] pg_dump versus defaults on foreign tables

2013-05-15 Thread Josh Berkus
Tom, > Comments? I personally think that FOREIGN should be optional on most commands where ambiguity is unlikely. In addition to ALTER, there's no particularly good reason why "DROP TABLE myforeigntable" doesn't work. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via p

[HACKERS] pg_dump versus defaults on foreign tables

2013-05-15 Thread Tom Lane
While fooling with the issue of serial columns for foreign tables, I noticed that pg_dump will sometimes try to restore a default expression with a command like this: ALTER TABLE ONLY rem ALTER COLUMN f1 SET DEFAULT nextval('rem_f1_seq'::regclass); which when applied to a foreign table gets you

Re: [HACKERS] Parallel Sort

2013-05-15 Thread Claudio Freire
On Wed, May 15, 2013 at 3:04 PM, Noah Misch wrote: > On Tue, May 14, 2013 at 12:15:24PM -0300, Claudio Freire wrote: >> You know what would be a low-hanging fruit that I've been thinking >> would benefit many of my own queries? >> >> "Parallel" sequential scan nodes. Even if there's no real parall

Re: [HACKERS] streaming replication, "frozen snapshot backup on it" and missing relfile (postgres 9.2.3 on xfs + LVM)

2013-05-15 Thread Heikki Linnakangas
On 15.05.2013 22:50, Benedikt Grundmann wrote: On Wed, May 15, 2013 at 2:50 PM, Heikki Linnakangas The subject says 9.2.3. Are you sure you're running 9.2.4 on all the servers? There was a fix to a bug related to starting a standby server from a filesystem snapshot. I don't think it was quite the

Re: [HACKERS] streaming replication, "frozen snapshot backup on it" and missing relfile (postgres 9.2.3 on xfs + LVM)

2013-05-15 Thread Benedikt Grundmann
On Wed, May 15, 2013 at 2:50 PM, Heikki Linnakangas wrote: > On 15.05.2013 15:42, David Powers wrote: > >> First, thanks for the replies. This sort of thing is frustrating and hard >> to diagnose at a distance, and any help is appreciated. >> >> Here is some more background: >> >> We have 3 9.2.

Re: [HACKERS] "on existing update" construct

2013-05-15 Thread Daniel Farina
On Wed, May 15, 2013 at 11:44 AM, Dev Kumkar wrote: > Hello, > > Is there an alternative of Sybase "on existing update" construct in pgsql. > > "ON DUPLICATE KEY UPDATE" doesn't work. > > Thanks in advance! No, you'll have to either handle this in the application or use a stored procedure at this

Re: [HACKERS] counting algorithm for incremental matview maintenance

2013-05-15 Thread Josh Berkus
Kevin, It's fairly common for matviews to be constructed such that updates to them are strictly appends. For example, a matview which has a daily summary would just get appended to each day, and existing rows would not change barring a major historical database cleanup. It seems like we could ..

Re: [HACKERS] Parallel Sort

2013-05-15 Thread Peter Geoghegan
On Wed, May 15, 2013 at 11:32 AM, Peter Geoghegan wrote: > I think that this effort could justify itself independently of any > attempt to introduce parallelism to in-memory sorting. I abandoned a > patch to introduce timsort to Postgres, because I knew that there was > no principled way to reap t

Re: [HACKERS] streaming replication, "frozen snapshot backup on it" and missing relfile (postgres 9.2.3 on xfs + LVM)

2013-05-15 Thread Heikki Linnakangas
On 15.05.2013 15:42, David Powers wrote: First, thanks for the replies. This sort of thing is frustrating and hard to diagnose at a distance, and any help is appreciated. Here is some more background: We have 3 9.2.4 databases using the following setup: The subject says 9.2.3. Are you sure y

Re: [HACKERS] Parallel Sort

2013-05-15 Thread Andres Freund
On 2013-05-13 10:28:59 -0400, Noah Misch wrote: > Each worker needs to make SnapshotNow visibility decisions coherent with the > master. For sorting, this allows us to look up comparison functions, even > when the current transaction created or modified those functions. This will > also be an ess

[HACKERS] "on existing update" construct

2013-05-15 Thread Dev Kumkar
Hello, Is there an alternative of Sybase "on existing update" construct in pgsql. "ON DUPLICATE KEY UPDATE" doesn't work. Thanks in advance! Regards - Dev

Re: [HACKERS] commit fest schedule for 9.4

2013-05-15 Thread Josh Berkus
On 05/15/2013 11:05 AM, Andrew Dunstan wrote: > > On 05/15/2013 02:00 PM, Josh Berkus wrote: >>> Obviously we need a meta-manager who makes sure we have managers, and is >>> able to notice that a manager is MIA and needs replaced (or at least >>> backed-up). Actuall, on a more serious basis, we c

Re: [HACKERS] PostgreSQL 9.3 beta breaks some extensions "make install"

2013-05-15 Thread Cédric Villemain
Le mercredi 15 mai 2013 16:43:17, Andrew Dunstan a écrit : > On 05/15/2013 10:05 AM, Tom Lane wrote: > > Peter Eisentraut writes: > >> That said, I'm obviously outnumbered here. What about the following > >> compromise: Use the configure-selected install program inside > >> PostgreSQL (which we

Re: [HACKERS] Parallel Sort

2013-05-15 Thread Peter Geoghegan
On Mon, May 13, 2013 at 7:28 AM, Noah Misch wrote: > We should decide whether to actually sort in parallel based on the comparator > cost and the data size. The system currently has no information on comparator > cost: bt*cmp (and indeed almost all built-in functions) all have procost=1, > but bt

Re: [HACKERS] counting algorithm for incremental matview maintenance

2013-05-15 Thread Kevin Grittner
Merlin Moncure wrote: > Kevin Grittner wrote: >> Merlin Moncure wrote: >> >>> #1 issue I have with current matview functionality is locking. >>> currently refresh takes out an access exclusive lock.  so, >>> question is, do you think your proposal will be such that it >>> will no longer require

Re: [HACKERS] Parallel Sort

2013-05-15 Thread Noah Misch
On Wed, May 15, 2013 at 12:26:52PM +0530, Amit Kapila wrote: > On Monday, May 13, 2013 7:59 PM Noah Misch wrote: > > We can allocate a small amount of permanent shared memory for > > coordination > > among a group of processes, but sorting will benefit from a region as > > large as > > maintenance_

Re: [HACKERS] Parallel Sort

2013-05-15 Thread Noah Misch
On Wed, May 15, 2013 at 08:12:34AM +0900, Michael Paquier wrote: > The concept of clause parallelism for backend worker is close to the > concept of clause shippability introduced in Postgres-XC. In the case of > XC, the equivalent of the master backend is a backend located on a node > called Coord

Re: [HACKERS] commit fest schedule for 9.4

2013-05-15 Thread Andrew Dunstan
On 05/15/2013 02:00 PM, Josh Berkus wrote: Obviously we need a meta-manager who makes sure we have managers, and is able to notice that a manager is MIA and needs replaced (or at least backed-up). And then a meta-meta-manager to make sure that the meta-manager is meta-managing. And an Inspecto

Re: [HACKERS] Parallel Sort

2013-05-15 Thread Noah Misch
On Tue, May 14, 2013 at 12:15:24PM -0300, Claudio Freire wrote: > You know what would be a low-hanging fruit that I've been thinking > would benefit many of my own queries? > > "Parallel" sequential scan nodes. Even if there's no real parallelism > involved, when a query has to scan the same table

Re: [HACKERS] commit fest schedule for 9.4

2013-05-15 Thread Josh Berkus
> Obviously we need a meta-manager who makes sure we have managers, and is > able to notice that a manager is MIA and needs replaced (or at least > backed-up). And then a meta-meta-manager to make sure that the meta-manager is meta-managing. And an Inspector General. Anyone have Danny Kaye's ph

Re: [HACKERS] commit fest schedule for 9.4

2013-05-15 Thread Alvaro Herrera
Josh Berkus wrote: > On 05/15/2013 10:30 AM, Alvaro Herrera wrote: > > Uhm. If I've been anything wrt the 9.3 schedule, happy is not it. We > > completely failed to manage it in any kind of sane way. I vote +1 for > > keeping the same commitfest schedule this year, but please let's do > > everyo

Re: [HACKERS] streaming replication, "frozen snapshot backup on it" and missing relfile (postgres 9.2.3 on xfs + LVM)

2013-05-15 Thread David Powers
First, thanks for the replies. This sort of thing is frustrating and hard to diagnose at a distance, and any help is appreciated. Here is some more background: We have 3 9.2.4 databases using the following setup: - A primary box - A standby box running as a hot streaming replica from the primar

Re: [HACKERS] commit fest schedule for 9.4

2013-05-15 Thread Josh Berkus
On 05/15/2013 10:30 AM, Alvaro Herrera wrote: > Uhm. If I've been anything wrt the 9.3 schedule, happy is not it. We > completely failed to manage it in any kind of sane way. I vote +1 for > keeping the same commitfest schedule this year, but please let's do > everyone a favor and make sure we g

Re: [HACKERS] commit fest schedule for 9.4

2013-05-15 Thread Alvaro Herrera
Heikki Linnakangas wrote: > On 14.05.2013 05:34, Peter Eisentraut wrote: > >In the last two years, the first commit fest started in June, which is > >about a month from now. If we are going to do that again, we should > >clarify that as soon as possible. And if we are not, then we should > >also

Re: [HACKERS] counting algorithm for incremental matview maintenance

2013-05-15 Thread Merlin Moncure
On Wed, May 15, 2013 at 11:33 AM, Kevin Grittner wrote: > Merlin Moncure wrote: > >> #1 issue I have with current matview functionality is locking. >> currently refresh takes out an access exclusive lock. so, >> question is, do you think your proposal will be such that it will >> no longer requi

Re: [HACKERS] Proposed TODO: add support for "any" for PL/PythonU and PL/Perl

2013-05-15 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 14/05/2013 20:24, Josh Berkus ha scritto: > Hackers, > > I'd like to add the following todo items to the TODO list: > > PL/Python: > * add support for anyelement and anyarray to PL/Python > * add support for VARIADIC "ANY" to PL/Python > > PL/Per

Re: [HACKERS] counting algorithm for incremental matview maintenance

2013-05-15 Thread Kevin Grittner
Merlin Moncure wrote: > #1 issue I have with current matview functionality is locking. > currently refresh takes out an access exclusive lock.  so, > question is, do you think your proposal will be such that it will > no longer require taking out full lock for refresh purposes > (either increment

Re: [HACKERS] counting algorithm for incremental matview maintenance

2013-05-15 Thread Merlin Moncure
On Tue, May 14, 2013 at 2:52 PM, Kevin Grittner wrote: > In surveying the literature on $subject, I find that most of the > theoretical work related to how to incrementally update > materialized views based on the matview declaration was published > between 1988 and 1993. The best paper I have be

Re: [HACKERS] PostgreSQL 9.3 beta breaks some extensions "make install"

2013-05-15 Thread David Fetter
On Wed, May 15, 2013 at 09:51:15AM -0400, Peter Eisentraut wrote: > On 5/14/13 10:38 AM, Cédric Villemain wrote: > > If I follow your example, then I would rewrite http://manager.pgxn.org/howto > > Oh that's where that is coming from? Well that example has all kinds of > problems. Would you be s

Re: [HACKERS] Logging of PAM Authentication Failure

2013-05-15 Thread Amit Langote
On Wed, May 15, 2013 at 11:04 PM, Kyotaro HORIGUCHI wrote: >> Is it right that it is only in the case a password prompt is needed >> that a new connection is created after dropping the just-failed >> connection? > > It's quite doubtful.\:-p The sequense seems fragile to say the > least. Inserting

[HACKERS] Heap truncation without AccessExclusiveLock (9.4)

2013-05-15 Thread Heikki Linnakangas
Truncating a heap at the end of vacuum, to release unused space back to the OS, currently requires taking an AccessExclusiveLock. Although it's only held for a short duration, it can be enough to cause a hiccup in query processing while it's held. Also, if there is a continuous stream of querie

Re: [HACKERS] postgres_fdw foreign tables and serial columns

2013-05-15 Thread Stephen Frost
* Tom Lane (t...@sss.pgh.pa.us) wrote: > The generic issue there is whether we can allow column defaults to be > evaluated on the remote end. The original postgres_fdw submission tried > to support that, but it had enough bugs and logical inconsistencies that > I ended up ripping that out before c

Re: [HACKERS] postgres_fdw foreign tables and serial columns

2013-05-15 Thread Tom Lane
Stephen Frost writes: > I'm alright with allowing it and making it the 'default', but I can > certainly see use-cases for having a sequence on the remote side which > is used for new values for that table and I'd suggest that we figure out > a way to support that. The generic issue there is wheth

Re: [HACKERS] postgres_fdw foreign tables and serial columns

2013-05-15 Thread Stephen Frost
* Andrew Dunstan (and...@dunslane.net) wrote: > On 05/15/2013 10:27 AM, Tom Lane wrote: > >You can certainly argue that it might be silly to have a local sequence > >generating the default value for insertions into a remote table; but > >on the other hand, it might not be silly, depending on usage

Re: [HACKERS] PostgreSQL 9.3 beta breaks some extensions "make install"

2013-05-15 Thread Andrew Dunstan
On 05/15/2013 10:05 AM, Tom Lane wrote: Peter Eisentraut writes: That said, I'm obviously outnumbered here. What about the following compromise: Use the configure-selected install program inside PostgreSQL (which we can test easily), and use install-sh under USE_PGXS? Admittedly, the make i

Re: [HACKERS] postgres_fdw foreign tables and serial columns

2013-05-15 Thread Andrew Dunstan
On 05/15/2013 10:27 AM, Tom Lane wrote: You can certainly argue that it might be silly to have a local sequence generating the default value for insertions into a remote table; but on the other hand, it might not be silly, depending on usage scenario. I don't think the database should be enforci

Re: [HACKERS] postgres_fdw foreign tables and serial columns

2013-05-15 Thread Tom Lane
Albe Laurenz writes: > Tom Lane wrote: >> "Nicholson, Brad (Toronto, ON, CA)" writes: >>> [ this error message sucks: ] >>> test=# create foreign table local_foo (id serial) server test_server >>> options (table_name 'foo'); >>> ERROR: referenced relation "local_foo" is not a table >> Yeah, I'

Re: [HACKERS] postgres_fdw foreign tables and serial columns

2013-05-15 Thread Albe Laurenz
Tom Lane wrote: > "Nicholson, Brad (Toronto, ON, CA)" writes: >> [ this error message sucks: ] >> test=# create foreign table local_foo (id serial) server test_server options >> (table_name 'foo'); >> ERROR: referenced relation "local_foo" is not a table > > Yeah, I'd noticed that myself. We c

Re: [HACKERS] PostgreSQL 9.3 beta breaks some extensions "make install"

2013-05-15 Thread Cédric Villemain
Le mardi 14 mai 2013 15:08:42, Andrew Dunstan a écrit : > On 05/14/2013 07:59 AM, Peter Eisentraut wrote: > > On 5/14/13 4:17 AM, Marti Raudsepp wrote: > >> On Tue, May 14, 2013 at 5:27 AM, Peter Eisentraut wrote: > >>> On Tue, 2013-05-14 at 04:12 +0300, Marti Raudsepp wrote: > It's caused b

Re: [HACKERS] PostgreSQL 9.3 beta breaks some extensions "make install"

2013-05-15 Thread Tom Lane
Peter Eisentraut writes: > That said, I'm obviously outnumbered here. What about the following > compromise: Use the configure-selected install program inside > PostgreSQL (which we can test easily), and use install-sh under > USE_PGXS? Admittedly, the make install time of extensions is probabl

Re: [HACKERS] Logging of PAM Authentication Failure

2013-05-15 Thread Kyotaro HORIGUCHI
> Is it right that it is only in the case a password prompt is needed > that a new connection is created after dropping the just-failed > connection? It's quite doubtful.\:-p The sequense seems fragile to say the least. Inserting password request state into the client-side state machine looks quit

Re: [HACKERS] PostgreSQL 9.3 beta breaks some extensions "make install"

2013-05-15 Thread Peter Eisentraut
On 5/14/13 10:38 AM, Cédric Villemain wrote: > If I follow your example, then I would rewrite http://manager.pgxn.org/howto Oh that's where that is coming from? Well that example has all kinds of problems. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes t

Re: [HACKERS] PostgreSQL 9.3 beta breaks some extensions "make install"

2013-05-15 Thread Peter Eisentraut
On 5/14/13 5:45 PM, Tom Lane wrote: > We changed to using install-sh unconditionally back in 2001 because > we had too many problems with system-provided scripts that didn't do > what we expected. I see very little reason to believe that the > compatibility problems have disappeared since then, an

Re: [HACKERS] postgres_fdw foreign tables and serial columns

2013-05-15 Thread Atri Sharma
Sent from my iPad On 15-May-2013, at 18:56, Tom Lane wrote: > "Nicholson, Brad (Toronto, ON, CA)" writes: >> [ this error message sucks: ] >> test=# create foreign table local_foo (id serial) server test_server options >> (table_name 'foo');

Re: [HACKERS] postgres_fdw foreign tables and serial columns

2013-05-15 Thread Tom Lane
"Nicholson, Brad (Toronto, ON, CA)" writes: > [ this error message sucks: ] > test=# create foreign table local_foo (id serial) server test_server options > (table_name 'foo'); > ERROR: referenced relation "local_foo" is not a table Yea

Re: [HACKERS] PostgreSQL 9.3 beta breaks some extensions "make install"

2013-05-15 Thread Robert Haas
On Tue, May 14, 2013 at 10:30 PM, Stephen Frost wrote: > * Tom Lane (t...@sss.pgh.pa.us) wrote: >> I still think we should revert 9db7ccae2000524b72a4052352cbb5407fb53b02. >> The argument that the system-provided program might be faster carries >> very little weight for me --- "make install" is fa

Re: [HACKERS] Logging of PAM Authentication Failure

2013-05-15 Thread Amit Langote
> Please add patches here so they don't get forgotten: > > https://commitfest.postgresql.org/action/commitfest_view/open > > Do we really need to add *2* new libpq functions just to support this? I will add the patches to commitfest after reviewing it a bit to see if we can do away without having

[HACKERS] postgres_fdw foreign tables and serial columns

2013-05-15 Thread Nicholson, Brad (Toronto, ON, CA)
Hi, I'm kicking the tires on the 9.3 postgres_fdw stuff - I'm not sure if this is an issue or intended behavior, but it was pretty confusing based on the error message that was output. If you try creating a foreign table with a reference to a serial data type, it comes back with a "referenced

Re: [HACKERS] Proposed TODO: add support for "any" for PL/PythonU and PL/Perl

2013-05-15 Thread Pavel Stehule
+1 2013/5/15 Robert Haas : > On Tue, May 14, 2013 at 2:24 PM, Josh Berkus wrote: >> Hackers, >> >> I'd like to add the following todo items to the TODO list: >> >> PL/Python: >> * add support for anyelement and anyarray to PL/Python >> * add support for VARIADIC "ANY" to PL/Python >> >> PL/Perl:

Re: [HACKERS] Proposed TODO: add support for "any" for PL/PythonU and PL/Perl

2013-05-15 Thread Robert Haas
On Tue, May 14, 2013 at 2:24 PM, Josh Berkus wrote: > Hackers, > > I'd like to add the following todo items to the TODO list: > > PL/Python: > * add support for anyelement and anyarray to PL/Python > * add support for VARIADIC "ANY" to PL/Python > > PL/Perl: > * add support for anyelement and anya

Re: [HACKERS] Logging of PAM Authentication Failure

2013-05-15 Thread Robert Haas
On Tue, May 14, 2013 at 11:20 AM, Amit Langote wrote: > Hello, > > Is it right that it is only in the case a password prompt is needed > that a new connection is created after dropping the just-failed > connection? > I created a patch which enables it to use the existing connection in > such a cas

Re: [HACKERS] Better handling of archive_command problems

2013-05-15 Thread Robert Haas
On Tue, May 14, 2013 at 12:23 AM, Daniel Farina wrote: > On Mon, May 13, 2013 at 3:02 PM, Peter Geoghegan wrote: >> Has anyone else thought about approaches to mitigating the problems >> that arise when an archive_command continually fails, and the DBA must >> manually clean up the mess? > > Nota

[HACKERS] Dead regression tests

2013-05-15 Thread Heikki Linnakangas
There are a few .sql files in src/test/regress/sql/, that AFAICS are not used for anything: drop.sql Looking at the history, this was used for some kind of cleanup in the ancient regress.sh script. It has been unused since Nov 2000, when regress.sh was removed. euc_cn.sql euc_jp.sql euc_kr.

Re: [HACKERS] proposal: option --application_name for psql

2013-05-15 Thread Pavel Stehule
2013/5/14 Pavel Stehule : > 2013/5/14 Magnus Hagander : >> On Tue, May 14, 2013 at 9:36 PM, Pavel Stehule >> wrote: >>> 2013/5/14 Magnus Hagander : psql in "connection string mode" >>> >>> Hi Magnus, can me send some link? >> >> http://www.postgresql.org/docs/9.2/static/app-psql.html >> >> "

Re: [HACKERS] Slicing TOAST

2013-05-15 Thread Pavel Golub
Hello, Heikki. You wrote: HL> On 14.05.2013 21:36, Josh Berkus wrote: >> >>> I'm proposing this now as a possible GSoC project; I don't propose to >>> actively work on it myself. >> >> The deadline for submitting GSOC projects (by students) was a week ago. >> So is this a project suggestion for