You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 15, 2023. It is now read-only.
This method must return a tuple of the form (expected_number_of_row, expected_mean_width_of_a_row (in bytes)).
50
+
The quals and columns arguments can be used to compute those estimates.
51
+
For example, the imapfdw computes a huge width whenever the payload column is requested.
52
+
"""
53
+
log_to_postgres('get_rel_size is called', DEBUG)
54
+
# TODO: take the min of the columns stat based on the quals ?
55
+
return (self.table_stat, len(columns)*100)
42
56
57
+
defget_path_keys(self):
58
+
"""
59
+
This method must return a list of tuple of the form (column_name, expected_number_of_row).
60
+
The expected_number_of_row must be computed as if a where column_name = some_value filter were applied.
61
+
This helps the planner to estimate parameterized paths cost, and change the plan accordingly.
62
+
For example, informing the planner that a filter on a column may return exactly one row, instead of the full billion, may help it on deciding to use a nested-loop instead of a full sequential scan.
This method must return a list of tuple of the form (column_name, expected_number_of_row).
200
-
The expected_number_of_row must be computed as if a where column_name = some_value filter were applied.
201
-
This helps the planner to estimate parameterized paths cost, and change the plan accordingly.
202
-
For example, informing the planner that a filter on a column may return exactly one row, instead of the full billion, may help it on deciding to use a nested-loop instead of a full sequential scan.
0 commit comments