From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Giuseppe Sacco <giuseppe(at)eppesuigoccas(dot)homedns(dot)org> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: error "permission denied for relation" on postgresql 9.0.6 during CREATE TABLE |
Date: | 2012-01-27 17:38:10 |
Message-ID: | 10780.1327685890@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Giuseppe Sacco <giuseppe(at)eppesuigoccas(dot)homedns(dot)org> writes:
> I get this error while executing a CREATE TABLE statement.
> This is my CREATE statement:
> CREATE TABLE agenzia.BarcodeByDocumentInfo (
> docId VARCHAR(17) NOT NULL,
> defaultOp VARCHAR(10) NOT NULL DEFAULT 'Append',
> CONSTRAINT BcByDocInfo_pk PRIMARY KEY (docId),
> CONSTRAINT BcByDoc_defOp_ck
> CHECK ( defaultOp = 'Append' OR defaultOp = 'Overwrite' ),
> CONSTRAINT BcByDoc_docId_fk FOREIGN KEY(docId)
> REFERENCES agenzia.Documents(docId)
> );
> When I execute it on postgresql 9.0.6 I get this messages:
> NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "bcbydocinfo_pk" for table "barcodebydocumentinfo"
> ERROR: permission denied for relation documents
This example works for me. Are you sure you are executing the CREATE
TABLE command as user "neos"?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Xiaoning Xu | 2012-01-27 18:03:36 | populating database, partition table, foreign key constraint Error |
Previous Message | Giuseppe Sacco | 2012-01-27 17:17:13 | Re: error "permission denied for relation" on postgresql 9.0.6 during CREATE TABLE |