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 1khqxG-00083N-Bq for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Nov 2020 09:19:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1khqxF-00005w-9i for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Nov 2020 09:19:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khqJW-0003qW-6f for pgsql-bugs@lists.postgresql.org; Wed, 25 Nov 2020 08:38:10 +0000 Received: from forward1-smtp.messagingengine.com ([66.111.4.223]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khqJT-0002Eg-96 for pgsql-bugs@lists.postgresql.org; Wed, 25 Nov 2020 08:38:08 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailforward.nyi.internal (Postfix) with ESMTP id 057BB1949117; Wed, 25 Nov 2020 03:38:06 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 25 Nov 2020 03:38:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=QfusgOXyqYjRS22s/uGLc965ZB0B8pSb+nSGFsNBY u4=; b=f1kVVqC9EBa2dMX1J2muzG1Tlri48UeJKT3SUVU2ompOB+wkpFSFkZ18B Q4ex6lvU2yrM5C52cSbsjACYZb91oFPu4Fzfq1PS76rKMCht24Idg8qNVLtXJyt/ IXMLLNp3qyOWgVhHS8oM9cAj56pN8+Ooa0zyJ5qoEzqcSMifkREbNfKZk16ctvZ7 fnfh/rT0ap4bf9NPPnjE5vG3dVRdSnWN1EjFiV5KM9M6tFMVMFbOu8TEikL6k9St lww/Y0NCnFI35LPMKHdMOzMR2ENsfJwbWS2j4PMll6OTs4KvBtIGGV5h5wRxf5Rr jHBwd1gt8EQoYvY9Sc5ZzsUJD4ztw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudegledguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhohfkffgfgggjtgfgse htjeertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvght vghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhmqeenucggtf frrghtthgvrhhnpeehheeijefgvefhvdehleekueevhfehhedvheetgffhteefgeeggfev jeejfffgvdenucfkphepkeejrddujeejrdejhedrleegnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: from april.pezone.net (p57b14b5e.dip0.t-ipconnect.de [87.177.75.94]) by mail.messagingengine.com (Postfix) with ESMTPA id 42A34328005D; Wed, 25 Nov 2020 03:38:04 -0500 (EST) Subject: Re: BUG #16743: psql doesn't show whole expression in stored column To: Tom Lane , turon.david@seznam.cz References: <16743-7b1bacc4af76e7ad@postgresql.org> <286182.1606232817@sss.pgh.pa.us> Cc: pgsql-bugs@lists.postgresql.org From: Peter Eisentraut Organization: EnterpriseDB Message-ID: <7a1faa2c-d4d1-67fd-03fe-29ef7e240301@enterprisedb.com> Date: Wed, 25 Nov 2020 09:38:03 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <286182.1606232817@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-11-24 16:46, Tom Lane wrote: > PG Bug reporting form writes: >> when generated column expression length is larger then some value - the rest >> of expression is cut in \d[+] output: > > Yeah, this is an intentional and very ancient behavior: > > appendPQExpBufferStr(&buf, > ",\n (SELECT substring(pg_catalog.pg_get_expr(d.adbin, d.adrelid, true) for 128)" > "\n FROM pg_catalog.pg_attrdef d" > > Maybe we should decide that completeness is more important than keeping > the line to some arbitrary width. But it's operating as designed. I think we should get rid of the truncating. Otherwise, there is no way to actually get the full information, is there? (Other than pg_dump or manual catalog queries.)