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 1khaXX-0004tl-Hd for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Nov 2020 15:47:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1khaX1-0008MP-2T for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Nov 2020 15:47:03 +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 1khaX0-0008MI-TM for pgsql-bugs@lists.postgresql.org; Tue, 24 Nov 2020 15:47:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khaWy-0004Ti-K0 for pgsql-bugs@lists.postgresql.org; Tue, 24 Nov 2020 15:47:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 0AOFkvPc286183; Tue, 24 Nov 2020 10:46:57 -0500 From: Tom Lane To: turon.david@seznam.cz cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16743: psql doesn't show whole expression in stored column In-reply-to: <16743-7b1bacc4af76e7ad@postgresql.org> References: <16743-7b1bacc4af76e7ad@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 24 Nov 2020 14:17:09 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <286181.1606232817.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 24 Nov 2020 10:46:57 -0500 Message-ID: <286182.1606232817@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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_exp= r(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. regards, tom lane