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.

29 lines
1.0KB

  1. /*-------------------------------------------------------------------------
  2. *
  3. * Interfaces in support of FE/BE connections.
  4. *
  5. *
  6. * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
  7. * Portions Copyright (c) 1994, Regents of the University of California
  8. *
  9. * src/include/fe_utils/connect.h
  10. *
  11. *-------------------------------------------------------------------------
  12. */
  13. #ifndef CONNECT_H
  14. #define CONNECT_H
  15. /*
  16. * This SQL statement installs an always-secure search path, so malicious
  17. * users can't take control. CREATE of an unqualified name will fail, because
  18. * this selects no creation schema. This does not demote pg_temp, so it is
  19. * suitable where we control the entire FE/BE connection but not suitable in
  20. * SECURITY DEFINER functions. This is portable to PostgreSQL 7.3, which
  21. * introduced schemas. When connected to an older version from code that
  22. * might work with the old server, skip this.
  23. */
  24. #define ALWAYS_SECURE_SEARCH_PATH_SQL \
  25. "SELECT pg_catalog.set_config('search_path', '', false);"
  26. #endif /* CONNECT_H */
上海开阖软件有限公司 沪ICP备12045867号-1