#include "utils/timestamp.h"
#include "utils/date.h"
-/* Forbid unsafe SQL statements */
-bool StrictStatementChecking = true;
static bool contains_temp_tables(List *rtable);
static PlannedStmt *pgxc_FQS_planner(Query *query, ParamListInfo boundParams);
#include "parser/parsetree.h"
#include "pgxc/xc_maintenance_mode.h"
-/* Enforce the use of two-phase commit when temporary objects are used */
-bool EnforceTwoPhaseCommit = true;
/*
* We do not want it too long, when query is terminating abnormally we just
* want to read in already available data, if datanode connection will reach a
false,
check_persistent_connections, NULL, NULL
},
- {
- {"strict_statement_checking", PGC_USERSET, DEVELOPER_OPTIONS,
- gettext_noop("Forbid statements that are not safe for the cluster"),
- NULL
- },
- &StrictStatementChecking,
- true,
- NULL, NULL, NULL
- },
- {
- {"enforce_two_phase_commit", PGC_SUSET, XC_HOUSEKEEPING_OPTIONS,
- gettext_noop("Enforce the use of two-phase commit on transactions that"
- "made use of temporary objects"),
- NULL
- },
- &EnforceTwoPhaseCommit,
- true,
- NULL, NULL, NULL
- },
{
{"xc_maintenance_mode", PGC_SUSET, XC_HOUSEKEEPING_OPTIONS,
gettext_noop("Turn on XC maintenance mode."),
#gtm_backup_barrier = off # Specify to backup gtm restart point for each barrier.
-##------------------------------------------------------------------------------
-# OTHER PG-XC OPTIONS
-#------------------------------------------------------------------------------
-#strict_statement_checking = on # Forbid PG-XC-unsafe SQL
- # Enabling is useful for development
-#enforce_two_phase_commit = on # Enforce the usage of two-phase commit on transactions
- # where temporary objects are used or ON COMMIT actions
- # are pending.
- # Usage of commit instead of two-phase commit may break
- # data consistency so use at your own risk.
#------------------------------------------------------------------------------
# CONFIG FILE INCLUDES
#include "tcop/pquery.h"
#include "utils/snapshot.h"
-/* GUC parameters */
-extern bool EnforceTwoPhaseCommit;
-
/* Outputs of handle_response() */
#define RESPONSE_EOF EOF
#define RESPONSE_COMPLETE 0
SS_UPDATES_DISTRIBUTION_COLUMN /* query updates distribution column */
} ShippabilityStat;
-/* forbid SQL if unsafe, useful to turn off for development */
-extern bool StrictStatementChecking;
-
extern bool pgxc_shippability_walker(Node *node, Shippability_context *sc_context);
extern bool pgxc_test_shippability_reason(Shippability_context *context,
ShippabilityStat reason);