Re: [HACKERS] [BUG] Checkpointer on hot standby runs without looking checkpoint_segments

2012-04-27 Thread Kyotaro HORIGUCHI
Thank you for sugestion. > This still makes catching up in standby mode slower, as you get > many more restartpoints. The reason for ignoring > checkpoint_segments during recovery was to avoid that. I may have a misunderstanding around there, or your intention. I understand that standby creates

Re: [HACKERS] [BUG] Checkpointer on hot standby runs without looking checkpoint_segments

2012-04-27 Thread Kyotaro HORIGUCHI
Sorry for broken message. > >From I said that the former (spinlock) could be dropped, but the > latter (read as volatile) should be needed. I said that the former (spinlock) could be dropped from the view of functionarity, but the latter (read as volatile) should be needed. > >From the view of

Re: [HACKERS] Future In-Core Replication

2012-04-27 Thread Simon Riggs
On Fri, Apr 27, 2012 at 1:26 AM, Josh Berkus wrote: > Simon, > >> I'm beginning to work on advanced additions to in-core replication for >> PostgreSQL. > ... >> Those are the basic requirements that I am trying to address. There >> are a great many important details, but the core of this is probab

Re: [HACKERS] Future In-Core Replication

2012-04-27 Thread Simon Riggs
On Fri, Apr 27, 2012 at 12:40 AM, Robert Haas wrote: > On Thu, Apr 26, 2012 at 6:48 PM, Josh Berkus wrote: >> So the idea is that you'll present briefly your intentions for 9.3 at >> the developer meeting, and then have this in-depth afterwards?  Sounds >> great. > > I really, really do not want

Re: [HACKERS] patch submission: truncate trailing nulls from heap rows to reduce the size of the null bitmap

2012-04-27 Thread Simon Riggs
On Fri, Apr 27, 2012 at 1:51 AM, Josh Berkus wrote: > Now, the other issue I'd be worried about for this optimization is what > happens when the nulls become non-trailing?  For example, this pattern: > > 1. Out of 700 columns, columns 301+ are all Null, so we map them away. > 2. User updates colu

[HACKERS] A problem with dump/restore of views containing whole row references

2012-04-27 Thread Abbas Butt
Hi, This is the version I used to run the following commands select version(); version PostgreSQL 9.2devel on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu/Linaro 4.4.4-14ubuntu5

[HACKERS] default_transaction_isolation = serializable causes crash under Hot Standby

2012-04-27 Thread Robert Haas
When I do this: rhaas=# set default_transaction_isolation = 'serializable'; SET rhaas=# begin; BEGIN rhaas=# select 1; Then I get this: TRAP: FailedAssertion("!(!RecoveryInProgress())", File: "predicate.c", Line: 1637) LOG: server process (PID 290) was terminated by signal 6: Abort trap The ro

Re: [HACKERS] A problem with dump/restore of views containing whole row references

2012-04-27 Thread Andrew Dunstan
On 04/27/2012 08:25 AM, Abbas Butt wrote: The notation "relation.*" represents a whole-row reference. While parsing a whole-row reference is transformed into a Var with varno set to the correct range table entry, and varattno == 0 to signal that it references the whole tuple. (For reference

Re: [HACKERS] default_transaction_isolation = serializable causes crash under Hot Standby

2012-04-27 Thread Kevin Grittner
Robert Haas wrote: > When I do this: > > rhaas=# set default_transaction_isolation = 'serializable'; > SET > rhaas=# begin; > BEGIN > rhaas=# select 1; > > Then I get this: > > TRAP: FailedAssertion("!(!RecoveryInProgress())", File: > "predicate.c", Line: 1637) > LOG: server process (PID 290

Re: [HACKERS] Request to add options to tools/git_changelog

2012-04-27 Thread Bruce Momjian
On Thu, Apr 26, 2012 at 03:19:04PM -0400, Bruce Momjian wrote: > On Thu, Apr 26, 2012 at 02:05:23PM -0400, Tom Lane wrote: > > Bruce Momjian writes: > > > I agree adding rarely-used options to a tool doesn't make sense, but the > > > question is what percentage of the git_changelog userbase am I?

Re: [HACKERS] default_transaction_isolation = serializable causes crash under Hot Standby

2012-04-27 Thread Robert Haas
On Fri, Apr 27, 2012 at 10:21 AM, Kevin Grittner wrote: > My first thought was that if we can detect that we are in HS, we > should probably throw an ERROR on an attempt to set > default_transaction_isolation = 'serializable'. I think that would result in the server failing to start. We could th

Re: [HACKERS] default_transaction_isolation = serializable causes crash under Hot Standby

2012-04-27 Thread Tom Lane
Robert Haas writes: > Or, maybe there's a way to throw an error when serializable mode is > used rather than when it's requested. Couldn't we check and throw an error at the place in transaction startup where default_transaction_isolation is copied to the active variable?

Re: [HACKERS] default_transaction_isolation = serializable causes crash under Hot Standby

2012-04-27 Thread Robert Haas
On Fri, Apr 27, 2012 at 11:02 AM, Tom Lane wrote: > Robert Haas writes: >> Or, maybe there's a way to throw an error when serializable mode is >> used rather than when it's requested. > > Couldn't we check and throw an error at the place in transaction startup > where default_transaction_isolatio

Re: [HACKERS] default_transaction_isolation = serializable causes crash under Hot Standby

2012-04-27 Thread Kevin Grittner
Tom Lane wrote: > Robert Haas writes: >> Or, maybe there's a way to throw an error when serializable mode >> is used rather than when it's requested. > > Couldn't we check and throw an error at the place in transaction > startup where default_transaction_isolation is copied to the > active varia

[HACKERS] enable_indexonly

2012-04-27 Thread Simon Riggs
I notice that there isn't a parameter called enable_indexonly (or similar). ISTM that such a major new feature should be controlled by a planner method parameter, just as all the existing planner methods are. This will help us evaluate index only scans in production, and turn them off if they hav

Re: [HACKERS] enable_indexonly

2012-04-27 Thread Thom Brown
On 27 April 2012 16:08, Simon Riggs wrote: > I notice that there isn't a parameter called enable_indexonly (or similar). > > ISTM that such a major new feature should be controlled by a planner > method parameter, just as all the existing planner methods are. > > This will help us evaluate index o

Re: [HACKERS] enable_indexonly

2012-04-27 Thread Simon Riggs
On Fri, Apr 27, 2012 at 4:41 PM, Thom Brown wrote: > On 27 April 2012 16:08, Simon Riggs wrote: >> I notice that there isn't a parameter called enable_indexonly (or similar). >> >> ISTM that such a major new feature should be controlled by a planner >> method parameter, just as all the existing p

Re: [HACKERS] enable_indexonly

2012-04-27 Thread Andrew Dunstan
On 04/27/2012 11:45 AM, Simon Riggs wrote: On Fri, Apr 27, 2012 at 4:41 PM, Thom Brown wrote: On 27 April 2012 16:08, Simon Riggs wrote: I notice that there isn't a parameter called enable_indexonly (or similar). ISTM that such a major new feature should be controlled by a planner method p

Re: [HACKERS] A problem with dump/restore of views containing whole row references

2012-04-27 Thread Abbas Butt
On Fri, Apr 27, 2012 at 6:25 PM, Andrew Dunstan wrote: > > > On 04/27/2012 08:25 AM, Abbas Butt wrote: > >> >> The notation "relation.*" represents a whole-row reference. >> While parsing a whole-row reference is transformed into a Var with varno >> set to the correct range table entry, >> and va

Re: [HACKERS] A problem with dump/restore of views containing whole row references

2012-04-27 Thread Andrew Dunstan
On 04/27/2012 12:02 PM, Abbas Butt wrote: However, is this a change we really want to make?: pg_get_triggerdef ---

Re: [HACKERS] default_transaction_isolation = serializable causes crash under Hot Standby

2012-04-27 Thread Tom Lane
"Kevin Grittner" writes: > Tom Lane wrote: >> Couldn't we check and throw an error at the place in transaction >> startup where default_transaction_isolation is copied to the >> active variable? > Wouldn't that leave users stuck if the postgresql.conf set the > default to serializable? Nobody

Re: [HACKERS] enable_indexonly

2012-04-27 Thread Simon Riggs
On Fri, Apr 27, 2012 at 4:56 PM, Andrew Dunstan wrote: >> (Easier when they used to look different...) > > > Maybe we should have the stylesheet watermark the dev docs pages. +1 Many users have >1 version in production. This would help --  Simon Riggs   http://www.2ndQuadrant.

Re: [HACKERS] enable_indexonly

2012-04-27 Thread Magnus Hagander
On Fri, Apr 27, 2012 at 17:56, Andrew Dunstan wrote: > > > On 04/27/2012 11:45 AM, Simon Riggs wrote: >> >> On Fri, Apr 27, 2012 at 4:41 PM, Thom Brown  wrote: >>> >>> On 27 April 2012 16:08, Simon Riggs  wrote: I notice that there isn't a parameter called enable_indexonly (or simil

Re: [HACKERS] default_transaction_isolation = serializable causes crash under Hot Standby

2012-04-27 Thread Kevin Grittner
Tom Lane wrote: > Yeah, it would definitely be nicer if BEGIN; SET TRANSACTION LEVEL > would work too. Maybe the place to put the check is where we > establish the transaction snapshot. That makes sense, and doesn't seem like it would be hard, from what I recall of that code. I know I've fal

[HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Robert Haas
On Wed, Dec 15, 2010 at 10:11 AM, Alvaro Herrera wrote: > It occurs to me that we may need a new mode, which disconnects sessions > that are not in a transaction (or as soon as they are) but leaves > in-progress transactions alone; this could be the new default.  Of > course, this is much more dif

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Magnus Hagander
On Fri, Apr 27, 2012 at 19:42, Robert Haas wrote: > On Wed, Dec 15, 2010 at 10:11 AM, Alvaro Herrera > wrote: >> It occurs to me that we may need a new mode, which disconnects sessions >> that are not in a transaction (or as soon as they are) but leaves >> in-progress transactions alone; this cou

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Robert Haas
On Fri, Apr 27, 2012 at 1:46 PM, Magnus Hagander wrote: > On Fri, Apr 27, 2012 at 19:42, Robert Haas wrote: >> On Wed, Dec 15, 2010 at 10:11 AM, Alvaro Herrera >> wrote: >>> It occurs to me that we may need a new mode, which disconnects sessions >>> that are not in a transaction (or as soon as t

Re: [HACKERS] Future In-Core Replication

2012-04-27 Thread Josh Berkus
> What I'm hoping to do is to build a basic prototype of logical > replication using WAL translation, so we can inspect it to see what > the downsides are. Sounds like Mammoth. You take a look at that? -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-hackers mai

Re: [HACKERS] A problem with dump/restore of views containing whole row references

2012-04-27 Thread Tom Lane
Andrew Dunstan writes: > Right, what I'm asking is whether or not we actually want that side > effect in all cases, and specifically in this case where it's clearly > not necessary. We could dodge that case by only changing the behavior when showstar is false; there is no need to change it othe

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Tom Lane
Robert Haas writes: > On Wed, Dec 15, 2010 at 10:11 AM, Alvaro Herrera > wrote: >> It occurs to me that we may need a new mode, which disconnects sessions >> that are not in a transaction (or as soon as they are) but leaves >> in-progress transactions alone; this could be the new default. Of >>

Re: [HACKERS] Future In-Core Replication

2012-04-27 Thread Simon Riggs
On Fri, Apr 27, 2012 at 6:59 PM, Josh Berkus wrote: > >> What I'm hoping to do is to build a basic prototype of logical >> replication using WAL translation, so we can inspect it to see what >> the downsides are. > > Sounds like Mammoth.  You take a look at that? Well, they all sound similar. My

Re: [HACKERS] A problem with dump/restore of views containing whole row references

2012-04-27 Thread Abbas Butt
On Fri, Apr 27, 2012 at 11:21 PM, Tom Lane wrote: > Andrew Dunstan writes: > > Right, what I'm asking is whether or not we actually want that side > > effect in all cases, and specifically in this case where it's clearly > > not necessary. > > We could dodge that case by only changing the behavi

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Simon Riggs
On Fri, Apr 27, 2012 at 7:29 PM, Tom Lane wrote: > Robert Haas writes: >> On Wed, Dec 15, 2010 at 10:11 AM, Alvaro Herrera >> wrote: >>> It occurs to me that we may need a new mode, which disconnects sessions >>> that are not in a transaction (or as soon as they are) but leaves >>> in-progress t

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Andres Freund
Hi, On Friday, April 27, 2012 07:42:59 PM Robert Haas wrote: > On Wed, Dec 15, 2010 at 10:11 AM, Alvaro Herrera > wrote: > > It occurs to me that we may need a new mode, which disconnects sessions > > that are not in a transaction (or as soon as they are) but leaves > > in-progress transactions a

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Andres Freund
On Friday, April 27, 2012 08:38:10 PM Simon Riggs wrote: > On Fri, Apr 27, 2012 at 7:29 PM, Tom Lane wrote: > > Robert Haas writes: > >> On Wed, Dec 15, 2010 at 10:11 AM, Alvaro Herrera > >> > >> wrote: > >>> It occurs to me that we may need a new mode, which disconnects sessions > >>> that are

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Tom Lane
Simon Riggs writes: > On Fri, Apr 27, 2012 at 7:29 PM, Tom Lane wrote: >> No, I'm not happy with that. Smart shutdown is defined to not affect >> current sessions. I'm fine with having a fourth mode that acts as you >> suggest (and, probably, even with making it the default); but not with >> ta

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Magnus Hagander
On Fri, Apr 27, 2012 at 20:48, Tom Lane wrote: > Simon Riggs writes: >> On Fri, Apr 27, 2012 at 7:29 PM, Tom Lane wrote: >>> No, I'm not happy with that.  Smart shutdown is defined to not affect >>> current sessions.  I'm fine with having a fourth mode that acts as you >>> suggest (and, probably

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Tom Lane
Magnus Hagander writes: > On Fri, Apr 27, 2012 at 20:48, Tom Lane wrote: >> I'm not necessarily opposed to commandeering the name "smart" for the >> new behavior, so that what we have to find a name for is the old "smart" >> behavior. How about >> >>slow- allow existing sessions to

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Robert Haas
On Fri, Apr 27, 2012 at 2:29 PM, Tom Lane wrote: >> This idea appeared to have some support.  I'd like to suggest that we >> take this a step further.  Instead of adding a fourth mode, I'd like >> to suggest that we redefine "smart" to have the behavior described >> above. > > No, I'm not happy wi

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Robert Haas
On Fri, Apr 27, 2012 at 2:48 PM, Tom Lane wrote: > I'm not necessarily opposed to commandeering the name "smart" for the > new behavior, so that what we have to find a name for is the old "smart" > behavior.  How about > >        slow    - allow existing sessions to finish (old "smart") >        s

Re: [HACKERS] psql omits row count under "\x auto"

2012-04-27 Thread Noah Misch
On Thu, Apr 26, 2012 at 09:25:25PM +0300, Peter Eisentraut wrote: > On m??n, 2012-04-23 at 12:30 -0400, Noah Misch wrote: > > I've been enjoying "\x auto" in .psqlrc, but I noticed the row count footer > > missing when it chooses ordinary output: > > > Looks like the logic in printQuery() needs fu

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Heikki Linnakangas
On 27.04.2012 21:56, Tom Lane wrote: Magnus Hagander writes: On Fri, Apr 27, 2012 at 20:48, Tom Lane wrote: I'm not necessarily opposed to commandeering the name "smart" for the new behavior, so that what we have to find a name for is the old "smart" behavior. How about slow- al

Re: [HACKERS] xReader, double-effort (was: Temporary tables under hot standby)

2012-04-27 Thread Aakash Goel
Sure Kevin, will get the wiki page ready asap, and reply back. Thanks. On Thu, Apr 26, 2012 at 8:10 PM, Kevin Grittner wrote: > [resending because of postgresql.org bounces on first try] > > Simon Riggs wrote: > > Kevin Grittner wrote: > > >> The GSoC xReader project is intended to be a major

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Robert Haas
On Fri, Apr 27, 2012 at 3:00 PM, Robert Haas wrote: > On Fri, Apr 27, 2012 at 2:48 PM, Tom Lane wrote: >> I'm not necessarily opposed to commandeering the name "smart" for the >> new behavior, so that what we have to find a name for is the old "smart" >> behavior.  How about >> >>        slow    

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Kevin Grittner
Heikki Linnakangas wrote: > Just thinking out loud here.. In the spirit of kicking around ideas... For those writing service scripts where you want a time limit on how long a stop can take, so that the service script doesn't prevent OS shutdown within a bounded time, it would also be nice to

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Peter Eisentraut
On fre, 2012-04-27 at 20:39 +0200, Andres Freund wrote: > I think the current smart mode is rather useful. There is quite some > stuff that you cannot do inside a transaction - or it doesn't make > sense - which still needs to shutdown gracefully. E.g. transaction > managers. Could you elaborate o

Re: [HACKERS] plpython crash (PG 92)

2012-04-27 Thread Peter Eisentraut
On tor, 2012-04-26 at 17:32 +0500, Asif Naeem wrote: > PFA test case. It used simple select statement to retrieve data via > plpython. It crashes latest pg 9.2 with the following stack trace i.e. > Apparently it is being crashed because of invalid related pointer value of > pfree() *header->contex

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Andres Freund
On Friday, April 27, 2012 10:17:59 PM Peter Eisentraut wrote: > On fre, 2012-04-27 at 20:39 +0200, Andres Freund wrote: > > I think the current smart mode is rather useful. There is quite some > > stuff that you cannot do inside a transaction - or it doesn't make > > sense - which still needs to sh

Re: [HACKERS] xReader, double-effort (was: Temporary tables under hot standby)

2012-04-27 Thread Aakash Goel
All, the wiki page is now up at http://wiki.postgresql.org/wiki/XReader. On Sat, Apr 28, 2012 at 1:19 AM, Aakash Goel wrote: > Sure Kevin, will get the wiki page ready asap, and reply back. Thanks. > > > On Thu, Apr 26, 2012 at 8:10 PM, Kevin Grittner < > kevin.gritt...@wicourts.gov> wrote: > >>

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Merlin Moncure
On Fri, Apr 27, 2012 at 1:57 PM, Robert Haas wrote: > I think there is no point at all in having a discussion about this > unless we can first agree that the overwhelming majority of people who > have commented on this issue on this list are unhappy with the current > default behavior. count me i

[HACKERS] Re: xReader, double-effort (was: Temporary tables under hot standby)

2012-04-27 Thread Kevin Grittner
[replaced bad email address for Josh (which was my fault)] Aakash Goel wrote: > All, the wiki page is now up at > http://wiki.postgresql.org/wiki/XReader. Note that the approach Aakash is taking doesn't involve changes to the backend code, it is strictly a standalone executable to which fun

Re: [HACKERS] 9.2 release notes, beta time?

2012-04-27 Thread Josh Berkus
>> I suspect that's a bit aggressive. We have a couple of issues that I >> think we should fix before beta1: Hmmm. So are we looking at May 7? Or later? I'd like to do some press work for this. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-hackers mailing li

Re: [HACKERS] Request to add options to tools/git_changelog

2012-04-27 Thread Bruce Momjian
On Thu, Apr 26, 2012 at 03:19:04PM -0400, Bruce Momjian wrote: > Also consider that A is usually the big, clear commit message, and B,C,D > are just minor adjustments with more brief commits, which might require > adjusting the release note item for feature A. When they are in > newest-first order

Re: [HACKERS] 9.2 release notes, beta time?

2012-04-27 Thread Bruce Momjian
On Fri, Apr 27, 2012 at 02:16:02PM -0700, Josh Berkus wrote: > > >> I suspect that's a bit aggressive. We have a couple of issues that I > >> think we should fix before beta1: > > Hmmm. So are we looking at May 7? Or later? > > I'd like to do some press work for this. Someone said one week as

Re: [HACKERS] Re: xReader, double-effort (was: Temporary tables under hot standby)

2012-04-27 Thread Andres Freund
On Friday, April 27, 2012 11:04:04 PM Kevin Grittner wrote: > [replaced bad email address for Josh (which was my fault)] > > Aakash Goel wrote: > > All, the wiki page is now up at > > > > http://wiki.postgresql.org/wiki/XReader. > > Note that the approach Aakash is taking doesn't involve chang

Re: [HACKERS] 9.2 release notes, beta time?

2012-04-27 Thread Josh Berkus
On 4/27/12 2:29 PM, Bruce Momjian wrote: > On Fri, Apr 27, 2012 at 02:16:02PM -0700, Josh Berkus wrote: >> I suspect that's a bit aggressive. We have a couple of issues that I think we should fix before beta1: >> >> Hmmm. So are we looking at May 7? Or later? >> >> I'd like to do some p

Re: [HACKERS] 9.2 release notes, beta time?

2012-04-27 Thread Bruce Momjian
On Fri, Apr 27, 2012 at 02:43:13PM -0700, Josh Berkus wrote: > On 4/27/12 2:29 PM, Bruce Momjian wrote: > > On Fri, Apr 27, 2012 at 02:16:02PM -0700, Josh Berkus wrote: > >> > I suspect that's a bit aggressive. We have a couple of issues that I > think we should fix before beta1: > >> >

Re: [HACKERS] smart shutdown at end of transaction (was: Default mode for shutdown)

2012-04-27 Thread Tom Lane
Robert Haas writes: > It seems we need another signal for the new mode, and the obvious > candidate is SIGUSR2. But what shall the mapping look like? > [Choice #1] SIGUSR2 -> slow, SIGTERM -> smart, SIGINT -> fast, SIGQUIT > -> immediate > [Choice #2] SIGTERM -> slow, SIGUSR2 -> smart, SIGINT ->

Re: [HACKERS] Re: xReader, double-effort (was: Temporary tables under hot standby)

2012-04-27 Thread Kevin Grittner
Andres Freund wrote: > In the current, prototypal, state there is one component thats > integrated into the server (because it needs information thats > only available there). The xReader design was based on the idea that it would be nice not to cause load on the master machine, and that by pr

Re: [HACKERS] xReader, double-effort

2012-04-27 Thread Greg Smith
On 04/26/2012 12:57 PM, Robert Haas wrote: I don't recall seeing any previous postings about the 2Q project, either. We should try to keep these discussions on-list. First brought up two months ago to the list it seemed most relevant to at the time: http://archives.postgresql.org/pgsql-clust

Re: [HACKERS] Future In-Core Replication

2012-04-27 Thread Joshua D. Drake
On 04/27/2012 11:33 AM, Simon Riggs wrote: Well, they all sound similar. My info was that Mammoth was not WAL-based. Mammoth was transaction log based but not WAL based. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postg

Re: [HACKERS] Re: xReader, double-effort (was: Temporary tables under hot standby)

2012-04-27 Thread Andres Freund
Hi Kevin, Hi Aakash, On Saturday, April 28, 2012 12:18:38 AM Kevin Grittner wrote: > Andres Freund wrote: > > In the current, prototypal, state there is one component thats > > integrated into the server (because it needs information thats > > only available there). > The xReader design was based

Re: [HACKERS] A problem with dump/restore of views containing whole row references

2012-04-27 Thread Tom Lane
Abbas Butt writes: > On Fri, Apr 27, 2012 at 11:21 PM, Tom Lane wrote: >> More generally, it seems rather inelegant to be forcibly adding a cast >> when in most cases the existing notation is not wrong. AFAICS the >> plain "relname" notation is only ambiguous if there is a column of the >> same

Re: [HACKERS] xReader, double-effort

2012-04-27 Thread Kevin Grittner
Greg Smith wrote: > On 04/26/2012 12:57 PM, Robert Haas wrote: >> I don't recall seeing any previous postings about the 2Q project, >> either. We should try to keep these discussions on-list. > > First brought up two months ago to the list it seemed most > relevant to at the time: > http://arch

Re: [HACKERS] Future In-Core Replication

2012-04-27 Thread Christopher Browne
On Fri, Apr 27, 2012 at 4:11 AM, Simon Riggs wrote: > What I'm hoping to do is to build a basic prototype of logical > replication using WAL translation, so we can inspect it to see what > the downsides are. It's an extremely non-trivial problem and so I > expect there to be mountains to climb. Th

Re: [HACKERS] plpython crash (PG 92)

2012-04-27 Thread Tom Lane
Peter Eisentraut writes: > I must have been confused about the tuple descriptor APIs. ob->tupdesc > is created using CreateTupleDescCopy(), which copies the refcount of the > original tuple descriptor, Um, surely not. That would be nonsensical, and anyway a look at the code shows it isn't doing

Re: [HACKERS] Re: xReader, double-effort (was: Temporary tables under hot standby)

2012-04-27 Thread Kevin Grittner
Andres Freund wrote: > Something like registering/deregistering also doesn't fit that > well with the way walsender works as far as I understand it. If you look at the diagrams on the xReader Wiki page, the lines labeled "XLOG stream" are the ones using walsender/walreceiver. The green arrows

Re: [HACKERS] 9.2 release notes, beta time?

2012-04-27 Thread Tom Lane
Josh Berkus writes: > On 4/27/12 2:29 PM, Bruce Momjian wrote: >> Someone said one week as not enough, so I assumed a wrap on May 10 with >> beta release on May 14. > Doing a release on May 14 will be a challenge, thanks to people being on > airplanes to pgCon. We might want to verify availabili

Re: [HACKERS] 9.2 release notes, beta time?

2012-04-27 Thread Devrim GÜNDÜZ
Hi, On Fri, 2012-04-27 at 19:02 -0400, Tom Lane wrote: > The website crew might have a problem though. Magnus is flying on 13th and 14th, Dave, Stefan and Thom are flying on 14th. I'm flying on 15th -- it seems I have some cycles for updating website, I hope. Not sure about the others. (As a si

Re: [HACKERS] 9.2 release notes, beta time?

2012-04-27 Thread Tom Lane
Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= writes: > (As a side note, RPMs *may not* be ready, because I (and Magnus) will be > at PGDay Turkey on 12th, and will be busy over the whole weekend). Ugh. Maybe the whole idea of getting a beta out before PGCon is doomed. Still, if we don't try for this sched

Re: [HACKERS] 9.2 release notes, beta time?

2012-04-27 Thread Bruce Momjian
On Fri, Apr 27, 2012 at 07:19:55PM -0400, Tom Lane wrote: > Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= writes: > > (As a side note, RPMs *may not* be ready, because I (and Magnus) will be > > at PGDay Turkey on 12th, and will be busy over the whole weekend). > > Ugh. Maybe the whole idea of getting a be

Re: [HACKERS] 9.2 release notes, beta time?

2012-04-27 Thread Josh Berkus
> Ugh. Maybe the whole idea of getting a beta out before PGCon is doomed. > Still, if we don't try for this schedule, we're looking at at least two > more weeks' slip, because we're surely not going to wrap during PGCon. We could do it in person! -- Josh Berkus PostgreSQL Experts Inc. http://

Re: [HACKERS] 9.2 release notes, beta time?

2012-04-27 Thread Josh Berkus
> Do we want to do the normal package Thursday, release Monday process? I > assumed we did. Given that in the last 2 years, our betas have been "news", I think we need to. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgr

Re: [HACKERS] xReader, double-effort

2012-04-27 Thread Greg Smith
On 04/27/2012 06:48 PM, Kevin Grittner wrote: That's largely my fault. It may not have come out that way, but I was trying more to point out the complexity of the story rather than assign blame. I find it hard to point at any obvious "don't do that again" target here. -- Greg Smith 2ndQu

Re: [HACKERS] 9.2 release notes, beta time?

2012-04-27 Thread Tom Lane
Bruce Momjian writes: > On Fri, Apr 27, 2012 at 07:19:55PM -0400, Tom Lane wrote: >> Ugh. Maybe the whole idea of getting a beta out before PGCon is doomed. >> Still, if we don't try for this schedule, we're looking at at least two >> more weeks' slip, because we're surely not going to wrap durin

Re: [HACKERS] 9.2 release notes, beta time?

2012-04-27 Thread Bruce Momjian
On Fri, Apr 27, 2012 at 09:10:54PM -0400, Tom Lane wrote: > Bruce Momjian writes: > > On Fri, Apr 27, 2012 at 07:19:55PM -0400, Tom Lane wrote: > >> Ugh. Maybe the whole idea of getting a beta out before PGCon is doomed. > >> Still, if we don't try for this schedule, we're looking at at least two

Re: [HACKERS] 9.2 release notes, beta time?

2012-04-27 Thread Tom Lane
Bruce Momjian writes: > On Fri, Apr 27, 2012 at 09:10:54PM -0400, Tom Lane wrote: >> How would that help? The bottleneck is packaging, which is the same >> work whatever we call it. > We release the alpha with no packaging. Think we'd lose a lot of potential testers that way.

Re: [HACKERS] 9.2 release notes, beta time?

2012-04-27 Thread David Johnston
On Apr 27, 2012, at 21:24, Tom Lane wrote: > Bruce Momjian writes: >> On Fri, Apr 27, 2012 at 09:10:54PM -0400, Tom Lane wrote: >>> How would that help? The bottleneck is packaging, which is the same >>> work whatever we call it. > >> We release the alpha with no packaging. > > Think we'd los

Re: [HACKERS] plpython crash (PG 92)

2012-04-27 Thread Tom Lane
Peter Eisentraut writes: > On tor, 2012-04-26 at 17:32 +0500, Asif Naeem wrote: >> PFA test case. It used simple select statement to retrieve data via >> plpython. It crashes latest pg 9.2 with the following stack trace i.e. >> Apparently it is being crashed because of invalid related pointer val

Re: [HACKERS] default_transaction_isolation = serializable causes crash under Hot Standby

2012-04-27 Thread Kevin Grittner
> "Kevin Grittner" wrote: > Tom Lane wrote: > >> Yeah, it would definitely be nicer if BEGIN; SET TRANSACTION LEVEL >> would work too. Maybe the place to put the check is where we >> establish the transaction snapshot. > > That makes sense, > I'll take a shot at it sometime today, Attached