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

From Tom Lane
Subject Re: Server crash when using dblink_build_sql_* after alter table
Date
Msg-id 15794.1276536987@sss.pgh.pa.us
Whole thread Raw
In response to Re: Server crash when using dblink_build_sql_* after alter table  (Robert Voinea <robert.voinea@topex.ro>)
List pgsql-admin
Robert Voinea <robert.voinea@topex.ro> writes:
> 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.

Yeah, it looks like dblink is simply wrong about how to count the
columns in a case with dropped columns.  Thanks for the report, will
fix.

            regards, tom lane

pgsql-admin by date:

Previous
From: Robert Voinea
Date:
Subject: Re: Server crash when using dblink_build_sql_* after alter table
Next
From: Ricardo Bayley
Date:
Subject: Rules