Re: Server crash when using dblink_build_sql_* after alter table - Mailing list pgsql-admin

From Robert Voinea
Subject Re: Server crash when using dblink_build_sql_* after alter table
Date
Msg-id 201006141415.09471.robert.voinea@topex.ro
Whole thread Raw
In response to Re: Server crash when using dblink_build_sql_* after alter table  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Server crash when using dblink_build_sql_* after alter table
Re: Server crash when using dblink_build_sql_* after alter table
List pgsql-admin
On Friday 11 June 2010 17:21:28 Tom Lane wrote:
> Robert Voinea <robert.voinea@topex.ro> writes:
> > I have a development database that is altered a lot and a set of
> > functions that make use of dblink_build_sql_*.
> > The problem is that after I update a table whenever I use a function that
> > makes use of dblink_build_sql the server crashes.
>
> This is a bug, but you have not provided sufficient information to let
> someone else reproduce it.  If you're unclear on what a complete bug
> report requires, see
> http://www.postgresql.org/docs/8.4/static/bug-reporting.html
>
>             regards, tom lane

Sorry about that. I wrote the mail in a hurry.

OS: Linux
Postgres Versions: 8.4.2 -- 8.4.4

Kernels
Linux vr 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010 i686
GNU/Linux
PostgreSQL 8.4.4

Linux topex_server 2.6.31-gentoo-r2 #1 SMP Tue Oct 13 15:48:58 EEST 2009 i686
Intel(R) Xeon(R) CPU E5504 @ 2.00GHz GenuineIntel GNU/Linux
PostgreSQL 8.4.4

I attached the server log (for the crash case) and a test case with logs.
For that test case this is the error I get, no server crash.

ERROR:  invalid memory alloc request size 4294967293

The scenario is this:
Create a table, drop a column, any column then add a varchar column and an int
column. Then use dblink_build_sql_update.

I am yet to identify the crash scenario...

I hope this helps...

--
Robert Voinea <robert (dot) voinea (at) topex (dot) ro>
Software Developer
Phone: +40 21 408 38 00 / ext. 343
Fax: +40 21 408 38 08
Local time: GMT+2
http://www.topex.ro

Attachment

pgsql-admin by date:

Previous
From: dx k9
Date:
Subject: check_postgres_bloat
Next
From: Tom Lane
Date:
Subject: Re: Server crash when using dblink_build_sql_* after alter table