diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-02 21:26:10 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-02 21:26:10 +0000 |
commit | db147b348345288c7b47f9527fc107a9bb063ad7 (patch) | |
tree | 949161223fb81a312fca83c9f9691b9b3cbbdb26 /src/include/optimizer/planmain.h | |
parent | cf9f6c8d8e9df28f3fbe1850ca7f042b2c01252e (diff) |
Allow the planner's estimate of the fraction of a cursor's rows that will be
retrieved to be controlled through a GUC variable.
Robert Hell
Diffstat (limited to 'src/include/optimizer/planmain.h')
-rw-r--r-- | src/include/optimizer/planmain.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/optimizer/planmain.h b/src/include/optimizer/planmain.h index 74ba5131cc6..0b46a173706 100644 --- a/src/include/optimizer/planmain.h +++ b/src/include/optimizer/planmain.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/optimizer/planmain.h,v 1.107 2008/04/17 21:22:14 tgl Exp $ + * $PostgreSQL: pgsql/src/include/optimizer/planmain.h,v 1.108 2008/05/02 21:26:10 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -17,6 +17,10 @@ #include "nodes/plannodes.h" #include "nodes/relation.h" +/* GUC parameters */ +#define DEFAULT_CURSOR_TUPLE_FRACTION 0.1 +extern double cursor_tuple_fraction; + /* * prototypes for plan/planmain.c */ |