rows in explain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

 

I want to find out how PG gets rows when it explains a query.

For example, when I issue:

 

explain select count(*) from pg_class where relname='pg_class';

                          QUERY PLAN

--------------------------------------------------------------

 Aggregate  (cost=4.55..4.55 rows=1 width=0)

   ->  Seq Scan on pg_class  (cost=0.00..4.55 rows=1 width=0)

         Filter: (relname = 'pg_class'::name)

(3 rows)

 

Where and how PG get “rows=1”?

 

Thank you!


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux