pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Volpe <volpe.mark@epamail.epa.gov>
To: pgsql-sql@postgresql.org
Subject: Postgres backend crash on alpha
Date: Wed, 16 Feb 2000 11:35:46 -0500
Message-ID: <38AAD1E2.BBFDFD37@epamail.epa.gov> (raw)

The following sequence causes the backend
to crash:

CREATE TABLE test1 (a text);
CREATE TABLE test2 (b text);

CREATE RULE test_insert AS ON INSERT TO test1
DO INSTEAD INSERT INTO test2 VALUES (NEW.a);

INSERT INTO test1 VALUES ('crash');


For some reason this only occurs on the alpha platform
(tried on alpha and linux).

If I try this using ints it works fine, though. And the use
of "NEW" seems to be what's screwing it up.

Is there a fix for this?
It is crashing in the _copyConst function on this line:

length = VARSIZE(from->constvalue)

Thanks,
Mark



view thread (3+ messages)  latest in thread

Message-ID: <38AAD1E2.BBFDFD37@epamail.epa.gov>
Permalink:  ../38AAD1E2.BBFDFD37@epamail.epa.gov/
Also on:    postgresql.org/message-id/38AAD1E2.BBFDFD37@epamail.epa.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: volpe.mark@epamail.epa.gov
  Subject: Re: Postgres backend crash on alpha
  In-Reply-To: <38AAD1E2.BBFDFD37@epamail.epa.gov>
  References: <38AAD1E2.BBFDFD37@epamail.epa.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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