Skip site navigation (1) Skip section navigation (2)

Re: [SQL] Postgres backend crash on alpha

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Mark Volpe <volpe(dot)mark(at)epamail(dot)epa(dot)gov>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Postgres backend crash on alpha
Date: 2000-02-16 16:58:07
Message-ID: 200002161658.LAA03180@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-sql
I would like you to try this on the current snapshot on our ftp server. 
I suspect it has been fixed, but if not, we would like to get it fixed
because we are starting beta in a few days.


> 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
> 
> ************
> 
> 


-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

Responses

pgsql-sql by date

Next:From: Mark VolpeDate: 2000-02-16 18:16:49
Subject: Re: [SQL] Postgres backend crash on alpha
Previous:From: Mark VolpeDate: 2000-02-16 16:35:46
Subject: Postgres backend crash on alpha

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group