Update of /cvsroot/monetdb/pathfinder/compiler/include
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3499/include
Modified Files:
sql_mnemonic.h sql.h
Log Message:
-- Added support for DB2s SELECTIVITY hint
(to systematically toy around with this handle).
-- Added support for a unique column identifier
(as anticipation for changes in the last select list).
Index: sql.h
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/include/sql.h,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- sql.h 4 Oct 2007 10:40:52 -0000 1.36
+++ sql.h 26 Nov 2007 09:12:31 -0000 1.37
@@ -51,6 +51,7 @@
, sql_col_pos
, sql_col_guide
, sql_col_max
+ , sql_col_dist
};
typedef enum PFsql_special_t PFsql_special_t;
@@ -197,6 +198,7 @@
, sql_when /* WHEN .. THEN .. clause */
, sql_else /* ELSE .. clause */
, sql_values /* Table Functions */
+ , sql_db2_selectivity /* DB2 selectivity hint */
};
/* SQL operator kinds. */
typedef enum PFsql_kind_t PFsql_kind_t;
@@ -875,6 +877,10 @@
*/
PFsql_t * PFsql_else (PFsql_t *expr);
/**
+ * Create a DB2 selectivity hint.
+ */
+PFsql_t * PFsql_selectivity (PFsql_t *pred, PFsql_t *sel);
+/**
* Duplicate a given SQL tree.
*/
PFsql_t * PFsql_op_duplicate (PFsql_t *expr);
Index: sql_mnemonic.h
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/include/sql_mnemonic.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- sql_mnemonic.h 4 Oct 2007 10:40:52 -0000 1.28
+++ sql_mnemonic.h 26 Nov 2007 09:12:31 -0000 1.29
@@ -142,6 +142,7 @@
#define case_(...) PFsql_case(__VA_ARGS__)
#define when(be,e) PFsql_when(be,e)
#define else_(e) PFsql_else(e)
+#define selectivity(pred,sel) PFsql_selectivity(pred,sel)
#define duplicate(e) PFsql_op_duplicate(e)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins