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 1kNcMg-0001EZ-AL for pgsql-general@arkaria.postgresql.org; Wed, 30 Sep 2020 13:41: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 1kNcMe-00027v-VI for pgsql-general@arkaria.postgresql.org; Wed, 30 Sep 2020 13:41:48 +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 1kNcMe-00027n-JI for pgsql-general@lists.postgresql.org; Wed, 30 Sep 2020 13:41:48 +0000 Received: from mx3.wp.pl ([212.77.101.9]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNcMb-00067W-L4 for pgsql-general@lists.postgresql.org; Wed, 30 Sep 2020 13:41:48 +0000 Received: (wp-smtpd smtp.wp.pl 23861 invoked from network); 30 Sep 2020 15:41:43 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1601473303; bh=RZDd6hHIKfvt7D3JEeuroP7NhKdtRF6+wjXZV2PRe5A=; h=Subject:To:From; b=Jmc+z8fZ15OBsVnpKbNnpiDQkbHQnnAX5c7eRRXLohAkJBG53o2SATB5aD0Of5E4d Xm9gDhl1jOvK94t8bkWEV92L1SlPYyC+I4EZVLPnacivRkvQTfsuv4mzOCMiPjz8Dg vTdQRpH5+GWAezJfZ+h3ZJKYRS3HSIpifBEZqKKc= Received: from 78-11-36-98.cmr.net.pl (HELO [192.168.1.226]) (ipluta@wp.pl@[78.11.36.98]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 30 Sep 2020 15:41:43 +0200 Subject: Re: Table sizes To: luis.roberto@siscobra.com.br, pgsql-general References: <78366091.53791693.1601467902283.JavaMail.zimbra@siscobra.com.br> From: "Ireneusz Pluta/wp.pl" Message-ID: Date: Wed, 30 Sep 2020 15:41:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <78366091.53791693.1601467902283.JavaMail.zimbra@siscobra.com.br> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: pl X-WP-MailID: 19117211b1293efc200e5c274f56da8e X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000009 [IDPU] List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk W dniu 2020-09-30 o 14:11, luis.roberto@siscobra.com.br pisze: > Hi! > > I'm trying to use this query to get table sizes, however I'm getting a strange error: > > select tablename,pg_relation_size(tablename::text) >   from pg_tables; > > In PG 13: > > SQL Error [42P01]: ERROR: relation "sql_implementation_info" does not exist > > In PG 12: > > SQL Error [42P01]: ERROR: relation "sql_parts" does not exist > You need to use full tablenames, using schemaname of pg_tables too.