Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ThrLS-000529-Qr for pgsql-performance@arkaria.postgresql.org; Mon, 10 Dec 2012 00:35:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1ThrLR-0002wN-BD for pgsql-performance@arkaria.postgresql.org; Mon, 10 Dec 2012 00:35:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgRop-0006Uv-DJ for pgsql-performance@postgresql.org; Thu, 06 Dec 2012 03:08:11 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgRon-0006tp-NG for pgsql-performance@postgresql.org; Thu, 06 Dec 2012 03:08:10 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1TgRol-0003Zv-PI for pgsql-performance@postgresql.org; Wed, 05 Dec 2012 19:08:07 -0800 Date: Wed, 5 Dec 2012 19:08:07 -0800 (PST) From: classical_89 To: pgsql-performance@postgresql.org Message-ID: <1354763287777-5735406.post@n5.nabble.com> Subject: Perform scan on Toast table MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.2 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Hi everyone ,I have a question. I have a table with large data (i was used bytea datatype and insert a binary content to table ) so that Postgres help me get a TOAST table to storage out-of-line values . Assume that my table is " tbl_test " and toast table oid is 16816 When i peform EXPLAIN ANALYZE select query on tbl_test ( EXPLAIN ANALYZE SELECT * FROM tbl_test).It show that sequential scan was performed on tbl_test ,but when i check pg_toast table with this query : SELECT relid, schemaname, relname, seq_scan, seq_tup_read, idx_scan, FROM pg_stat_all_tables WHERE relid IN ( SELECT oid FROM pg_class WHERE relkind = 't' ) AND relid = 16816 I saw that seq_tup_read = 0 and the seq_scan is always is 1 .idx_scan is increase arcording to the number of query on tbl_test I was wordering : Do have a sequential scan perform on tbl_test and other index scan will be peforming on TOAST after this sequential scan ? Can you explain this dump question to me ,please ? P/S : sorry for my bad English .Thanks ! :) -- View this message in context: http://postgresql.1045698.n5.nabble.com/Perform-scan-on-Toast-table-tp5735406.html Sent from the PostgreSQL - performance mailing list archive at Nabble.com. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance