X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 90AD49FB2DB for ; Mon, 21 Aug 2006 16:04:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 30273-05-6 for ; Mon, 21 Aug 2006 19:03:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by postgresql.org (Postfix) with ESMTP id 7E9A29FB33F for ; Mon, 21 Aug 2006 16:03:44 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id p77so2249376nfc for ; Mon, 21 Aug 2006 12:03:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=XSfRa/gKHylHOfAqiJ4WG3IeV+1cWVmbW3WGjjEc9sP69PATDaYwAa50ihte+U91G9YAWu6eGwWUXKWzs3+8ugLKBlHKs8KW8MtRlb3LncCM/44W99gBlopBf5PLwa+j2C0+E4KOxS8i+biRZnP2n2KpJ4jTuzsOo/v2mTGRzNE= Received: by 10.48.202.19 with SMTP id z19mr8129987nff; Mon, 21 Aug 2006 12:03:43 -0700 (PDT) Received: by 10.48.215.12 with HTTP; Mon, 21 Aug 2006 12:03:42 -0700 (PDT) Message-ID: <4f4c2a010608211203j6591249cifc9c0a793183aee@mail.gmail.com> Date: Mon, 21 Aug 2006 15:03:42 -0400 From: "Jon Horsman" To: pgsql-jdbc@postgresql.org Subject: Permission denied for sequece... MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200608/90 X-Sequence-Number: 15617 Hey, I'm in the process of porting an app from MySQL to PostgreSQL and am pretty new with PostgreSQL and am having permission problems. First, a little background info. - The postmaster is set to startup with -i and i'm able to actually connect without an exception. - I've added the following lines to the pg_hba.conf files (for testing purposes) local all all trust host all all 127.0.0.1 255.255.255.255 trust I create my db, as follows: createdb testdb then i log into psql and run the following CREATE USER testuser PASSWORD 'default'; GRANT ALL ON DATABASE testdb TO testuser; GRANT ALL ON [my table names] TO testuser; In my app i connect to the db with the following, which is run without issue. connection = DriverManager.getConnection("jdbc:postgresql:testdb", "testuser", "default"); I then call the following insert INSERT INTO Property (Name,Value) VALUES ("some name", "some value") and get the following error org.postgresql.util.PSQLException: ERROR: permission denied for sequence property_propertyid_seq The sql used to create the property table is CREATE TABLE Property (PropertyID SERIAL PRIMARY KEY, Name VARCHAR(64) UNIQUE NOT NULL, Value VARCHAR(255) NOT NULL); Can someone tell me what would cause this error message to occur and suggest ways that i could fix it? Thanks, Jon Horsman