Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u8r1B-00CdSg-Nl for pgsql-general@arkaria.postgresql.org; Sun, 27 Apr 2025 01:41:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u8r19-008NfU-7I for pgsql-general@arkaria.postgresql.org; Sun, 27 Apr 2025 01:41:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u8r18-008NfM-Sf for pgsql-general@lists.postgresql.org; Sun, 27 Apr 2025 01:41:15 +0000 Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u8r16-002G7W-0k for pgsql-general@lists.postgresql.org; Sun, 27 Apr 2025 01:41:14 +0000 Received: by mail-yb1-xb2e.google.com with SMTP id 3f1490d57ef6-e730ea57804so2310386276.1 for ; Sat, 26 Apr 2025 18:41:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745718071; x=1746322871; darn=lists.postgresql.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+DjWnWK4TM/KlKsb3U78MH1I6fmsUZiYC5Ilxpzhs8M=; b=Hfou5wTb0QU/vgtPmi+X50j1rqHXQFZt8upkpOyMeEqF/BJsoi88rrWUeqihIFrxVM SRMm7DCOPPoZYmuXmTQ/ZzlCVW70x3KmoseABacaFiJMz+AkLRRSeyfqq4bvhAl3tdjL lFaNu2L/7iNRMKupOzJG+yhAq0WTjriRLwhDAdS3GIEAYETDxJGlc00cDhXAJSd448Ty JQS7unHb+bGpEfwT/jGYbQSEJU949BSbxMWUbr9WY7At0cvKyAf87JnlGfm7a8Ik1OUD omGAC58tFTZaBl8v2/K2CMJS60d6YKGyFqC1CUJsDCNhBZHCbzkf1JMVaW6Oxi7qDfsn MheQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745718071; x=1746322871; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+DjWnWK4TM/KlKsb3U78MH1I6fmsUZiYC5Ilxpzhs8M=; b=NGA19Bip64lCDLMedfCfWGXtYwmTUbVDeHAibpAaxnOJCocWZzTxwAI2uQ2NNQ5LCc Z7+kHJ5i0GVsRnItEyn6LXH9Ix160bkHwIzI7hjgTbiir74sjh29PSYVAeJbvjrQfY3i 5YgKe81awfgZa/ZS7tG5WKRLi5LrhblE/hnwcKl3yPdgHrA5imq87xfyQo/lLM7v6T1v hawE0GtMhf83OfawRUDt0EMc474OQGFVakBaKPtfKWXlmc1z/GvU4C1Qp1qDOuWlKI5a a7vC+wjSE9LcgCYKCB2XPDzN6ZjNzmf2KqQJs0QvWdcUAEsit2isAGWig0B59HB9BrMQ yaww== X-Forwarded-Encrypted: i=1; AJvYcCW8+A0e2bJdT3afYAn3eTm4UTvrbRj18a4GvnA5HhLug4tI9/YOtjrad8MB9+SIGKN+OLTkPzpL5+IlliHc@lists.postgresql.org X-Gm-Message-State: AOJu0YwLDdh7bvIAmEGQp8m/dMuKs4EVuaYMieF2G+MaoydWks1fU/vY 50N+gRXY/tfzx23CSw/sMtZpjVX3XUH4vtJXi5kSIQMZV19b/ebrDO7yHnl/NL+LejlxRbaobL8 zHHYp4rMcFZXh4IbXCko0w2NoUsXlqV4zfTQ= X-Gm-Gg: ASbGncuGAqyY6FA1G6sl4fLIDmo1A6xXR93VuDz593TsIyjOyd9KtKj0GCn443DMQav MKPk6g1h5vnSXdYzovs5mv9Orn7LnbCo/ebxqiHpg3VnWdBYy8pvhXqnsdvFQ0XcyR+OfDzuoT1 1qjBqaaTdk0N1wNVULXWINo8gRAI8YWUpr2dsZ74zcBQnKFUuKjcDC8Vgq X-Google-Smtp-Source: AGHT+IF+bkfyGaKBbj582+9qKWXl9H75mQn/sfQrmr2MNa85SQz5hpTbya/tavX4IqNCz69lpPbF06r45yBU8Yo7ucs= X-Received: by 2002:a05:690c:b05:b0:702:d4f:cdbc with SMTP id 00721157ae682-708419d4453mr155933697b3.18.1745718070957; Sat, 26 Apr 2025 18:41:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Igor Korot Date: Sun, 27 Apr 2025 01:02:12 -0500 X-Gm-Features: ATxdqUFUWJO3EkM3QvOVg4skugA_O1mhCgXZg3l3L5vJv8Dptpzu6KgE9Avzz10 Message-ID: Subject: Re: How to get the data from the query To: "David G. Johnston" , "pgsql-generallists.postgresql.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Running this query: draft=3D# SELECT DISTINCT column_name, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_precision_radix, numeric_scale, is_nullabl e, column_default, ordinal_position, CASE WHEN column_name IN (SELECT ccu.column_name FROM information_schema.constraint_column_usage ccu, information_schema.table_con straints tc WHERE ccu.constraint_name =3D tc.constraint_name AND tc.constraint_type =3D 'PRIMARY KEY' AND ccu.table_name =3D 'leagues' ) THEN 'YES' ELSE 'NO' END AS is_pk F ROM information_schema.columns WHERE table_name=3D'leagues' ORDER BY ordinal_position; still produces good results: column_name | data_type | character_maximum_length | character_octet_length | numeric_precision | numeric_precision_radix | numeric_scale | is_nullable | col umn_default | ordinal_position | is_pk --------------+-------------------+--------------------------+-------------= -----------+-------------------+-------------------------+---------------+-= ------------+---- ------------+------------------+------- id | integer | | | 32 | 2 | 0 | NO | | 1 | YES name | character varying | 100 | 400 | | | | YES | | 2 | NO drafttype | integer | | | 32 | 2 | 0 | YES | | 3 | NO scoringtype | integer | | | 32 | 2 | 0 | YES | | 4 | NO roundvalues | integer | | | 32 | 2 | 0 | YES | | 5 | NO leaguetype | character | 5 | 20 | | | | YES | | 6 | NO salary | integer | | | 32 | 2 | 0 | YES | | 7 | NO benchplayers | integer | | | 32 | 2 | 0 | YES | | 8 | NO (8 rows) lines 1-12/12 (END) Thank you. On Sat, Apr 26, 2025 at 8:06=E2=80=AFPM David G. Johnston wrote: > > On Saturday, April 26, 2025, Igor Korot wrote: >> >> but the size comes out "" (empty) >> > > What is the value you are expecting? What is the minimal table definitio= n (i.e., a one or few column table) that would produce this expected value?= What does psql show if you use it to output the query against that table? > > David J. >