alter.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*-------------------------------------------------------------------------
  2. *
  3. * alter.h
  4. * prototypes for commands/alter.c
  5. *
  6. *
  7. * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
  8. * Portions Copyright (c) 1994, Regents of the University of California
  9. *
  10. * src/include/commands/alter.h
  11. *
  12. *-------------------------------------------------------------------------
  13. */
  14. #ifndef ALTER_H
  15. #define ALTER_H
  16. #include "catalog/dependency.h"
  17. #include "catalog/objectaddress.h"
  18. #include "nodes/parsenodes.h"
  19. #include "utils/relcache.h"
  20. extern ObjectAddress ExecRenameStmt(RenameStmt *stmt);
  21. extern ObjectAddress ExecAlterObjectDependsStmt(AlterObjectDependsStmt *stmt,
  22. ObjectAddress *refAddress);
  23. extern ObjectAddress ExecAlterObjectSchemaStmt(AlterObjectSchemaStmt *stmt,
  24. ObjectAddress *oldSchemaAddr);
  25. extern Oid AlterObjectNamespace_oid(Oid classId, Oid objid, Oid nspOid,
  26. ObjectAddresses *objsMoved);
  27. extern ObjectAddress ExecAlterOwnerStmt(AlterOwnerStmt *stmt);
  28. extern void AlterObjectOwner_internal(Relation catalog, Oid objectId,
  29. Oid new_ownerId);
  30. #endif /* ALTER_H */