summaryrefslogtreecommitdiff
path: root/src/include/optimizer/pathnode.h
diff options
context:
space:
mode:
authorEtsuro Fujita <efujita@postgresql.org>2019-04-02 19:55:12 +0900
committerEtsuro Fujita <efujita@postgresql.org>2019-04-02 19:55:12 +0900
commitaef65db6769e3f2c855dd89edcf95a536a9ab74f (patch)
treeba2a11b20db8370a14e499d6d9aeef58ae7be24e /src/include/optimizer/pathnode.h
parent0269edefacb78700c95572c41a5a4c8633b631b6 (diff)
Refactor create_limit_path() to share cost adjustment code with FDWs.
This is in preparation for an upcoming commit. Author: Etsuro Fujita Reviewed-By: Antonin Houska and Jeff Janes Discussion: https://postgr.es/m/87pnz1aby9.fsf@news-spur.riddles.org.uk
Diffstat (limited to 'src/include/optimizer/pathnode.h')
-rw-r--r--src/include/optimizer/pathnode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/optimizer/pathnode.h b/src/include/optimizer/pathnode.h
index 3a803b3fd00..5b577c12eca 100644
--- a/src/include/optimizer/pathnode.h
+++ b/src/include/optimizer/pathnode.h
@@ -265,6 +265,9 @@ extern LimitPath *create_limit_path(PlannerInfo *root, RelOptInfo *rel,
Path *subpath,
Node *limitOffset, Node *limitCount,
int64 offset_est, int64 count_est);
+extern void adjust_limit_rows_costs(double *rows,
+ Cost *startup_cost, Cost *total_cost,
+ int64 offset_est, int64 count_est);
extern Path *reparameterize_path(PlannerInfo *root, Path *path,
Relids required_outer,