Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nKNcl-0002rK-LU for pgsql-general@arkaria.postgresql.org; Wed, 16 Feb 2022 16:57:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nKNck-0004Gi-Eg for pgsql-general@arkaria.postgresql.org; Wed, 16 Feb 2022 16:57:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nKNck-0004GX-3q for pgsql-general@lists.postgresql.org; Wed, 16 Feb 2022 16:57:50 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nKNch-00012t-Am for pgsql-general@lists.postgresql.org; Wed, 16 Feb 2022 16:57:49 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 3DC5E5C0087; Wed, 16 Feb 2022 11:57:46 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 16 Feb 2022 11:57:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; bh=1YM2Wz56KKWGjz u/aEctjTl9Yox2K0X/SGF3ROT5734=; b=wS8UR81mfXy0yogr3CS2e7oFW7ozMA emxsfhPHmMts49wWKuOgTwhf1sCKZczzATC1iwQc/k978gvMbFDFRp51z9Cd8QKR CrTQFs804H3HbX2Bbx3zCO/W/pfv8HNU2sOGpex1i5xy+avm/MuOZmPR2aHL7joV Baj2Z+7TNWSJP+3Dq4naH7oa5OxEnxlZDH97CIu2szdtRlWN3nt9hRPdDENG92/u BmVi59BjvZtVB3ctCzRW4GmGPQ41/QhRcq3S7MYMaD2BzLeXlq/mw3i702dbWG6g PbNIg+6Y9mYpGtUjbwdBwIi7+5fj+EpJnG58TOZhco8PWsabGLiwj9Vg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=1YM2Wz56KKWGjzu/aEctjTl9Yox2K0X/SGF3ROT5734=; b=l+Whzhwp u6yX31sFPXHq0nGjFgrjhOQKlS3kf8O2+HFhzOuWcsn58NuTiPm66BSIcaRT9OaO FM3OkUJv2xqu4joI63dC81+Pgr2EnOIkeGkB7DDSvl5CvgEd6PE9QYnLbfjHb1hu vtxAdwwuNmDPJFzv6gx3xN0Mqy+vJNkPw9aRez1TTi/v4EcxgHCcJYKlmpwOEewg xrnr/LrHzYOUNkhhyabv6q6CGtnDdhXR2QtpqRX5BrVIy0KBqCYHIILMMo/lj+3d tSyrpP1yQjPyWcZLtgqaxNTn8mEqh+/ZOOTh4JZ57L0rCcPrzWKx5p8PK94oWePY dWMbrK6FMr80Bg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrjeeigdelgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepkeekheejvedvffeiveevjeegteffveejkeeghffhtdeu iefftdfgleehheekleegnecuffhomhgrihhnpegshihtvghsrdgtohhmpdhpghgrughmih hnrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 16 Feb 2022 11:57:45 -0500 (EST) Message-ID: <695a00eb-2ff4-1460-17ec-11aa369f0db3@aklaver.com> Date: Wed, 16 Feb 2022 08:57:44 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: How to disable read-only mode on a table? (superUser) Content-Language: en-US To: celati Laurent , pgsql-general@lists.postgresql.org References: From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2/16/22 02:30, celati Laurent wrote: > Good morning, > > I created a new table yesterday. I am superuser and I have all the > rights. I had no worries yesterday to make editions on this table. > Today all my fields are in readonly mode. As this post illustrates: > > https://bytes.com/topic/postgresql/answers/973206-how-remove-read-only-column-sign-postgresql > > > I tried a reboot of the postgres services. But nothing to do. If anyone > could help me ? Best bet is you don't have a PRIMARY KEY on the table. From the screenshot I'm guessing you are using pgAdmin and if I remember correctly it only allows updates when there is PK field. Just checked: https://www.pgadmin.org/docs/pgadmin4/6.5/editgrid.html "To modify the content of a table, each row in the table must be uniquely identifiable. If the table definition does not include an OID or a primary key, the displayed data is read only. Note that views cannot be edited; updatable views (using rules) are not supported." > Thank a lot. > -- Adrian Klaver adrian.klaver@aklaver.com