gooderp18绿色标准版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2KB

  1. /*-------------------------------------------------------------------------
  2. *
  3. * rewriteHandler.h
  4. * External interface to query rewriter.
  5. *
  6. *
  7. * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
  8. * Portions Copyright (c) 1994, Regents of the University of California
  9. *
  10. * src/include/rewrite/rewriteHandler.h
  11. *
  12. *-------------------------------------------------------------------------
  13. */
  14. #ifndef REWRITEHANDLER_H
  15. #define REWRITEHANDLER_H
  16. #include "utils/relcache.h"
  17. #include "nodes/parsenodes.h"
  18. extern List *QueryRewrite(Query *parsetree);
  19. extern void AcquireRewriteLocks(Query *parsetree,
  20. bool forExecute,
  21. bool forUpdatePushedDown);
  22. extern Node *build_column_default(Relation rel, int attrno);
  23. extern void rewriteTargetListUD(Query *parsetree, RangeTblEntry *target_rte,
  24. Relation target_relation);
  25. extern Query *get_view_query(Relation view);
  26. extern const char *view_query_is_auto_updatable(Query *viewquery,
  27. bool check_cols);
  28. extern int relation_is_updatable(Oid reloid,
  29. List *outer_reloids,
  30. bool include_triggers,
  31. Bitmapset *include_cols);
  32. #endif /* REWRITEHANDLER_H */
上海开阖软件有限公司 沪ICP备12045867号-1