Re: [BUGS] backend crash on CREATE OR REPLACE of a C-function on Linux

2009-02-01 Thread Andrew Chernow
Stefan Kaltenbrunner wrote: Hi all! While hacking on some C-level functions I noticed that everytime I replaced the .so file and used CREATE OR REPLACE FUNCTION the backend immediatly crashed. To test that it was not caused by something my function does (or one of the libaries it links in)

Re: [BUGS] backend crash with FATAL: BeginInternalSubTransaction: unexpected state END

2007-05-30 Thread Tom Lane
Frank van Vugt <[EMAIL PROTECTED]> writes: >>> Ok, so for patch-sake, when I change BeginInternalSubTransaction() in >>> xact.c by moving these two cases to the upper set >>> (TBLOCK_STARTED/INPROGRESS/SUBINPROGRESS), then I should be ok? >> Try it and see ... > Been there, done that, seems to wo

Re: [BUGS] backend crash with FATAL: BeginInternalSubTransaction: unexpected state END

2007-05-30 Thread Frank van Vugt
> > Ok, so for patch-sake, when I change BeginInternalSubTransaction() in > > xact.c by moving these two cases to the upper set > > (TBLOCK_STARTED/INPROGRESS/SUBINPROGRESS), then I should be ok? > Try it and see ... Been there, done that, seems to work (both the example as well as my usecase).

Re: [BUGS] backend crash with FATAL: BeginInternalSubTransaction: unexpected state END

2007-05-30 Thread Tom Lane
Frank van Vugt <[EMAIL PROTECTED]> writes: > Ok, so for patch-sake, when I change BeginInternalSubTransaction() in xact.c > by moving these two cases to the upper set > (TBLOCK_STARTED/INPROGRESS/SUBINPROGRESS), then I should be ok? Try it and see ... regards, tom lane

Re: [BUGS] backend crash with FATAL: BeginInternalSubTransaction: unexpected state END

2007-05-30 Thread Frank van Vugt
> Hmm, do you get the impression that user-written constraint triggers > aren't very well tested ;-) ? Well, we users are here to serve ;) > It looks to me like BeginInternalSubTransaction simply needs to allow > TBLOCK_END (and TBLOCK_PREPARE too) as acceptable initial states Ok, so for patch-s

Re: [BUGS] backend crash with FATAL: BeginInternalSubTransaction: unexpected state END

2007-05-30 Thread Tom Lane
Frank van Vugt <[EMAIL PROTECTED]> writes: > FATAL: BeginInternalSubTransaction: unexpected state END Hmm, do you get the impression that user-written constraint triggers aren't very well tested ;-) ? It looks to me like BeginInternalSubTransaction simply needs to allow TBLOCK_END (and TBLOCK_PR

Re: [BUGS] Backend crash in 8.2.3 with plpgsql function

2007-03-15 Thread Reece Hart
On Thu, 2007-03-15 at 01:40 -0400, Tom Lane wrote: > SM <[EMAIL PROTECTED]> writes: > > I got a backend crash in Postgresql 8.2.3 with the plpgsql function. > > The following statement in psql causes a signal 11: > > psql=# create function testpl() returns void as 'begin return; > > end;'language

Re: [BUGS] Backend crash in 8.2.3 with plpgsql function

2007-03-15 Thread Alvaro Herrera
SM wrote: > Program terminated with signal 11, Segmentation fault. > Reading symbols from /usr/libexec/ld.so...done. > Reading symbols from /usr/lib/libm.so.1.0...done. > Reading symbols from /usr/lib/libc.so.29.0...done. > Reading symbols from /usr/local/pgsql/lib/plpgsql.so...done. > #0 0x234c2

Re: [BUGS] Backend crash in 8.2.3 with plpgsql function

2007-03-14 Thread Tom Lane
SM <[EMAIL PROTECTED]> writes: > I got a backend crash in Postgresql 8.2.3 with the plpgsql function. > The following statement in psql causes a signal 11: > psql=# create function testpl() returns void as 'begin return; > end;'language 'plpgsql'; Worksforme ... regards,

Re: [BUGS] backend crash with certain statements/tables

2004-03-02 Thread Jeff Bohmer
Jeff Bohmer <[EMAIL PROTECTED]> writes: Great! I'd like to try out the patch when it's ready. Here ya go. Works for me on OS X and Linux. Thank you very much! - Jeff -- Jeff Bohmer VisionLink, Inc. _ 303.402.0170 www.visionlink.org _

Re: [BUGS] backend crash with certain statements/tables

2004-03-02 Thread Tom Lane
Jeff Bohmer <[EMAIL PROTECTED]> writes: > Great! I'd like to try out the patch when it's ready. Here ya go. regards, tom lane Index: src/backend/executor/execAmi.c === RCS file: /cvsroot/pgsql-server/src/bac

Re: [BUGS] backend crash with certain statements/tables

2004-03-02 Thread Jeff Bohmer
I should have a patch later today. Great! I'd like to try out the patch when it's ready. Thanks, - Jeff -- Jeff Bohmer VisionLink, Inc. _ 303.402.0170 www.visionlink.org _ People. Tools. Change. Community. ---

Re: [BUGS] backend crash with certain statements/tables

2004-03-02 Thread Tom Lane
Jeff Bohmer <[EMAIL PROTECTED]> writes: > Running any of these statements on my database causes the backend to > crash (example from PG log below): Crash confirmed here. Seems to be a side-effect of the 7.4 optimization that tries to avoid "unnecessary" projection steps. In the "SELECT * FROM f

Re: [BUGS] Backend crash while indexing large strings

2001-02-12 Thread Stephen van Egmond
Tom Lane ([EMAIL PROTECTED]) wrote: > I get > > FATAL 1: btree: failed to add item to the page in _bt_sort (2) > pqReadData() -- backend closed the channel unexpectedly. > This probably means the backend terminated abnormally > before or while processing the request. > > Is that

Re: [BUGS] Backend crash while indexing large strings

2001-02-08 Thread Tom Lane
[EMAIL PROTECTED] writes: > The attached sql crashed Postgres 7.0.2 on a debian linux system > (intel), using the packages 7.0.2-6. I get FATAL 1: btree: failed to add item to the page in _bt_sort (2) pqReadData() -- backend closed the channel unexpectedly. This probably means the backe

Re: [BUGS] Backend crash on query with UNION subselect

2001-01-12 Thread Tom Lane
[EMAIL PROTECTED] writes: > There are two nearly identical tables, differ from each other by the > length of corresponding fields of type CHARACTER (one has > CHARACTER(20) field, other has CHARACTER(30) field). > when i do "select * from table1 union select * from table2" backend > crashes with m

Re: [BUGS] Backend crash trying to delete rows

2000-09-09 Thread Stephan Szabo
This is a known bug. Current sources will not crash, but will instead fail the query (since they are still referencing the name). By 7.2, the ri triggers should probably be following the oid of the tables and columns and will be safe from renames. Stephan Szabo [EMAIL PROTECTED] On Sat, 9 Sep

Re: [BUGS] backend crash

2000-04-01 Thread Tom Lane
>> Backend crashes at some queries involving views of aggregate queries. > 7.0beta3 is fixed in this area. The particular query shown here may work in 7.0, but it's important to know that views using grouping or aggregates are still not implemented right in 7.0. It's not going to be possible to

Re: [BUGS] backend crash

2000-03-31 Thread Bruce Momjian
7.0beta3 is fixed in this area. > > POSTGRESQL BUG REPORT TEMPLATE > > > > Your name : Marinos J. Y