[GENERAL] palloc with user's functions

1999-02-08 Thread Ricardo J.C.Coelho
Hi, I create a C function: create function FUNC (text) returns text as '/path/func.so' language 'C'; As described in manual, I allocate space to text return: ret=(text *) palloc (datasize+VARHDRSZ); The function works fine with small tables, but some problem occurs during server pfree with b

[GENERAL] Check constraint memory problem

1999-02-08 Thread Ricardo J.C.Coelho
Sexta-feira, 5 de Fevereiro de 1999 11:29 Para: Ricardo J.C.Coelho; [EMAIL PROTECTED] Assunto:Re: [GENERAL] Postmaster memory problem I regularly do this with tables in access of 1.5 million rows. E.g. update table set field1='',field2='',field3='&

[GENERAL] A mistake generates strange result

1999-02-08 Thread Ricardo J.C.Coelho
Just for PgSQL's development group think about I made a mistake typing a query that generates a strange result (Very strange). The query: select text('12345678'::float8); It returns a date in datetime format !! If you use: select ('12345678'::float8)::text;everything runs well

RES: [GENERAL] Conditioned access to a database

1999-02-11 Thread Ricardo J.C.Coelho
Olá Paulo, Como falamos a mesma língua, estou respondendo em Português. Veja o capítulo que fala sobre VIEWS e RULES. Você deve criar uma "view" para cada grupo selecionando apenas os registros que você quer permitir o acesso. Por exemplo: create view TABELA_GRUPOA as select * from TABELA wh