Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XfAlm-0001QI-U6 for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Oct 2014 16:52:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XfAlm-0004dn-BF for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Oct 2014 16:52:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XfAll-0004dh-O3 for pgsql-bugs@postgresql.org; Fri, 17 Oct 2014 16:52:49 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XfAld-0006OT-MX for pgsql-bugs@postgresql.org; Fri, 17 Oct 2014 16:52:48 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XfAlb-0002dB-0C for pgsql-bugs@postgresql.org; Fri, 17 Oct 2014 09:52:39 -0700 Date: Fri, 17 Oct 2014 09:52:39 -0700 (PDT) From: David G Johnston To: pgsql-bugs@postgresql.org Message-ID: <1413564758999-5823453.post@n5.nabble.com> In-Reply-To: <20141017113951.2508.75232@wrigleys.postgresql.org> References: <20141017113951.2508.75232@wrigleys.postgresql.org> Subject: Re: BUG #11702: Identity column error MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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