Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id eBD1WIM28438 for ; Tue, 12 Dec 2000 20:32:18 -0500 (EST) (envelope-from pgsql-docs-owner@postgresql.org) Received: from cr15.cristorei.com.br (cr15.cristorei.com.br [200.230.89.96]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBCMeWM05634 for ; Tue, 12 Dec 2000 17:40:34 -0500 (EST) (envelope-from tulio@pcfacil.com.br) Received: from pcfacil.com.br (IDENT:nobody@cr15.cristorei.com.br [200.230.89.96]) by cr15.cristorei.com.br (8.9.3/8.8.7) with SMTP id UAA09887 for pgsql-docs@postgresql.org; Tue, 12 Dec 2000 20:41:41 -0200 Message-Id: <200012122241.UAA09887@cr15.cristorei.com.br> Date: Tue, 12 Dec 2000 22:41:40 -0000 To: pgsql-docs@postgresql.org Subject: Compiling C Functions From: X-Mailer: TWIG 2.3.2 X-Archive-Number: 200012/33 X-Sequence-Number: 80 Hi, ALL This is my first time in this list... Sorry by any inconvenience.... I need a TRIGGER thats runs whith POSTGRES permissions. IŽll give an ODBC connection for programmers that donŽt need to know the "rules" of my Data Base. So, IŽll creata an "fake" table, and with a BEFORE INSERT TRIGGER IŽll make all consistences, and update the REAL tables. The ODBC users have only INSERT permission on the fake table, and NO RIGHTS on the real table. IŽll make VIEWS whith SELECT, UPDATE and DELETE permissions for the ODBC users. By the same way, IŽll make TRIGGERS that manager the VIEWS. ----------- ALMOST ALL THIS WORK FINE when the function of the trigger is in PLPGSQL, but in this language, the Trigger run with the same ODBD userŽs rights .... I read that only a "C" function runs with POSTGRES permissions, but all the samples I get donŽt work... I canŽt even compile them... Please, anyone could help an "poor brazilian guy" to make this work :-) ? I appreciate any "C" Function complete samples, including de command line for the compiler. I using a RedHat Linux 6.2 and Postgresql 7.0.2-2 Best Regards, Tulio Oliveira.