aboutsummaryrefslogtreecommitdiff
path: root/src/include/nodes/nodes.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-09-15 18:56:13 +0200
committerPeter Eisentraut <peter@eisentraut.org>2021-09-15 18:56:13 +0200
commit6fe0eb963d3894ae9b0b6e151083887b664d45a3 (patch)
treeff5b9f5144c7a0b702b6552a46fbe2e442103c65 /src/include/nodes/nodes.h
parent1316be28664f1834ac091113217537101331bdf3 (diff)
downloadpostgresql-6fe0eb963d3894ae9b0b6e151083887b664d45a3.tar.gz
postgresql-6fe0eb963d3894ae9b0b6e151083887b664d45a3.zip
Add Cardinality typedef
Similar to Cost and Selectivity, this is just a double, which can be used in path and plan nodes to give some hint about the meaning of a field. Discussion: https://www.postgresql.org/message-id/c091e5cd-45f8-69ee-6a9b-de86912cc7e7@enterprisedb.com
Diffstat (limited to 'src/include/nodes/nodes.h')
-rw-r--r--src/include/nodes/nodes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h
index b3ee4194d39..e0057daa061 100644
--- a/src/include/nodes/nodes.h
+++ b/src/include/nodes/nodes.h
@@ -668,6 +668,7 @@ extern bool equal(const void *a, const void *b);
*/
typedef double Selectivity; /* fraction of tuples a qualifier will pass */
typedef double Cost; /* execution cost (in page-access units) */
+typedef double Cardinality; /* (estimated) number of rows or other integer count */
/*