pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #11702: Identity column error
2+ messages / 2 participants
[nested] [flat]

* BUG #11702: Identity column error
@ 2014-10-17 11:39 abhishekmvn@gmail.com
  2014-10-17 16:52 ` Re: BUG #11702: Identity column error David G Johnston <david.g.johnston@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: abhishekmvn@gmail.com @ 2014-10-17 11:39 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      11702
Logged by:          Abhishek
Email address:      abhishekmvn@gmail.com
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.

Regards.


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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #11702: Identity column error
  2014-10-17 11:39 BUG #11702: Identity column error abhishekmvn@gmail.com
@ 2014-10-17 16:52 ` David G Johnston <david.g.johnston@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: David G Johnston @ 2014-10-17 16:52 UTC (permalink / raw)
  To: pgsql-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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2014-10-17 16:52 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-10-17 11:39 BUG #11702: Identity column error abhishekmvn@gmail.com
2014-10-17 16:52 ` David G Johnston <david.g.johnston@gmail.com>

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