pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
19+ messages / 4 participants
[nested] [flat]

* PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
@ 2013-01-24 04:21 Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  0 siblings, 1 reply; 19+ messages in thread

From: Mark Kirkwood @ 2013-01-24 04:21 UTC (permalink / raw)
  To: pgsql-bugs

I admit - it sounds unlikely. However a simple scenario (attached) gives 
rise to:

WARNING:  AbortTransaction while in COMMIT state
PANIC:  cannot abort transaction 880983, it was already committed

Essentially we are doing:

BEGIN;
DROP TABLE IF EXISTS tab0;
CREATE TEMP TABLE tab0 ( id INTEGER PRIMARY KEY, val TEXT);
INSERT INTO tab0  SELECT generate_series(1,1000),'xxxxxxxxxx';
SELECT median(id) FROM tab0;
DROP TABLE IF EXISTS tab1;
CREATE TEMP TABLE tab1 ( id INTEGER PRIMARY KEY, val TEXT);
INSERT INTO tab1  SELECT generate_series(1,1000),'xxxxxxxxxx';
DROP TABLE IF EXISTS tab2;
...
DROP TABLE IF EXISTS tab99;
CREATE TEMP TABLE tab99 ( id INTEGER PRIMARY KEY, val TEXT);
INSERT INTO tab99  SELECT generate_series(1,1000),'xxxxxxxxxx';
SELECT median(id) FROM tab99;
COMMIT;


We crash at commit.

Changing median to something else (e.g avg or even a non PLR median 
function) makes the error vanish, so its either PLR or the specific PLR 
median function causing the grief.

Regards

Mark

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

median.sql (text/x-sql, 216B) download create or replace function r_median(_float8) returns float as ' median(arg1) ' language 'plr'; CREATE AGGREGATE median ( sfunc = plr_array_accum, basetype = float8, stype = _float8, finalfunc = r_median );
temp.sql (text/x-sql, 15.0K) download BEGIN; DROP TABLE IF EXISTS tab0; CREATE TEMP TABLE tab0 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab0 SELECT generate_series(1,1000),'xxxxxxxxxx'; SELECT median(id) FROM tab0; DROP TABLE IF EXISTS tab1; CREATE TEMP TABLE tab1 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab1 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab2; CREATE TEMP TABLE tab2 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab2 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab3; CREATE TEMP TABLE tab3 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab3 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab4; CREATE TEMP TABLE tab4 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab4 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab5; CREATE TEMP TABLE tab5 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab5 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab6; CREATE TEMP TABLE tab6 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab6 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab7; CREATE TEMP TABLE tab7 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab7 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab8; CREATE TEMP TABLE tab8 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab8 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab9; CREATE TEMP TABLE tab9 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab9 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab10; CREATE TEMP TABLE tab10 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab10 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab11; CREATE TEMP TABLE tab11 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab11 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab12; CREATE TEMP TABLE tab12 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab12 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab13; CREATE TEMP TABLE tab13 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab13 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab14; CREATE TEMP TABLE tab14 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab14 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab15; CREATE TEMP TABLE tab15 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab15 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab16; CREATE TEMP TABLE tab16 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab16 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab17; CREATE TEMP TABLE tab17 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab17 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab18; CREATE TEMP TABLE tab18 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab18 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab19; CREATE TEMP TABLE tab19 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab19 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab20; CREATE TEMP TABLE tab20 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab20 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab21; CREATE TEMP TABLE tab21 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab21 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab22; CREATE TEMP TABLE tab22 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab22 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab23; CREATE TEMP TABLE tab23 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab23 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab24; CREATE TEMP TABLE tab24 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab24 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab25; CREATE TEMP TABLE tab25 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab25 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab26; CREATE TEMP TABLE tab26 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab26 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab27; CREATE TEMP TABLE tab27 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab27 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab28; CREATE TEMP TABLE tab28 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab28 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab29; CREATE TEMP TABLE tab29 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab29 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab30; CREATE TEMP TABLE tab30 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab30 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab31; CREATE TEMP TABLE tab31 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab31 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab32; CREATE TEMP TABLE tab32 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab32 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab33; CREATE TEMP TABLE tab33 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab33 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab34; CREATE TEMP TABLE tab34 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab34 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab35; CREATE TEMP TABLE tab35 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab35 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab36; CREATE TEMP TABLE tab36 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab36 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab37; CREATE TEMP TABLE tab37 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab37 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab38; CREATE TEMP TABLE tab38 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab38 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab39; CREATE TEMP TABLE tab39 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab39 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab40; CREATE TEMP TABLE tab40 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab40 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab41; CREATE TEMP TABLE tab41 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab41 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab42; CREATE TEMP TABLE tab42 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab42 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab43; CREATE TEMP TABLE tab43 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab43 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab44; CREATE TEMP TABLE tab44 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab44 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab45; CREATE TEMP TABLE tab45 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab45 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab46; CREATE TEMP TABLE tab46 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab46 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab47; CREATE TEMP TABLE tab47 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab47 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab48; CREATE TEMP TABLE tab48 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab48 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab49; CREATE TEMP TABLE tab49 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab49 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab50; CREATE TEMP TABLE tab50 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab50 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab51; CREATE TEMP TABLE tab51 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab51 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab52; CREATE TEMP TABLE tab52 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab52 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab53; CREATE TEMP TABLE tab53 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab53 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab54; CREATE TEMP TABLE tab54 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab54 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab55; CREATE TEMP TABLE tab55 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab55 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab56; CREATE TEMP TABLE tab56 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab56 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab57; CREATE TEMP TABLE tab57 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab57 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab58; CREATE TEMP TABLE tab58 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab58 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab59; CREATE TEMP TABLE tab59 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab59 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab60; CREATE TEMP TABLE tab60 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab60 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab61; CREATE TEMP TABLE tab61 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab61 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab62; CREATE TEMP TABLE tab62 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab62 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab63; CREATE TEMP TABLE tab63 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab63 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab64; CREATE TEMP TABLE tab64 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab64 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab65; CREATE TEMP TABLE tab65 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab65 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab66; CREATE TEMP TABLE tab66 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab66 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab67; CREATE TEMP TABLE tab67 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab67 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab68; CREATE TEMP TABLE tab68 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab68 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab69; CREATE TEMP TABLE tab69 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab69 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab70; CREATE TEMP TABLE tab70 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab70 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab71; CREATE TEMP TABLE tab71 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab71 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab72; CREATE TEMP TABLE tab72 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab72 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab73; CREATE TEMP TABLE tab73 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab73 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab74; CREATE TEMP TABLE tab74 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab74 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab75; CREATE TEMP TABLE tab75 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab75 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab76; CREATE TEMP TABLE tab76 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab76 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab77; CREATE TEMP TABLE tab77 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab77 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab78; CREATE TEMP TABLE tab78 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab78 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab79; CREATE TEMP TABLE tab79 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab79 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab80; CREATE TEMP TABLE tab80 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab80 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab81; CREATE TEMP TABLE tab81 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab81 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab82; CREATE TEMP TABLE tab82 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab82 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab83; CREATE TEMP TABLE tab83 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab83 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab84; CREATE TEMP TABLE tab84 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab84 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab85; CREATE TEMP TABLE tab85 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab85 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab86; CREATE TEMP TABLE tab86 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab86 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab87; CREATE TEMP TABLE tab87 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab87 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab88; CREATE TEMP TABLE tab88 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab88 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab89; CREATE TEMP TABLE tab89 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab89 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab90; CREATE TEMP TABLE tab90 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab90 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab91; CREATE TEMP TABLE tab91 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab91 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab92; CREATE TEMP TABLE tab92 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab92 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab93; CREATE TEMP TABLE tab93 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab93 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab94; CREATE TEMP TABLE tab94 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab94 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab95; CREATE TEMP TABLE tab95 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab95 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab96; CREATE TEMP TABLE tab96 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab96 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab97; CREATE TEMP TABLE tab97 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab97 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab98; CREATE TEMP TABLE tab98 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab98 SELECT generate_series(1,1000),'xxxxxxxxxx'; DROP TABLE IF EXISTS tab99; CREATE TEMP TABLE tab99 ( id INTEGER PRIMARY KEY, val TEXT); INSERT INTO tab99 SELECT generate_series(1,1000),'xxxxxxxxxx'; SELECT median(id) FROM tab99; COMMIT;
^ permalink raw reply [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
@ 2013-01-24 15:14 ` Joe Conway <mail@joeconway.com>
  2013-01-24 19:01   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:12   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  0 siblings, 2 replies; 19+ messages in thread

From: Joe Conway @ 2013-01-24 15:14 UTC (permalink / raw)
  To: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>; +Cc: pgsql-bugs

On 01/24/2013 05:21 AM, Mark Kirkwood wrote:
> I admit - it sounds unlikely. However a simple scenario (attached) gives
> rise to:

This is the wrong place for the bug report on PL/R I think, but I'll
take a look.

Joe


> WARNING:  AbortTransaction while in COMMIT state
> PANIC:  cannot abort transaction 880983, it was already committed
> 
> Essentially we are doing:
> 
> BEGIN;
> DROP TABLE IF EXISTS tab0;
> CREATE TEMP TABLE tab0 ( id INTEGER PRIMARY KEY, val TEXT);
> INSERT INTO tab0  SELECT generate_series(1,1000),'xxxxxxxxxx';
> SELECT median(id) FROM tab0;
> DROP TABLE IF EXISTS tab1;
> CREATE TEMP TABLE tab1 ( id INTEGER PRIMARY KEY, val TEXT);
> INSERT INTO tab1  SELECT generate_series(1,1000),'xxxxxxxxxx';
> DROP TABLE IF EXISTS tab2;
> ...
> DROP TABLE IF EXISTS tab99;
> CREATE TEMP TABLE tab99 ( id INTEGER PRIMARY KEY, val TEXT);
> INSERT INTO tab99  SELECT generate_series(1,1000),'xxxxxxxxxx';
> SELECT median(id) FROM tab99;
> COMMIT;
> 
> 
> We crash at commit.
> 
> Changing median to something else (e.g avg or even a non PLR median
> function) makes the error vanish, so its either PLR or the specific PLR
> median function causing the grief.


-- 
Joe Conway
credativ LLC: http://www.credativ.us
Linux, PostgreSQL, and general Open Source
Training, Service, Consulting, & 24x7 Support


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
@ 2013-01-24 19:01   ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 19:38     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  1 sibling, 1 reply; 19+ messages in thread

From: Mark Kirkwood @ 2013-01-24 19:01 UTC (permalink / raw)
  To: Joe Conway <mail@joeconway.com>; +Cc: pgsql-bugs

Ah right - sorry, I did a quick look for a mail list on the plr web site 
and didn't spot anything.

Thanks

Mark

On 25/01/13 04:14, Joe Conway wrote:
> On 01/24/2013 05:21 AM, Mark Kirkwood wrote:
>> I admit - it sounds unlikely. However a simple scenario (attached) gives
>> rise to:
>
> This is the wrong place for the bug report on PL/R I think, but I'll
> take a look.
>




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 19:01   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
@ 2013-01-24 19:38     ` Joe Conway <mail@joeconway.com>
  0 siblings, 0 replies; 19+ messages in thread

From: Joe Conway @ 2013-01-24 19:38 UTC (permalink / raw)
  To: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>; +Cc: pgsql-bugs

On 01/24/2013 08:01 PM, Mark Kirkwood wrote:
> Ah right - sorry, I did a quick look for a mail list on the plr web site
> and didn't spot anything.

No problem. It is plr-general on pgfoundry:
http://pgfoundry.org/mail/?group_id=1000247

Joe


-- 
Joe Conway
credativ LLC: http://www.credativ.us
Linux, PostgreSQL, and general Open Source
Training, Service, Consulting, & 24x7 Support


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
@ 2013-01-24 21:12   ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:15     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  1 sibling, 1 reply; 19+ messages in thread

From: Mark Kirkwood @ 2013-01-24 21:12 UTC (permalink / raw)
  To: Joe Conway <mail@joeconway.com>; +Cc: pgsql-bugs

On 25/01/13 04:14, Joe Conway wrote:
> On 01/24/2013 05:21 AM, Mark Kirkwood wrote:
>> I admit - it sounds unlikely. However a simple scenario (attached) gives
>> rise to:
>
> This is the wrong place for the bug report on PL/R I think, but I'll
> take a look.
>
> Joe
>
>

FYI - 8.4 shows the same behaviour as 9.1, but 8.3 gets a SUGUSR1:


Program received signal SIGUSR1, User defined signal 1.
0x00000000005a401f in SIInsertDataEntry (segP=0x7f3b8ea5e2a0,
     data=data@entry=0x4082d10) at sinvaladt.c:255
255		segP->buffer[segP->maxMsgNum % MAXNUMMESSAGES] = *data;
(gdb)




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 21:12   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
@ 2013-01-24 21:15     ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:18       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 19+ messages in thread

From: Mark Kirkwood @ 2013-01-24 21:15 UTC (permalink / raw)
  To: Joe Conway <mail@joeconway.com>; +Cc: pgsql-bugs

On 25/01/13 10:12, Mark Kirkwood wrote:
> On 25/01/13 04:14, Joe Conway wrote:
>> On 01/24/2013 05:21 AM, Mark Kirkwood wrote:
>>> I admit - it sounds unlikely. However a simple scenario (attached) gives
>>> rise to:
>>
>> This is the wrong place for the bug report on PL/R I think, but I'll
>> take a look.
>>
>> Joe
>>
>>
>
> FYI - 8.4 shows the same behaviour as 9.1, but 8.3 gets a SUGUSR1:
>
>
> Program received signal SIGUSR1, User defined signal 1.
> 0x00000000005a401f in SIInsertDataEntry (segP=0x7f3b8ea5e2a0,
>      data=data@entry=0x4082d10) at sinvaladt.c:255
> 255        segP->buffer[segP->maxMsgNum % MAXNUMMESSAGES] = *data;
> (gdb)
>
>

Sorry - the others are getting a SIGUSR1 too (just was not so obvious). 
Here's bt from 9.1:

Program received signal SIGUSR1, User defined signal 1.
0x00007f2bfe4c1707 in kill () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007f2bfe4c1707 in kill () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x0000000000611683 in SICleanupQueue (callerHasWriteLock=1 '\001',
     minFree=<optimized out>) at sinvaladt.c:672
#2  0x0000000000611768 in SIInsertDataEntries (data=0x7f2bf68b4cb0, n=0)
     at sinvaladt.c:437
#3  0x00000000006cdad1 in ProcessInvalidationMessagesMulti (hdr=0x295b240,
     func=0x610de0 <SendSharedInvalidMessages>) at inval.c:402
#4  0x00000000006ce780 in AtEOXact_Inval (isCommit=<optimized out>)
     at inval.c:940
#5  0x00000000004826cd in CommitTransaction () at xact.c:1893
#6  0x000000000048467d in CommitTransactionCommand () at xact.c:2562
#7  0x0000000000623a17 in finish_xact_command () at postgres.c:2452
#8  finish_xact_command () at postgres.c:2441
#9  0x0000000000626b5d in exec_simple_query (query_string=0x29f7d60 
"COMMIT;")
     at postgres.c:1051
#10 PostgresMain (argc=<optimized out>, argv=<optimized out>,
     username=<optimized out>) at postgres.c:3968
#11 0x00000000005eb429 in BackendRun (port=0x2979f00) at postmaster.c:3611
#12 BackendStartup (port=0x2979f00) at postmaster.c:3296
#13 ServerLoop () at postmaster.c:1460
#14 0x00000000005ebd3c in PostmasterMain (argc=<optimized out>, 
argv=0x2955600)
     at postmaster.c:1121
#15 0x0000000000453d20 in main (argc=1, argv=0x2955600) at main.c:199
(gdb)



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 21:12   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:15     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
@ 2013-01-24 21:18       ` Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 21:29         ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  0 siblings, 1 reply; 19+ messages in thread

From: Tom Lane @ 2013-01-24 21:18 UTC (permalink / raw)
  To: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>; +Cc: Joe Conway <mail@joeconway.com>; pgsql-bugs

Mark Kirkwood <mark.kirkwood@catalyst.net.nz> writes:
> Sorry - the others are getting a SIGUSR1 too (just was not so obvious). 

SIGUSR1 is not a bug, it's expected cross-session signaling behavior.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 21:12   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:15     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:18       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
@ 2013-01-24 21:29         ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:36           ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 19+ messages in thread

From: Mark Kirkwood @ 2013-01-24 21:29 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Joe Conway <mail@joeconway.com>; pgsql-bugs

On 25/01/13 10:18, Tom Lane wrote:
> Mark Kirkwood <mark.kirkwood@catalyst.net.nz> writes:
>> Sorry - the others are getting a SIGUSR1 too (just was not so obvious).
>
> SIGUSR1 is not a bug, it's expected cross-session signaling behavior.
>
> 			regards, tom lane
>
>

Doh! Yes of course, sorry for the noise. I was busy thinking that the 
issue could be tied up with sinval and plan caching (if there is any) in 
plr and got excited about seeing something in gdb...and didn't think 
carefully about why what I was seeing was not a bug at all :-( Thanks 
for clarifying!

Cheers

Mark


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 21:12   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:15     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:18       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 21:29         ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
@ 2013-01-24 21:36           ` Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 21:46             ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 22:41             ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  0 siblings, 2 replies; 19+ messages in thread

From: Tom Lane @ 2013-01-24 21:36 UTC (permalink / raw)
  To: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>; +Cc: Joe Conway <mail@joeconway.com>; pgsql-bugs

Mark Kirkwood <mark.kirkwood@catalyst.net.nz> writes:
> Doh! Yes of course, sorry for the noise. I was busy thinking that the 
> issue could be tied up with sinval and plan caching (if there is any) in 
> plr and got excited about seeing something in gdb...and didn't think 
> carefully about why what I was seeing was not a bug at all :-( Thanks 
> for clarifying!

FWIW, presumably the failure comes from something throwing elog(ERROR)
after RecordTransactionCommit().  So what I'd try is setting a
breakpoint at errfinish and investigating what's causing the first error
call.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 21:12   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:15     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:18       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 21:29         ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:36           ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
@ 2013-01-24 21:46             ` Joe Conway <mail@joeconway.com>
  1 sibling, 0 replies; 19+ messages in thread

From: Joe Conway @ 2013-01-24 21:46 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>; pgsql-bugs

On 01/24/2013 10:36 PM, Tom Lane wrote:
> Mark Kirkwood <mark.kirkwood@catalyst.net.nz> writes:
>> Doh! Yes of course, sorry for the noise. I was busy thinking that the 
>> issue could be tied up with sinval and plan caching (if there is any) in 
>> plr and got excited about seeing something in gdb...and didn't think 
>> carefully about why what I was seeing was not a bug at all :-( Thanks 
>> for clarifying!
> 
> FWIW, presumably the failure comes from something throwing elog(ERROR)
> after RecordTransactionCommit().  So what I'd try is setting a
> breakpoint at errfinish and investigating what's causing the first error
> call.

Yeah -- will do. Thanks!

Joe


-- 
Joe Conway
credativ LLC: http://www.credativ.us
Linux, PostgreSQL, and general Open Source
Training, Service, Consulting, & 24x7 Support


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 21:12   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:15     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:18       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 21:29         ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:36           ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
@ 2013-01-24 22:41             ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-25 00:06               ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 19+ messages in thread

From: Mark Kirkwood @ 2013-01-24 22:41 UTC (permalink / raw)
  To: pgsql-bugs

On 25/01/13 10:36, Tom Lane wrote:
> Mark Kirkwood <mark.kirkwood@catalyst.net.nz> writes:
>> Doh! Yes of course, sorry for the noise. I was busy thinking that the
>> issue could be tied up with sinval and plan caching (if there is any) in
>> plr and got excited about seeing something in gdb...and didn't think
>> carefully about why what I was seeing was not a bug at all :-( Thanks
>> for clarifying!
>
> FWIW, presumably the failure comes from something throwing elog(ERROR)
> after RecordTransactionCommit().  So what I'd try is setting a
> breakpoint at errfinish and investigating what's causing the first error
> call.

If I have done this right, then this is the trace for the 1st message... 
from my wandering through the calls here it looks like a normal commit, 
and something goes a bit weird as SI messages are being processed...

0x00007f4e2a538425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007f4e2a538425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f4e2a53bb8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00000000006e0a70 in errfinish (dummy=dummy@entry=0) at elog.c:523
#3  0x00000000006e3031 in elog_finish (elevel=elevel@entry=22,
     fmt=fmt@entry=0x714d58 "cannot abort transaction %u, it was already 
committed") at elog.c:1202
#4  0x0000000000481d87 in RecordTransactionAbort (
     isSubXact=isSubXact@entry=0 '\000') at xact.c:1366
#5  0x0000000000481e89 in AbortTransaction () at xact.c:2272
#6  0x00000000004851c5 in AbortOutOfAnyTransaction () at xact.c:3807
#7  0x00000000006eddc9 in ShutdownPostgres (code=<optimized out>,
     arg=<optimized out>) at postinit.c:976
#8  0x0000000000610b7d in shmem_exit (code=code@entry=-1) at ipc.c:221
#9  0x0000000000610bf5 in proc_exit_prepare (code=-1) at ipc.c:181
#10 0x00007f4e2a53d901 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#11 0x00007f4e2a53d985 in exit () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x00007f4e272b951a in ?? () from /usr/lib/libR.so
#13 <signal handler called>
#14 0x00007f4e2a538707 in kill () from /lib/x86_64-linux-gnu/libc.so.6
#15 0x00000000006152e5 in SICleanupQueue (
     callerHasWriteLock=callerHasWriteLock@entry=1 '\001',
     minFree=minFree@entry=4) at sinvaladt.c:672
#16 0x00000000006153bd in SIInsertDataEntries (data=0x3943b70, n=0)
     at sinvaladt.c:437
#17 0x00000000006d1371 in ProcessInvalidationMessagesMulti (
     hdr=hdr@entry=0x204a280, func=0x6149f0 <SendSharedInvalidMessages>)
     at inval.c:402
#18 0x00000000006d2020 in AtEOXact_Inval (isCommit=isCommit@entry=1 '\001')
     at inval.c:940
#19 0x0000000000482bdd in CommitTransaction () at xact.c:1893
#20 0x0000000000484975 in CommitTransactionCommand () at xact.c:2562
#21 0x00000000006276d3 in finish_xact_command () at postgres.c:2452
#22 finish_xact_command () at postgres.c:2441
#23 0x000000000062a6f5 in exec_simple_query (query_string=0x20e8d70 
"COMMIT;")
     at postgres.c:1037
#24 PostgresMain (argc=<optimized out>, argv=argv@entry=0x20476b8,
     username=<optimized out>) at postgres.c:3968
#25 0x00000000005ee92f in BackendRun (port=0x2068f40) at postmaster.c:3617
#26 BackendStartup (port=0x2068f40) at postmaster.c:3302
#27 ServerLoop () at postmaster.c:1466
#28 0x00000000005ef4dc in PostmasterMain (argc=argc@entry=1,
     argv=argv@entry=0x2044640) at postmaster.c:1127
#29 0x0000000000453edb in main (argc=1, argv=0x2044640) at main.c:199



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 21:12   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:15     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:18       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 21:29         ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:36           ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 22:41             ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
@ 2013-01-25 00:06               ` Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-25 00:10                 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Andres Freund <andres@2ndquadrant.com>
  2013-01-25 00:39                 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  0 siblings, 2 replies; 19+ messages in thread

From: Tom Lane @ 2013-01-25 00:06 UTC (permalink / raw)
  To: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>; +Cc: pgsql-bugs; Joe Conway <mail@joeconway.com>

Mark Kirkwood <mark.kirkwood@catalyst.net.nz> writes:
> If I have done this right, then this is the trace for the 1st message... 
> from my wandering through the calls here it looks like a normal commit, 
> and something goes a bit weird as SI messages are being processed...

Seems like the critical bit is here:

> #11 0x00007f4e2a53d985 in exit () from /lib/x86_64-linux-gnu/libc.so.6
> #12 0x00007f4e272b951a in ?? () from /usr/lib/libR.so
> #13 <signal handler called>
> #14 0x00007f4e2a538707 in kill () from /lib/x86_64-linux-gnu/libc.so.6
> #15 0x00000000006152e5 in SICleanupQueue (
>      callerHasWriteLock=callerHasWriteLock@entry=1 '\001',
>      minFree=minFree@entry=4) at sinvaladt.c:672

Frame 15 is definitely SICleanupQueue trying to send a catchup SIGUSR1
interrupt to the furthest-behind backend.  The fact that we go directly
into a signal handler from the kill() suggests that the furthest-behind
backend is actually *this* backend, which perhaps is a bit surprising,
but it's supposed to work.  What it looks like, though, is that libR has
commandeered the SIGUSR1 signal handler, and just to be extra special
unfriendly to the surrounding program, it does an exit() when it traps a
SIGUSR1.

Unless libR can be coerced into not screwing up our signal handlers,
I'd say that PL/R is broken beyond repair.  That would be unfortunate.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 21:12   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:15     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:18       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 21:29         ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:36           ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 22:41             ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-25 00:06               ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
@ 2013-01-25 00:10                 ` Andres Freund <andres@2ndquadrant.com>
  1 sibling, 0 replies; 19+ messages in thread

From: Andres Freund @ 2013-01-25 00:10 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>; pgsql-bugs; Joe Conway <mail@joeconway.com>

On 2013-01-24 19:06:21 -0500, Tom Lane wrote:
> Mark Kirkwood <mark.kirkwood@catalyst.net.nz> writes:
> > If I have done this right, then this is the trace for the 1st message... 
> > from my wandering through the calls here it looks like a normal commit, 
> > and something goes a bit weird as SI messages are being processed...
> 
> Seems like the critical bit is here:
> 
> > #11 0x00007f4e2a53d985 in exit () from /lib/x86_64-linux-gnu/libc.so.6
> > #12 0x00007f4e272b951a in ?? () from /usr/lib/libR.so
> > #13 <signal handler called>
> > #14 0x00007f4e2a538707 in kill () from /lib/x86_64-linux-gnu/libc.so.6
> > #15 0x00000000006152e5 in SICleanupQueue (
> >      callerHasWriteLock=callerHasWriteLock@entry=1 '\001',
> >      minFree=minFree@entry=4) at sinvaladt.c:672
> 
> Frame 15 is definitely SICleanupQueue trying to send a catchup SIGUSR1
> interrupt to the furthest-behind backend.  The fact that we go directly
> into a signal handler from the kill() suggests that the furthest-behind
> backend is actually *this* backend, which perhaps is a bit surprising,
> but it's supposed to work.  What it looks like, though, is that libR has
> commandeered the SIGUSR1 signal handler, and just to be extra special
> unfriendly to the surrounding program, it does an exit() when it traps a
> SIGUSR1.
> 
> Unless libR can be coerced into not screwing up our signal handlers,
> I'd say that PL/R is broken beyond repair.  That would be unfortunate.

I wonder whether we could place some Assert's somewhere that verify our
signal handlers are still setup, this isn't the first bug caused by pl's
or libraries overriding them...

Greetings,

Andres Freund

-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 21:12   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:15     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:18       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 21:29         ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:36           ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 22:41             ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-25 00:06               ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
@ 2013-01-25 00:39                 ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-25 00:49                   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 19+ messages in thread

From: Mark Kirkwood @ 2013-01-25 00:39 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs; Joe Conway <mail@joeconway.com>

On 25/01/13 13:06, Tom Lane wrote:
> Mark Kirkwood <mark.kirkwood@catalyst.net.nz> writes:
>> If I have done this right, then this is the trace for the 1st message...
>> from my wandering through the calls here it looks like a normal commit,
>> and something goes a bit weird as SI messages are being processed...
>
> Seems like the critical bit is here:
>
>> #11 0x00007f4e2a53d985 in exit () from /lib/x86_64-linux-gnu/libc.so.6
>> #12 0x00007f4e272b951a in ?? () from /usr/lib/libR.so
>> #13 <signal handler called>
>> #14 0x00007f4e2a538707 in kill () from /lib/x86_64-linux-gnu/libc.so.6
>> #15 0x00000000006152e5 in SICleanupQueue (
>>       callerHasWriteLock=callerHasWriteLock@entry=1 '\001',
>>       minFree=minFree@entry=4) at sinvaladt.c:672
>
> Frame 15 is definitely SICleanupQueue trying to send a catchup SIGUSR1
> interrupt to the furthest-behind backend.  The fact that we go directly
> into a signal handler from the kill() suggests that the furthest-behind
> backend is actually *this* backend, which perhaps is a bit surprising,
> but it's supposed to work.  What it looks like, though, is that libR has
> commandeered the SIGUSR1 signal handler, and just to be extra special
> unfriendly to the surrounding program, it does an exit() when it traps a
> SIGUSR1.
>
> Unless libR can be coerced into not screwing up our signal handlers,
> I'd say that PL/R is broken beyond repair.  That would be unfortunate.
>
> 			regards, tom lane

It looks like Joe has run into something similar with libR stealing 
SIGINT, he reinstalls it. A simple patch along the same lines for 
SIGUSR1 (attached) seems to fix the issue.

I wonder if we need to install *all* the remaining signal handlers too?

Cheers

Mark

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

plr.c.diff (text/x-patch, 362B) download *** plr.c.orig 2013-01-25 13:35:15.674086215 +1300 --- plr.c 2013-01-25 13:35:20.770086052 +1300 *************** *** 397,402 **** --- 397,405 ---- */ pqsignal(SIGINT, StatementCancelHandler); /* cancel current query */ + /* Ditto for SIGUSR1*/ + pqsignal(SIGUSR1, procsignal_sigusr1_handler); /* handle usr1 */ + plr_pm_init_done = true; }
^ permalink raw reply [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 21:12   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:15     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:18       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 21:29         ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:36           ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 22:41             ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-25 00:06               ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-25 00:39                 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
@ 2013-01-25 00:49                   ` Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-25 00:56                     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  0 siblings, 1 reply; 19+ messages in thread

From: Tom Lane @ 2013-01-25 00:49 UTC (permalink / raw)
  To: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>; +Cc: pgsql-bugs; Joe Conway <mail@joeconway.com>

Mark Kirkwood <mark.kirkwood@catalyst.net.nz> writes:
> On 25/01/13 13:06, Tom Lane wrote:
>> Unless libR can be coerced into not screwing up our signal handlers,
>> I'd say that PL/R is broken beyond repair.  That would be unfortunate.

> It looks like Joe has run into something similar with libR stealing 
> SIGINT, he reinstalls it. A simple patch along the same lines for 
> SIGUSR1 (attached) seems to fix the issue.

This certainly is not good enough, for either signal.  What happens if
the signal arrives while libR still has control?  These things being
asynchronous with respect to the receiving backend, we certainly can't
assume that that won't happen.

Why does libR think it should be messing with these handlers in the
first place?

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 21:12   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:15     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:18       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 21:29         ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:36           ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 22:41             ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-25 00:06               ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-25 00:39                 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-25 00:49                   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
@ 2013-01-25 00:56                     ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-28 21:29                       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  0 siblings, 1 reply; 19+ messages in thread

From: Mark Kirkwood @ 2013-01-25 00:56 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs; Joe Conway <mail@joeconway.com>

On 25/01/13 13:49, Tom Lane wrote:
> Mark Kirkwood <mark.kirkwood@catalyst.net.nz> writes:
>> On 25/01/13 13:06, Tom Lane wrote:
>>> Unless libR can be coerced into not screwing up our signal handlers,
>>> I'd say that PL/R is broken beyond repair.  That would be unfortunate.
>
>> It looks like Joe has run into something similar with libR stealing
>> SIGINT, he reinstalls it. A simple patch along the same lines for
>> SIGUSR1 (attached) seems to fix the issue.
>
> This certainly is not good enough, for either signal.  What happens if
> the signal arrives while libR still has control?  These things being
> asynchronous with respect to the receiving backend, we certainly can't
> assume that that won't happen.
>
> Why does libR think it should be messing with these handlers in the
> first place?
>
>

Agreed - I will see if I can work out why.

Cheers

Mark




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 21:12   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:15     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:18       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 21:29         ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:36           ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 22:41             ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-25 00:06               ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-25 00:39                 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-25 00:49                   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-25 00:56                     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
@ 2013-01-28 21:29                       ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-28 23:57                         ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  0 siblings, 1 reply; 19+ messages in thread

From: Mark Kirkwood @ 2013-01-28 21:29 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs; Joe Conway <mail@joeconway.com>

On 25/01/13 13:56, Mark Kirkwood wrote:
> On 25/01/13 13:49, Tom Lane wrote:
>> Mark Kirkwood <mark.kirkwood@catalyst.net.nz> writes:
>>> On 25/01/13 13:06, Tom Lane wrote:
>>>> Unless libR can be coerced into not screwing up our signal handlers,
>>>> I'd say that PL/R is broken beyond repair.  That would be unfortunate.
>>
>>> It looks like Joe has run into something similar with libR stealing
>>> SIGINT, he reinstalls it. A simple patch along the same lines for
>>> SIGUSR1 (attached) seems to fix the issue.
>>
>> This certainly is not good enough, for either signal.  What happens if
>> the signal arrives while libR still has control?  These things being
>> asynchronous with respect to the receiving backend, we certainly can't
>> assume that that won't happen.
>>
>> Why does libR think it should be messing with these handlers in the
>> first place?
>>
>>
>
> Agreed - I will see if I can work out why.
>


Looking at the R source (which reminds me of Postgres, nice, clear 
code...), I saw quite a bit of code involving signal handlers - and 
nothing along the lines of "don't set them up if you are in embedded 
mode". So clearly more investigation is needed, and we really need to 
take this up on the R mailing list I think. Joe - is this something you 
would like to do? I am happy do it, but my knowledge of R is measured in 
hours...

Cheers

Mark



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 21:12   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:15     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:18       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 21:29         ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:36           ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 22:41             ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-25 00:06               ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-25 00:39                 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-25 00:49                   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-25 00:56                     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-28 21:29                       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
@ 2013-01-28 23:57                         ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-29 00:21                           ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  0 siblings, 1 reply; 19+ messages in thread

From: Mark Kirkwood @ 2013-01-28 23:57 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs; Joe Conway <mail@joeconway.com>

On 29/01/13 10:29, Mark Kirkwood wrote:
> On 25/01/13 13:56, Mark Kirkwood wrote:
>> On 25/01/13 13:49, Tom Lane wrote:
>>> Mark Kirkwood <mark.kirkwood@catalyst.net.nz> writes:
>>>> On 25/01/13 13:06, Tom Lane wrote:
>>>>> Unless libR can be coerced into not screwing up our signal handlers,
>>>>> I'd say that PL/R is broken beyond repair.  That would be 
>>>>> unfortunate.
>>>
>>>> It looks like Joe has run into something similar with libR stealing
>>>> SIGINT, he reinstalls it. A simple patch along the same lines for
>>>> SIGUSR1 (attached) seems to fix the issue.
>>>
>>> This certainly is not good enough, for either signal.  What happens if
>>> the signal arrives while libR still has control?  These things being
>>> asynchronous with respect to the receiving backend, we certainly can't
>>> assume that that won't happen.
>>>
>>> Why does libR think it should be messing with these handlers in the
>>> first place?
>>>
>>>
>>
>> Agreed - I will see if I can work out why.
>>
>
>
> Looking at the R source (which reminds me of Postgres, nice, clear 
> code...), I saw quite a bit of code involving signal handlers - and 
> nothing along the lines of "don't set them up if you are in embedded 
> mode". So clearly more investigation is needed, and we really need to 
> take this up on the R mailing list I think. Joe - is this something 
> you would like to do? I am happy do it, but my knowledge of R is 
> measured in hours...
>
>

Like a dog with a bone - sometimes it's hard to let go... given the 
quite readable nature of the R source I managed to find what I *think* 
is the "don't do R signals switch" (which I'd obviously missed before). 
Making use of this seems to fix the original bug - and possibly the 
SIGINT stealing too.

Patch attached to set the variable (R_SignalHandlers = 0), and remove 
the SIGINT workaround.

Cheers

Mark

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

plr.c-no-r-sig-handlers.diff (text/x-patch, 854B) download *** plr.c.orig 2011-08-30 10:42:56.000000000 +1200 --- plr.c 2013-01-29 12:56:53.995936063 +1300 *************** *** 31,37 **** * plr.c - Language handler and support functions */ #include "plr.h" - #include "libpq/pqsignal.h" PG_MODULE_MAGIC; --- 31,36 ---- *************** *** 369,374 **** --- 368,378 ---- atexit(plr_atexit); /* + * Try to stop R using its own signal handlers + */ + R_SignalHandlers = 0; + + /* * When initialization fails, R currently exits. Check the return * value anyway in case this ever gets fixed */ *************** *** 392,401 **** R_Interactive = false; #endif - /* - * R seems to try to steal SIGINT in recent releases, so steal it back - */ - pqsignal(SIGINT, StatementCancelHandler); /* cancel current query */ plr_pm_init_done = true; } --- 396,401 ----
^ permalink raw reply [nested|flat] 19+ messages in thread

* Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
  2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 15:14 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Joe Conway <mail@joeconway.com>
  2013-01-24 21:12   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:15     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:18       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 21:29         ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-24 21:36           ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 22:41             ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-25 00:06               ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-25 00:39                 ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-25 00:49                   ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-25 00:56                     ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-28 21:29                       ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2013-01-28 23:57                         ` Re: PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
@ 2013-01-29 00:21                           ` Joe Conway <mail@joeconway.com>
  0 siblings, 0 replies; 19+ messages in thread

From: Joe Conway @ 2013-01-29 00:21 UTC (permalink / raw)
  To: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-bugs

On 01/28/2013 03:57 PM, Mark Kirkwood wrote:
> Like a dog with a bone - sometimes it's hard to let go... given the
> quite readable nature of the R source I managed to find what I *think*
> is the "don't do R signals switch" (which I'd obviously missed before).
> Making use of this seems to fix the original bug - and possibly the
> SIGINT stealing too.
> 
> Patch attached to set the variable (R_SignalHandlers = 0), and remove
> the SIGINT workaround.

Cool -- thanks. Maybe that got added in a release since last I looked.

Joe

-- 
Joe Conway
credativ LLC: http://www.credativ.us
Linux, PostgreSQL, and general Open Source
Training, Service, Consulting, & 24x7 Support




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 19+ messages in thread


end of thread, other threads:[~2013-01-29 00:21 UTC | newest]

Thread overview: 19+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-01-24 04:21 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit) Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
2013-01-24 15:14 ` Joe Conway <mail@joeconway.com>
2013-01-24 19:01   ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
2013-01-24 19:38     ` Joe Conway <mail@joeconway.com>
2013-01-24 21:12   ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
2013-01-24 21:15     ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
2013-01-24 21:18       ` Tom Lane <tgl@sss.pgh.pa.us>
2013-01-24 21:29         ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
2013-01-24 21:36           ` Tom Lane <tgl@sss.pgh.pa.us>
2013-01-24 21:46             ` Joe Conway <mail@joeconway.com>
2013-01-24 22:41             ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
2013-01-25 00:06               ` Tom Lane <tgl@sss.pgh.pa.us>
2013-01-25 00:10                 ` Andres Freund <andres@2ndquadrant.com>
2013-01-25 00:39                 ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
2013-01-25 00:49                   ` Tom Lane <tgl@sss.pgh.pa.us>
2013-01-25 00:56                     ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
2013-01-28 21:29                       ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
2013-01-28 23:57                         ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
2013-01-29 00:21                           ` Joe Conway <mail@joeconway.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox