pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgres backend crash on alpha
3+ messages / 2 participants
[nested] [flat]
* Postgres backend crash on alpha
@ 2000-02-16 16:35 Mark Volpe <volpe.mark@epamail.epa.gov>
2000-02-16 16:58 ` Re: [SQL] Postgres backend crash on alpha Bruce Momjian <pgman@candle.pha.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: Mark Volpe @ 2000-02-16 16:35 UTC (permalink / raw)
To: pgsql-sql
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [SQL] Postgres backend crash on alpha
2000-02-16 16:35 Postgres backend crash on alpha Mark Volpe <volpe.mark@epamail.epa.gov>
@ 2000-02-16 16:58 ` Bruce Momjian <pgman@candle.pha.pa.us>
2000-02-16 18:16 ` Re: [SQL] Postgres backend crash on alpha Mark Volpe <volpe.mark@epamail.epa.gov>
0 siblings, 1 reply; 3+ messages in thread
From: Bruce Momjian @ 2000-02-16 16:58 UTC (permalink / raw)
To: Mark Volpe <volpe.mark@epamail.epa.gov>; +Cc: 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@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [SQL] Postgres backend crash on alpha
2000-02-16 16:35 Postgres backend crash on alpha Mark Volpe <volpe.mark@epamail.epa.gov>
2000-02-16 16:58 ` Re: [SQL] Postgres backend crash on alpha Bruce Momjian <pgman@candle.pha.pa.us>
@ 2000-02-16 18:16 ` Mark Volpe <volpe.mark@epamail.epa.gov>
0 siblings, 0 replies; 3+ messages in thread
From: Mark Volpe @ 2000-02-16 18:16 UTC (permalink / raw)
To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: pgsql-sql
Yup, it's fixed.
Bruce Momjian wrote:
>
> 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@candle.pha.pa.us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
>
> ************
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2000-02-16 18:16 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-02-16 16:35 Postgres backend crash on alpha Mark Volpe <volpe.mark@epamail.epa.gov>
2000-02-16 16:58 ` Bruce Momjian <pgman@candle.pha.pa.us>
2000-02-16 18:16 ` Mark Volpe <volpe.mark@epamail.epa.gov>
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