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 1u8qsQ-00CbqJ-78 for pgsql-general@arkaria.postgresql.org; Sun, 27 Apr 2025 01:32:14 +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 1u8qsO-008KJA-Ec for pgsql-general@arkaria.postgresql.org; Sun, 27 Apr 2025 01:32:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u8qsO-008KJ2-2y for pgsql-general@lists.postgresql.org; Sun, 27 Apr 2025 01:32:12 +0000 Received: from mail-yw1-x1136.google.com ([2607:f8b0:4864:20::1136]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u8qsM-0028u3-2Q for pgsql-general@lists.postgresql.org; Sun, 27 Apr 2025 01:32:12 +0000 Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-7080dd5f9f1so24651237b3.0 for ; Sat, 26 Apr 2025 18:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745717530; x=1746322330; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rpJkAUGLbW/FH1ayiAJge5HoJYa+VfiWNA4JPHVjFlQ=; b=KzkI15yJxm3rc6cK5DLKxBV9Wcv1eFF96NAqaWHmLqaSYQAoxqOrfRuC9G3edoZF/6 6ABNg4GAdPsN5baDWTiZdOcG/e920CQ6LBJuH6+0sT4IVohVgmoPwKBfFbZiqlC4NPSV Wsqcm5UM5WvtsE0ldAnClDGsVF9UKsWa+kOjJ5SY/+Hlg0rap5NXaW+W+Z5sOV6YcnR8 WWF7dkqlenvMp8O6ck2bxPboXE9pHUtCALRVMiydSkwePdHFvi72/2G2y/+0CORb/kAF Cd17hQiTkRjq6BJtavWqArN3XPlJQ72VRyHEUiuF3CQe4f1ZzRwqESKhK8uLkJVNoBeP a1tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745717530; x=1746322330; h=content-transfer-encoding:cc: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=rpJkAUGLbW/FH1ayiAJge5HoJYa+VfiWNA4JPHVjFlQ=; b=segnGGIGGiWudPCxAfw7lqn1nV2zInz8tiHdzxI4Y/0S+tI1rTrC4U1T+NqcMw8531 10aKZG4Z8iJ7AcdpgW2yf0ddjWtbqgzEHOxARX5j3umSTRc8WMhKsgVpGxLJ9iV7w1aI BgNxkOxs42+JfF71xxEtCeJfwdZ+u7Qml4QPOcUw78xoDyOCghCqeFb5+uNTvkaCOkyK pBIs3atZoF7OJP+XQy6aPzPo+LlbZz2LOh/5mHRV7F2xoYQxYIwvbjWIwK53Mkexr1IU EcWK6DfTfkZ5ojM50LrQQAxmCublPv3LJOK21/wnMR1w+hILFazuF3NEwnC5x+w4yk6/ OJfQ== X-Gm-Message-State: AOJu0Yy1BSSLMC59sBWdmYc/M7Q4KPr99nCPKMcoZoUojYOPCjObWBtZ NVxlP02klBpqscJk59xFaDaXzMlx0fQbauPt0H6NJU0TObjixo/GjMiDqtUrHjgncGT/8qm+0vi eRLfQOf1JfSBu4U3vBc7CjjJ3luqSJGo2GBk= X-Gm-Gg: ASbGncvCXAJwQjRdpYrwL15K/6HykQPDTZxje+hPR56ZCWbhI1gl++jR8tV5PxtK/gh UB+9BmULWDGIPZiSsJV4FK7Mf6y65Zu0iG+lt287M43deyc92MMiThxbEVsN+XiUO+8KQ+XCBVM vNipqM7nO/d33sj0lIg4sed/bKVbfdR5AAu7rkNsd5arqG1t20b3n3zOOU X-Google-Smtp-Source: AGHT+IG/vw+YrdgMeSFUgeJCoA3lUR7sWqf4m8KDiir/1OMO4Mp4XO/EYwOviVpRvyemivZKKS85ohoW2cYCnwKUNHA= X-Received: by 2002:a05:690c:6b88:b0:703:b5ae:a3da with SMTP id 00721157ae682-708541df751mr102778837b3.32.1745717530304; Sat, 26 Apr 2025 18:32:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Igor Korot Date: Sun, 27 Apr 2025 00:53:12 -0500 X-Gm-Features: ATxdqUFD0EyRyPZAURqrM_tf63LAfgA0PEe6bRT3SaZdBVi9bWbvM4MsvUFwop8 Message-ID: Subject: Re: How to get the data from the query To: "David G. Johnston" Cc: "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 Now this query still works: [code] 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 FROM information_schema.columns WHERE table_name=3D'leagues' ORDER BY ordinal_position; column_name | data_type | character_maximum_length | character_octet_length | numeric_precision | numeric_precision_radix | numeric_scale | is_nullable | col umn_default | ordinal_position --------------+-------------------+--------------------------+-------------= -----------+-------------------+-------------------------+---------------+-= ------------+---- ------------+------------------ id | integer | | | 32 | 2 | 0 | NO | | 1 name | character varying | 100 | 400 | | | | YES | | 2 drafttype | integer | | | 32 | 2 | 0 | YES | | 3 scoringtype | integer | | | 32 | 2 | 0 | YES | | 4 roundvalues | integer | | | 32 | 2 | 0 | YES | | 5 leaguetype | character | 5 | 20 | | | | YES | | 6 salary | integer | | | 32 | 2 | 0 | YES | | 7 benchplayers | integer | | | 32 | 2 | 0 | YES | | 8 (8 rows) [/code] 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. >