Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.4) with SMTP id f7KESoP36219 for ; Mon, 20 Aug 2001 10:28:50 -0400 (EDT) (envelope-from pgsql-admin-owner@postgresql.org) Received: from ha1 (ha1.servicios.retecal.es [212.22.34.7]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f7EEfuP34902 for ; Tue, 14 Aug 2001 10:41:56 -0400 (EDT) (envelope-from jffernandez@usuarios.retecal.es) Received: from k5u8q3 (cable54a200.usuarios.retecal.es [212.22.54.200]) by smtp.servicios.retecal.es (iPlanet Messaging Server 5.0 Patch 3 (built Mar 23 2001)) with SMTP id <0GI200JCCBHRHK@smtp.servicios.retecal.es> for pgsql-admin@postgresql.org; Tue, 14 Aug 2001 16:41:51 +0200 (MEST) Date: Tue, 14 Aug 2001 16:45:13 +0200 From: Miguel Gonzalez Subject: Creating Users To: PostgreSqlAdmin Message-id: <005401c124cf$b9e976c0$c83616d4@usuarios.retecal.es> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Mailer: Microsoft Outlook Express 5.00.2615.200 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <3B788B57.8030406@kikakuya.com> X-Archive-Number: 200108/62 X-Sequence-Number: 1998 dear all, I am developing a client application with C++ Builder 3 to access a Database designed with PostgreSQL 7.0.4 using a BDE alias through the ODBC driver. I would like to have a form where I can add users to my users table of my database and also create the corresponding entry to the postgres pg_user table. What I have tried through the Database Explorer is the following transaction (I use begin and commit, otherwise the parser complains): BEGIN; CREATE USER user1 WITH PASSWORD 'passwd_user1' IN GROUP users_invui; COMMIT; I check in the pg_user table but no entry is added. I execute without the begin and the commit comands the same query in the backend (psql) and it works perfectly. What am I doing wrong? Many thanks in advance and sorry for my English Miguel