pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
[Fwd: ERROR:  cannot extract system attribute from minimal tuple]
3+ messages / 3 participants
[nested] [flat]

* [Fwd: ERROR:  cannot extract system attribute from minimal tuple]
@ 2011-02-09 19:53 Denis Feklushkin <denis.feklushkin@gmail.com>
  2011-02-10 03:11 ` Re: [Fwd: ERROR: cannot extract system attribute from minimal tuple] Alvaro Herrera <alvherre@commandprompt.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Denis Feklushkin @ 2011-02-09 19:53 UTC (permalink / raw)
  To: pgsql-bugs

-------- Пересылаемое сообщение --------
От: Denis Feklushkin <denis.feklushkin@gmail.com>
Кому: submit@bugs.debian.org
Тема: ERROR: cannot extract system attribute from minimal tuple
Дата: Sat, 05 Feb 2011 09:50:06 +0700

Package: postgresql-9.0
Version: 9.0.3-1
Severity: normal
Tags: upstream

Query:

SELECT currency_id1
FROM bug0.currency_pairs p
FOR SHARE;

returns error:
ERROR:  cannot extract system attribute from minimal tuple

Schema:

---------------------------
CREATE SCHEMA bug0;

SET search_path = bug0, pg_catalog;

CREATE VIEW insider AS
    SELECT true AS insider;

CREATE TABLE pairs (
    currency_id1 text,
    currency_id2 text,
    hidden boolean,
    pair_id integer
);

CREATE VIEW currency_pairs AS
    SELECT p.pair_id, p.currency_id1, p.currency_id2
    FROM (pairs p CROSS JOIN insider i) WHERE ((NOT p.hidden) OR
i.insider)
ORDER BY p.pair_id;

COPY pairs (currency_id1, currency_id2, hidden, pair_id) FROM stdin;
BTC     RUB     f       1
\.

---------------------------






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

* Re: [Fwd: ERROR: cannot extract system attribute from minimal tuple]
  2011-02-09 19:53 [Fwd: ERROR:  cannot extract system attribute from minimal tuple] Denis Feklushkin <denis.feklushkin@gmail.com>
@ 2011-02-10 03:11 ` Alvaro Herrera <alvherre@commandprompt.com>
  2011-02-10 03:37   ` Re: [Fwd: ERROR: cannot extract system attribute from minimal tuple] Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Alvaro Herrera @ 2011-02-10 03:11 UTC (permalink / raw)
  To: Denis Feklushkin <denis.feklushkin@gmail.com>; +Cc: pgsql-bugs

Excerpts from Denis Feklushkin's message of mié feb 09 16:53:28 -0300 2011:

> Query:
> 
> SELECT currency_id1
> FROM bug0.currency_pairs p
> FOR SHARE;
> 
> returns error:
> ERROR:  cannot extract system attribute from minimal tuple

Hmm, yeah, in an assert-enabled build of HEAD it dies with:

TRAP: FailedAssertion(«!(attno > 0)», Archivo: «/pgsql/source/HEAD/src/backend/executor/execJunk.c», Línea: 251)

I don't have time to track this down right now ...

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



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

* Re: [Fwd: ERROR: cannot extract system attribute from minimal tuple]
  2011-02-09 19:53 [Fwd: ERROR:  cannot extract system attribute from minimal tuple] Denis Feklushkin <denis.feklushkin@gmail.com>
  2011-02-10 03:11 ` Re: [Fwd: ERROR: cannot extract system attribute from minimal tuple] Alvaro Herrera <alvherre@commandprompt.com>
@ 2011-02-10 03:37   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2011-02-10 03:37 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@commandprompt.com>; +Cc: Denis Feklushkin <denis.feklushkin@gmail.com>; pgsql-bugs

Alvaro Herrera <alvherre@commandprompt.com> writes:
> Hmm, yeah, in an assert-enabled build of HEAD it dies with:

> TRAP: FailedAssertion(«!(attno > 0)», Archivo: «/pgsql/source/HEAD/src/backend/executor/execJunk.c», Línea: 251)

> I don't have time to track this down right now ...

It's a shortcoming in the PlanRowMark+resjunk column data structure:
when we flatten subqueries, the rangetable indexes of the relations
to be row-locked can change, but the resjunk column names already
assigned to represent their ctid's aren't updated.  Working on a
fix now.

			regards, tom lane



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


end of thread, other threads:[~2011-02-10 03:37 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-02-09 19:53 [Fwd: ERROR:  cannot extract system attribute from minimal tuple] Denis Feklushkin <denis.feklushkin@gmail.com>
2011-02-10 03:11 ` Re: [Fwd: ERROR: cannot extract system attribute from minimal tuple] Alvaro Herrera <alvherre@commandprompt.com>
2011-02-10 03:37   ` Re: [Fwd: ERROR: cannot extract system attribute from minimal tuple] Tom Lane <tgl@sss.pgh.pa.us>

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