pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #11702: Identity column error
Date: Fri, 17 Oct 2014 09:52:39 -0700 (PDT)
Message-ID: <1413564758999-5823453.post@n5.nabble.com> (raw)
In-Reply-To: <20141017113951.2508.75232@wrigleys.postgresql.org>
References: <20141017113951.2508.75232@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

abhishekmvn wrote
> The following bug has been logged on the website:
> 
> Bug reference:      11702
> Logged by:          Abhishek
> Email address:      

> abhishekmvn@

> PostgreSQL version: 9.3.3
> Operating system:   Windows 7
> Description:        
> 
> How do i restrict the Server not to accept a manual insertion of identity
> column value. This is causing an exception in the App when we have
> multiple
> users using the same table and one of them doing a insertion of value in
> Identity column.
> Expecting a reply from you.

This is not a bug.  In the future reports of this nature should be directed
to the general mailing list.

When you give the users in question permission to INSERT on the table you
have to specify the columns they are allowed to insert to.

http://www.postgresql.org/docs/9.4/interactive/sql-grant.html

Per the comment for "INSERT" all other columns will be forced to receive
default values.

Given: tablea (id, val)
GRANT INSERT (val) ON TABLE tablea TO ...;

David J.




--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-11702-Identity-column-error-tp5823423p5823453.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <1413564758999-5823453.post@n5.nabble.com>
Permalink:  ../1413564758999-5823453.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1413564758999-5823453.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: david.g.johnston@gmail.com
  Subject: Re: BUG #11702: Identity column error
  In-Reply-To: <1413564758999-5823453.post@n5.nabble.com>
  References: <20141017113951.2508.75232@wrigleys.postgresql.org> <1413564758999-5823453.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox