pg_dump bug - problems along the way

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: hackers(at)postgreSQL(dot)org
Subject: pg_dump bug - problems along the way
Date: 1998-11-20 23:30:29
Message-ID: 199811202330.XAA31256@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Still trying to fix the bug with inherited check constraints...

I have tried to create a min(oid) aggregate, but when I use it, I get
the message `ERROR: fmgr_info: function 108994: cache lookup failed'.

What is the problem, please?

I created it thus:

create function oid4smaller (oid, oid) returns oid as
'/home/olly/cprogs/oidcompare.so' language 'c';

create aggregate min (basetype = oid, sfunc1 = oid4smaller,
stype1 = oid, stype2 = oid);

The C file is compiled and linked thus (for Linux x86):

$ gcc -o oidcompare.o -c -I/usr/include/postgresql oidcompare.c
$ gcc -shared -o oidcompare.so oidcompare.o

and it says:
#include <postgresql/postgres.h>

Oid oid4smaller(Oid o1, Oid o2) {
return (o1 < o2 ? o1 : o2);
}

Oid oid4larger(Oid o1, Oid o2) {
return (o1 > o2 ? o1 : o2);
}

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"If my people, which are called by my name, shall
humble themselves, and pray, and seek my face, and
turn from their wicked ways; then will I hear from
heaven, and will forgive their sin, and will heal
their land." II Chronicles 7:14

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Goran Thyni 1998-11-21 11:14:22 Re: [HACKERS] still Query Limits to 8K ?
Previous Message Bruce Momjian 1998-11-20 18:32:22 Re: [HACKERS] Bug in 6.4 release