Re: [HACKERS] Theory of operation of collation patch

2011-03-09 Thread Martijn van Oosterhout
On Tue, Mar 08, 2011 at 08:52:41PM -0500, Tom Lane wrote: > Another interesting item ... I see that you added a collation field to > TypeName, apparently on the grounds that the SQL spec includes collation > in . However, it seems to me that that is nonsense up with > which we should not put. is

Re: [HACKERS] src/test/isolation/specscanner.l is a few bricks shy of a load

2011-03-09 Thread Heikki Linnakangas
On 10.03.2011 06:54, Tom Lane wrote: Somebody needs to brush up their flex-fu: make[1]: Entering directory `/home/postgres/pgsql/src/test/isolation' /usr/local/bin/bison -o specparse.c specparse.y /usr/local/bin/flex -o'specscanner.c' specscanner.l specscanner.l:85: warning, -s option given bu

Re: [HACKERS] Fwd: psql include file using relative path

2011-03-09 Thread David Fetter
On Wed, Mar 09, 2011 at 10:57:53PM -0500, Robert Haas wrote: > On Wed, Mar 9, 2011 at 7:32 PM, David Fetter wrote: > > On Wed, Mar 09, 2011 at 07:05:19PM -0500, Gurjeet Singh wrote: > >> Good question, I hadn't thought of that either, and thinking > >> about it a bit I think we'd want to keep the

[HACKERS] src/test/isolation/specscanner.l is a few bricks shy of a load

2011-03-09 Thread Tom Lane
Somebody needs to brush up their flex-fu: make[1]: Entering directory `/home/postgres/pgsql/src/test/isolation' /usr/local/bin/bison -o specparse.c specparse.y /usr/local/bin/flex -o'specscanner.c' specscanner.l specscanner.l:85: warning, -s option given but default rule can be matched make[1]:

Re: [HACKERS] [DOCS] Sync rep doc corrections

2011-03-09 Thread Bruce Momjian
Thom Brown wrote: > On 7 March 2011 22:31, Robert Haas wrote: > > On Mon, Mar 7, 2011 at 6:16 AM, Thom Brown wrote: > >> On 7 March 2011 15:27, Thom Brown wrote: > >>> I've attached a small patch with a bit of clarification and a typo fix > >>> in the synchronous_standby_names parameter info. >

Re: [HACKERS] Header comments in the recently added files

2011-03-09 Thread Tom Lane
Itagaki Takahiro writes: > I found trivial mistakes in the recently added files. > Will they fixed by some automated batches, or by manual? > - "Copyright (c) xxx-*2010*, PostgreSQL Global Development Group" > in pg_collation.h, pg_foreign_table.h, basebackup.h, syncrep.h, > pg_backup_directo

Re: Sync Rep and shutdown Re: [HACKERS] Sync Rep v19

2011-03-09 Thread Fujii Masao
On Thu, Mar 10, 2011 at 12:03 AM, Simon Riggs wrote: > On Wed, 2011-03-09 at 15:37 +0100, Yeb Havinga wrote: > >> The current situation is definately unsafe because it forces people >> that are in this state to do a fast shutdown.. but that fails as well, >> so they are only left with immediate.

Re: [HACKERS] [COMMITTERS] pgsql: Added new version of ecpg's parser generator script. This one wa

2011-03-09 Thread Tom Lane
Bruce Momjian writes: > Michael Meskes wrote: >> Added new version of ecpg's parser generator script. This one was written by >> Andy Colson . > Uh, why are we not just replacing the old script and allowing git to > preserve the old version? Yeah, I was wondering that too. There seems no very g

Re: [HACKERS] Header comments in the recently added files

2011-03-09 Thread Itagaki Takahiro
On Thu, Mar 10, 2011 at 12:55, Robert Haas wrote: > On Wed, Mar 9, 2011 at 8:33 PM, Itagaki Takahiro > wrote: >> I found trivial mistakes in the recently added files. >> Will they fixed by some automated batches, or by manual? > I think these should be fixed manually.  The first might eventually

Re: [HACKERS] Fwd: psql include file using relative path

2011-03-09 Thread Robert Haas
On Wed, Mar 9, 2011 at 7:32 PM, David Fetter wrote: > On Wed, Mar 09, 2011 at 07:05:19PM -0500, Gurjeet Singh wrote: >> Good question, I hadn't thought of that either, and thinking about >> it a bit I think we'd want to keep the current behaviour of \i and >> provide new behaviour using a new comm

Re: [HACKERS] Header comments in the recently added files

2011-03-09 Thread Robert Haas
On Wed, Mar 9, 2011 at 8:33 PM, Itagaki Takahiro wrote: > I found trivial mistakes in the recently added files. > Will they fixed by some automated batches, or by manual? > > - "Copyright (c) xxx-*2010*, PostgreSQL Global Development Group" >  in pg_collation.h, pg_foreign_table.h, basebackup.h, s

Re: [HACKERS] Fwd: psql include file using relative path

2011-03-09 Thread Gurjeet Singh
On Wed, Mar 9, 2011 at 10:07 PM, Andrew Dunstan wrote: > > I agree there's a good case for the new feature. I think someone mentioned > tab completion upthread, and that doesn't make so much sense to me. This > only makes sense nested in a script - in fact if it's not called from inside > an incl

Re: [HACKERS] Fwd: psql include file using relative path

2011-03-09 Thread Andrew Dunstan
On 03/09/2011 09:36 PM, Gurjeet Singh wrote: If we folded \ir into \i then what would you want `\i 1.sql` to do? Read 1.sql from $HOME or the one that is main.sql's sibling. Should stuff break when it has a legitimately accessible path in it just because that path is relative? Give

Re: [HACKERS] How should the waiting backends behave in sync rep?

2011-03-09 Thread Fujii Masao
On Thu, Mar 10, 2011 at 2:06 AM, Robert Haas wrote: > On Tue, Mar 8, 2011 at 10:06 AM, Fujii Masao wrote: >> How should the backends waiting for replication behave when >> synchrnous_standby_names >> is set to '' and the configuration file is reloaded? Now they keep >> waiting for the ACK from th

Re: [HACKERS] Fwd: psql include file using relative path

2011-03-09 Thread Gurjeet Singh
On Wed, Mar 9, 2011 at 7:32 PM, David Fetter wrote: > On Wed, Mar 09, 2011 at 07:05:19PM -0500, Gurjeet Singh wrote: > > Good question, I hadn't thought of that either, and thinking about > > it a bit I think we'd want to keep the current behaviour of \i and > > provide new behaviour using a new

Re: [HACKERS] Sync Rep v19

2011-03-09 Thread Bruce Momjian
Simon Riggs wrote: > On Fri, 2011-03-04 at 23:15 +0900, Fujii Masao wrote: > > > postgres=# SELECT application_name, state, sync_priority, sync_state > > FROM pg_stat_replication; > > application_name | state | sync_priority | sync_state > > --+---+---+

Re: [HACKERS] Update of replication/README

2011-03-09 Thread Fujii Masao
On Thu, Mar 10, 2011 at 2:00 AM, Robert Haas wrote: > On Wed, Mar 9, 2011 at 6:11 AM, Fujii Masao wrote: >> The attached patch updates replication/README to reflect current >> walsender/walreceiver behavior. It doesn't include any description >> about sync rep. That would need to be added later.

[HACKERS] Header comments in the recently added files

2011-03-09 Thread Itagaki Takahiro
I found trivial mistakes in the recently added files. Will they fixed by some automated batches, or by manual? - "Copyright (c) xxx-*2010*, PostgreSQL Global Development Group" in pg_collation.h, pg_foreign_table.h, basebackup.h, syncrep.h, pg_backup_directory.c and auth_delay.c. - "IDENTIFICA

Re: [HACKERS] WAL segments pile up during standalone mode

2011-03-09 Thread Bruce Momjian
Tom Lane wrote: > Alvaro Herrera writes: > > I admit I have no idea why these guys seem to run into wraparound > > problems so much. > > > On the other hand, I'm not sure that it would work to try to checkpoint > > "during" vacuum, because the backend is in a transaction. Maybe it > > would work

Re: [HACKERS] Fwd: index corruption in PG 8.3.13

2011-03-09 Thread Alvaro Herrera
Excerpts from Nikhil Sontakke's message of mié mar 09 20:28:19 -0300 2011: > While I rummage around the code more, does anyone have any theories on > the below? > > "Other peculiarity in the index file is that we found a lot of zeroed > out pages. Blocks from #279 to #518 are all completely zeroe

Re: [HACKERS] Fwd: psql include file using relative path

2011-03-09 Thread David Fetter
On Wed, Mar 09, 2011 at 07:05:19PM -0500, Gurjeet Singh wrote: > Good question, I hadn't thought of that either, and thinking about > it a bit I think we'd want to keep the current behaviour of \i and > provide new behaviour using a new command. > > Say when we are processing a pretty nested file

Re: [HACKERS] Fwd: index corruption in PG 8.3.13

2011-03-09 Thread Nikhil Sontakke
> > What does stat say for the index data file? Are the Size and Blocks > values the same (modulo block size)? Or are these blocks actually not > allocated? > stat 58401 File: `58401' Size: 4300800 Blocks: 8400 IO Block: 4096 regular file Device: 801h/2049d Inode: 13901264

Re: [HACKERS] Fwd: index corruption in PG 8.3.13

2011-03-09 Thread Greg Stark
On Wed, Mar 9, 2011 at 11:28 PM, Nikhil Sontakke wrote: > "Other peculiarity in the index file is that we found a lot of zeroed > out pages. Blocks from #279 to #518 are all completely zeroed out > without any signs of even a page header. Any ideas on how we can get > so many zeroed out blocks? Ap

Re: [HACKERS] Fwd: psql include file using relative path

2011-03-09 Thread Gurjeet Singh
Good question, I hadn't thought of that either, and thinking about it a bit I think we'd want to keep the current behaviour of \i and provide new behaviour using a new command. Say when we are processing a pretty nested file after multiple \ir commands, a \i in any of those files should look for

Re: [HACKERS] Native XML

2011-03-09 Thread Josh Berkus
On 3/9/11 10:11 AM, Bruce Momjian wrote: > If you are storing xml in an xml column just to get it >> validated, and doing no processing in the DB, then you'd probably >> prefer our current representation. If you want to build functional >> indexes on xpath expressions, and then run queries that ex

Re: [HACKERS] Fwd: index corruption in PG 8.3.13

2011-03-09 Thread Nikhil Sontakke
Hi, >>> Blocks 519 to 521 are DELETED. They do not have the LEAF flag set, >>> meaning they could be internal pages, but that is strange since ROOT >>> page is at level 1. Also importantly their next XID is set FrozenXid, >>> meaning VACUUM FULL was at play. Maybe due to deletes, we reduced the >>

Re: [HACKERS] WIP - Add ability to constrain backend temporary file space

2011-03-09 Thread Mark Kirkwood
New version: - adds documentation - adds category RESOURCES_DISK temp-files-v2.patch.gz Description: GNU Zip compressed data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] select_common_collation callers way too ready to throw error

2011-03-09 Thread Tom Lane
db1=# create table t1 (f1 text collate "aa_DJ.utf8", f2 text collate "an_ES.utf8" ); CREATE TABLE db1=# select f1 < f2 from t1; ERROR: collation mismatch between implicit collations "aa_DJ.utf8" and "an_ES.utf8" LINE 1: select f1 < f2 from t1; ^ HINT: You can override the c

Re: [HACKERS] Native XML

2011-03-09 Thread Anton
On 03/09/2011 08:21 PM, Yeb Havinga wrote: > On 2011-03-09 19:30, Robert Haas wrote: >> On Wed, Mar 9, 2011 at 1:11 PM, Bruce Momjian wrote: >> >>> Robert Haas wrote: >>> On Mon, Feb 28, 2011 at 10:30 AM, Tom Lane wrote: > Well, in principle we could allow them

[HACKERS] FuncExpr.collid/OpExpr.collid unworkably serving double duty

2011-03-09 Thread Tom Lane
So I was moving some error checks around and all of a sudden the regression tests blew up on me, with lots of errors about how type X didn't support collations (which indeed it didn't). After some investigation I realized what should have been apparent much earlier: the collations patch is trying

Re: [HACKERS] Fwd: psql include file using relative path

2011-03-09 Thread David Fetter
Being able to include relative paths is a really great feature, but should it have a UI (well, API) distinct from fixed-path includes? My first instinct is that it shouldn't, but I haven't really thought it through thoroughly. Cheers, David (the tough coughs as he ploughs the dough) On Tue, Mar 0

Re: [HACKERS] Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE

2011-03-09 Thread Bruce Momjian
Robert Treat wrote: > On Mon, Feb 28, 2011 at 3:42 AM, Magnus Hagander wrote: > > On Mon, Feb 28, 2011 at 06:21, Tom Lane wrote: > >> Robert Treat writes: > >>> Did anything ever come of this discussion? > >> > >> I think it's a TODO --- nothing done about it as yet, AFAIR. > >> > >>> On one of

Re: [HACKERS] Native XML

2011-03-09 Thread Yeb Havinga
On 2011-03-09 19:30, Robert Haas wrote: On Wed, Mar 9, 2011 at 1:11 PM, Bruce Momjian wrote: Robert Haas wrote: On Mon, Feb 28, 2011 at 10:30 AM, Tom Lane wrote: Well, in principle we could allow them to work on both, just the same way that (for instance) "+" is a standardized operator but w

Re: [HACKERS] wrap alpha4 tomorrow ~9am Eastern (was: Alpha4 release blockers)

2011-03-09 Thread Robert Haas
On Wed, Mar 9, 2011 at 12:56 PM, Magnus Hagander wrote: > Time will take care of that for you. You just have a coffee and wait... Time seems to have done the trick (though my coffee would be getting cold by now). I now see it at: http://www.postgresql.org/ftp/source/v9.1alpha4/ -- Robert Haa

Re: [HACKERS] Native XML

2011-03-09 Thread Robert Haas
On Wed, Mar 9, 2011 at 1:11 PM, Bruce Momjian wrote: > Robert Haas wrote: >> On Mon, Feb 28, 2011 at 10:30 AM, Tom Lane wrote: >> > Well, in principle we could allow them to work on both, just the same >> > way that (for instance) "+" is a standardized operator but works on more >> > than one dat

Re: [HACKERS] Native XML

2011-03-09 Thread Bruce Momjian
Robert Haas wrote: > On Mon, Feb 28, 2011 at 10:30 AM, Tom Lane wrote: > > Well, in principle we could allow them to work on both, just the same > > way that (for instance) "+" is a standardized operator but works on more > > than one datatype. ?But I agree that the prospect of two parallel types

Re: [HACKERS] wrap alpha4 tomorrow ~9am Eastern (was: Alpha4 release blockers)

2011-03-09 Thread Magnus Hagander
On Wed, Mar 9, 2011 at 18:53, Robert Haas wrote: > On Wed, Mar 9, 2011 at 12:30 PM, Kevin Grittner > wrote: >> Robert Haas wrote: >> >>> Files now up at: >>> >>> http://developer.postgresql.org/~rhaas/ >> >> As an initial sanity test I downloaded the bz2 version and its md5 >> file.  The md5sum

Re: [HACKERS] wrap alpha4 tomorrow ~9am Eastern (was: Alpha4 release blockers)

2011-03-09 Thread Robert Haas
On Wed, Mar 9, 2011 at 12:30 PM, Kevin Grittner wrote: > Robert Haas wrote: > >> Files now up at: >> >> http://developer.postgresql.org/~rhaas/ > > As an initial sanity test I downloaded the bz2 version and its md5 > file.  The md5sum checked out and this all ran as expected: > > tar -xjf postgre

Re: [HACKERS] wrap alpha4 tomorrow ~9am Eastern (was: Alpha4 release blockers)

2011-03-09 Thread Kevin Grittner
Robert Haas wrote: > Files now up at: > > http://developer.postgresql.org/~rhaas/ As an initial sanity test I downloaded the bz2 version and its md5 file. The md5sum checked out and this all ran as expected: tar -xjf postgresql-9.1alpha4.tar.bz2 cd postgresql-9.1alpha4/ ./configure --prefi

Re: [HACKERS] How should the waiting backends behave in sync rep?

2011-03-09 Thread Robert Haas
On Tue, Mar 8, 2011 at 10:06 AM, Fujii Masao wrote: > How should the backends waiting for replication behave when > synchrnous_standby_names > is set to '' and the configuration file is reloaded? Now they keep > waiting for the ACK from the > standby. But I think that it's more natural for them to

Re: [HACKERS] Update of replication/README

2011-03-09 Thread Robert Haas
On Wed, Mar 9, 2011 at 6:11 AM, Fujii Masao wrote: > The attached patch updates replication/README to reflect current > walsender/walreceiver behavior. It doesn't include any description > about sync rep. That would need to be added later. Hrm. What about this hunk? -Each walsender allocates an

Re: [HACKERS] wrap alpha4 tomorrow ~9am Eastern (was: Alpha4 release blockers)

2011-03-09 Thread Robert Haas
On Wed, Mar 9, 2011 at 10:43 AM, Robert Haas wrote: > On Wed, Mar 9, 2011 at 10:35 AM, Peter Eisentraut wrote: >> On ons, 2011-03-09 at 10:12 -0500, Robert Haas wrote: >>> developer.postgresql.org apparently hates me.  After waiting an >>> insanely long time to copy over the exported tarball to t

Re: [HACKERS] wrap alpha4 tomorrow ~9am Eastern (was: Alpha4 release blockers)

2011-03-09 Thread Robert Haas
On Wed, Mar 9, 2011 at 10:35 AM, Peter Eisentraut wrote: > On ons, 2011-03-09 at 10:12 -0500, Robert Haas wrote: >> developer.postgresql.org apparently hates me.  After waiting an >> insanely long time to copy over the exported tarball to that machine, > > I run the export on d.p.o. I can see why

Re: [HACKERS] wrap alpha4 tomorrow ~9am Eastern (was: Alpha4 release blockers)

2011-03-09 Thread Peter Eisentraut
On ons, 2011-03-09 at 10:12 -0500, Robert Haas wrote: > developer.postgresql.org apparently hates me. After waiting an > insanely long time to copy over the exported tarball to that machine, I run the export on d.p.o. > As Magnus pointed out to me on IM, there must be a usable version of > autoc

Re: [HACKERS] wrap alpha4 tomorrow ~9am Eastern (was: Alpha4 release blockers)

2011-03-09 Thread Marc G. Fournier
Due to backbranch packaging, and having to support several different versions of autoconf as a results, its a bit more confusing ... 'k, normally it would be in /usr/local/bin: developer# ls -lt autoconf-* -r-xr-xr-x 1 root wheel 14657 Aug 13 2009 autoconf-2.62 -r-xr-xr-x 1 root wheel

Re: [HACKERS] wrap alpha4 tomorrow ~9am Eastern (was: Alpha4 release blockers)

2011-03-09 Thread Robert Haas
On Tue, Mar 8, 2011 at 12:00 PM, Robert Haas wrote: > Going once, going twice... > > I'll go ahead and do this, barring objections or some other volunteer. developer.postgresql.org apparently hates me. After waiting an insanely long time to copy over the exported tarball to that machine, I tried

Re: Sync Rep and shutdown Re: [HACKERS] Sync Rep v19

2011-03-09 Thread Simon Riggs
On Wed, 2011-03-09 at 15:37 +0100, Yeb Havinga wrote: > The current situation is definately unsafe because it forces people > that are in this state to do a fast shutdown.. but that fails as well, > so they are only left with immediate. All the more reason not to change anything, since we disagre

Re: [HACKERS] Fwd: index corruption in PG 8.3.13

2011-03-09 Thread Nikhil Sontakke
>> Ouch. Attempting to attach the dotty image again.. > > I don't understand this graph.  What are the arrows?  Downlinks or > sibling pointers? > Sorry, they are sibling previous and next pointers. The ROOT is at level 1, rest all live blocks are at level 0. #524 is the leftmost page. Regards, N

Re: Sync Rep and shutdown Re: [HACKERS] Sync Rep v19

2011-03-09 Thread Yeb Havinga
On 2011-03-09 15:10, Simon Riggs wrote: On Wed, 2011-03-09 at 16:38 +0900, Fujii Masao wrote: On Wed, Mar 9, 2011 at 2:14 PM, Jaime Casanova wrote: On Tue, Mar 8, 2011 at 11:58 AM, Robert Haas wrote: The fast shutdown handling seems fine, but why not just handle smart shutdown the same way?

Re: [HACKERS] Fwd: index corruption in PG 8.3.13

2011-03-09 Thread Alvaro Herrera
Excerpts from Nikhil Sontakke's message of mié mar 09 11:16:22 -0300 2011: > >> Re-sending without the attachments. Can someone please allow my > >> attachments through from the previous email? > > > > They are not in the moderation queue, so presumably they got eaten by > > the antispam grue. > >

Re: Sync Rep and shutdown Re: [HACKERS] Sync Rep v19

2011-03-09 Thread Simon Riggs
On Wed, 2011-03-09 at 16:38 +0900, Fujii Masao wrote: > On Wed, Mar 9, 2011 at 2:14 PM, Jaime Casanova wrote: > > On Tue, Mar 8, 2011 at 11:58 AM, Robert Haas wrote: > >> > >> The fast shutdown handling seems fine, but why not just handle smart > >> shutdown the same way? > > > > currently, smart

Re: [HACKERS] Fwd: index corruption in PG 8.3.13

2011-03-09 Thread Alvaro Herrera
Excerpts from Nikhil Sontakke's message of mié mar 09 10:51:50 -0300 2011: > Re-sending without the attachments. Can someone please allow my > attachments through from the previous email? They are not in the moderation queue, so presumably they got eaten by the antispam grue. > Blocks 519 to 521

[HACKERS] Fwd: index corruption in PG 8.3.13

2011-03-09 Thread Nikhil Sontakke
Re-sending without the attachments. Can someone please allow my attachments through from the previous email? TIA Nikhils -- Forwarded message -- From: Nikhil Sontakke Date: Wed, Mar 9, 2011 at 8:42 PM Subject: index corruption in PG 8.3.13 To: pgsql-hackers@postgresql.org Hi,

Re: [webmaster] [HACKERS] Beginner question: Hacking environment?

2011-03-09 Thread Alvaro Herrera
Excerpts from Adrian von Bidder's message of mié mar 09 09:13:04 -0300 2011: > On Wednesday 09 March 2011 13.05:55 Magnus Hagander wrote: > > I see a graylisted email that's in the queue... I'll give it a kick, > > but normally you jsut have to wait... > > Thanks, it arrived. > > I'm used to wait

Re: [webmaster] [HACKERS] Beginner question: Hacking environment?

2011-03-09 Thread Adrian von Bidder
On Wednesday 09 March 2011 13.05:55 Magnus Hagander wrote: > I see a graylisted email that's in the queue... I'll give it a kick, > but normally you jsut have to wait... Thanks, it arrived. I'm used to wait when I enable greylisting. >4h delay is rare, though. greets -- vbi -- I liken ISPs to

Re: [webmaster] [HACKERS] Beginner question: Hacking environment?

2011-03-09 Thread Magnus Hagander
On Wed, Mar 9, 2011 at 13:00, Adrian von Bidder wrote: > [adding webmaster to cc] > > On Tuesday 08 March 2011 21.20:20 Andres Freund wrote: >> > "create account", ... >> Its linked on the mainpage: http://www.postgresql.org/community/signup > > Hmm.  Could it be that this web form doesn't have a

Re: [HACKERS] Beginner question: Hacking environment?

2011-03-09 Thread Adrian von Bidder
[adding webmaster to cc] On Tuesday 08 March 2011 21.20:20 Andres Freund wrote: > > "create account", ... > Its linked on the mainpage: http://www.postgresql.org/community/signup Hmm. Could it be that this web form doesn't have a mail queue and thus doesn't retry to send the mail when the first

Re: Sync Rep and shutdown Re: [HACKERS] Sync Rep v19

2011-03-09 Thread Magnus Hagander
On Wed, Mar 9, 2011 at 08:38, Fujii Masao wrote: > On Wed, Mar 9, 2011 at 2:14 PM, Jaime Casanova wrote: >> On Tue, Mar 8, 2011 at 11:58 AM, Robert Haas wrote: >>> >>> The fast shutdown handling seems fine, but why not just handle smart >>> shutdown the same way? >> >> currently, smart shutdown

[HACKERS] pl/python - thanks!

2011-03-09 Thread Jan Urbański
Hi, I just wanted to thank everyone involved in shepherding the PL/Python patches into the master repo, the testers, reviewers, commenters and especially Peter, for their help and diligence. The outstanding tracebacks patch is still being worked on, but irrelevant of whether it will make it or no

Re: [HACKERS] What happens If a table changes during a query/procedure execution

2011-03-09 Thread Pavel Stehule
2011/3/9 Vlad Arkhipov : > 09.03.2011 18:54, Nicolas Barbier: >> >> 2011/3/9 Vlad Arkhipov: >> >> >>> >>> Let there are two transactions that were created with read commited >>> isolation level. In the first one we're executing a SELECT query: >>> SELECT * FROM t UNION ALL SELECT * FROM t; >>> >>>

Re: [HACKERS] What happens If a table changes during a query/procedure execution

2011-03-09 Thread Vlad Arkhipov
09.03.2011 18:54, Nicolas Barbier: 2011/3/9 Vlad Arkhipov: Let there are two transactions that were created with read commited isolation level. In the first one we're executing a SELECT query: SELECT * FROM t UNION ALL SELECT * FROM t; In the second transaction we're modifying the same tab

[HACKERS] Update of replication/README

2011-03-09 Thread Fujii Masao
Hi, The attached patch updates replication/README to reflect current walsender/walreceiver behavior. It doesn't include any description about sync rep. That would need to be added later. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center replica

Re: [HACKERS] What happens If a table changes during a query/procedure execution

2011-03-09 Thread Nicolas Barbier
2011/3/9 Nicolas Barbier : > Note that the standard defines things that must never happen in the > case of READ COMMITTED, it does not specify that one *must* be able to > see the stuff as committed by previous transactions, for example. Hmm, make that "stuff as committed by concurrent transactio

Re: [HACKERS] What happens If a table changes during a query/procedure execution

2011-03-09 Thread Nicolas Barbier
2011/3/9 Vlad Arkhipov : > Let there are two transactions that were created with read commited > isolation level. In the first one we're executing a SELECT query: > SELECT * FROM t UNION ALL SELECT * FROM t; > > In the second transaction we're modifying the same table: > INSERT INTO t DEFAULT VALU

[HACKERS] What happens If a table changes during a query/procedure execution

2011-03-09 Thread Vlad Arkhipov
Let there are two transactions that were created with read commited isolation level. In the first one we're executing a SELECT query: SELECT * FROM t UNION ALL SELECT * FROM t; In the second transaction we're modifying the same table: INSERT INTO t DEFAULT VALUES; COMMIT; Is it possible that th

Re: Sync Rep and shutdown Re: [HACKERS] Sync Rep v19

2011-03-09 Thread Yeb Havinga
On 2011-03-09 08:38, Fujii Masao wrote: On Wed, Mar 9, 2011 at 2:14 PM, Jaime Casanova wrote: On Tue, Mar 8, 2011 at 11:58 AM, Robert Haas wrote: The fast shutdown handling seems fine, but why not just handle smart shutdown the same way? currently, smart shutdown means no new connections, wa