X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 91A2B3AB291 for ; Fri, 10 Dec 2004 21:53:27 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 82542-03 for ; Fri, 10 Dec 2004 21:52:52 +0000 (GMT) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by svr1.postgresql.org (Postfix) with ESMTP id 7232E3AC3F6 for ; Fri, 10 Dec 2004 18:45:47 +0000 (GMT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by svr4.postgresql.org (Postfix) with ESMTP id C99965AF2FA for ; Tue, 7 Dec 2004 18:41:19 +0000 (GMT) Received: (qmail 28108 invoked from network); 7 Dec 2004 18:40:59 -0000 Received: from dsl017-066-065.wdc1.dsl.speakeasy.net (HELO [192.168.0.150]) (eeric@[69.17.66.65]) (envelope-sender ) by mail4.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 7 Dec 2004 18:40:59 -0000 Message-ID: <41B5F94A.8090605@bonbon.net> Date: Tue, 07 Dec 2004 13:41:14 -0500 From: Eric E User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: ODBC Rewrite References: <16716.24.91.171.78.1102428945.squirrel@mail.mohawksoft.com> In-Reply-To: <16716.24.91.171.78.1102428945.squirrel@mail.mohawksoft.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/32 X-Sequence-Number: 4766 While you all are doing this thinking, can I put in am idea? I, like many others, am working on doing auditing in Postgres. Something that would be very useful for auditing in a web application environment would be to be able to pass various identifiers to the db before any SQL statement is executed. In particular, I'm thinking of something like Oracle's SET_IDENTIFIER('string') feature (e.g.: http://www.quest-pipelines.com/newsletter-v5/0604_C.htm), only implemented through a driver hook, so that you could set the driver to always pass this kind of identifier before executing any SQL. This would allow a very straightforward way to manage users and auditing in a setting where creating db users is not feasible, and it would be immune to the problems of connection pooling. Thoughts? Is this a bad thing to build into the driver? Cheers, Eric