David Grelaud <dgrelaud@xxxxxxxxxxx> writes: > Statistics are not propagated when Common Table Expressions (CTE) are used. > The cardinality of a CTE is equal to 1 most of the time Really? The rest of this seems to be proceeding from completely false assumptions. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general