On Mon, May 16, 2005 at 01:25:46PM -0500, Juan Pablo Espino wrote: > I need to write a function that retrieve the name of at least one > table primary key, if it exists. The only argument passed to the > function is the table name. I have thought something like this:
Why mess around with a C function, if you can do it in straight SQL? You can write a SQL function if need be. -- Alvaro Herrera (<alvherre[a]surnet.cl>) Voy a acabar con todos los humanos / con los humanos yo acabaré voy a acabar con todos / con todos los humanos acabaré (Bender) ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster