Re: pg_dirtyread doesnt work - Mailing list pgsql-general

From Alejandro Carrillo
Subject Re: pg_dirtyread doesnt work
Date
Msg-id 1356710000.98742.YahooMailNeo@web172205.mail.ir2.yahoo.com
Whole thread Raw
In response to pg_dirtyread doesnt work  (Alejandro Carrillo <fasterzip@yahoo.es>)
Responses Re: pg_dirtyread doesnt work  (Phil Sorber <phil@omniti.com>)
List pgsql-general

Anybody knows why could be happening: ERROR:  invalid memory alloc request size 1850015748

Thanks

De: Alejandro Carrillo <fasterzip@yahoo.es>
Para: "pgsql-general@postgresql.org" <pgsql-general@postgresql.org>
Enviado: Jueves 27 de diciembre de 2012 16:17
Asunto: [GENERAL] pg_dirtyread doesnt work

Hi,

After of very tried to compile this PostgreSQL C function for Windows, I compile that (with VS C++ 2008), but the function get a error when try to read a deleted row. The example:

CREATE FUNCTION pg_dirtyread(oid)
RETURNS setof record
AS E'$libdir/pg_dirtyread', 'pg_finfo_pg_dirtyread' LANGUAGE C STRICT ;

Create table hola(
id bigserial,
dato1 varchar(199) not null,
fecha date
);

/*insert 3 rows and delete 1 row*/


select * from pg_dirtyread('hola'::regclass) t (id bigint,dato1 varchar(199), fecha date);

ERROR:  invalid memory alloc request size 1850015748

Anybody can help me?

Thanks


pgsql-general by date:

Previous
From: David Goodenough
Date:
Subject: Re: Tool to create database diagrams in postgreSQL
Next
From: Bryan Lee Nuse
Date:
Subject: Re: UNION and pg_restore