postgresql/src/backend/commands
Tom Lane d4aa491493 Make CREATE EXTENSION check schema creation permissions.
When creating a new schema for a non-relocatable extension, we neglected
to check whether the calling user has permission to create schemas.
That didn't matter in the original coding, since we had already checked
superuserness, but in the new dispensation where users need not be
superusers, we should check it.  Use CreateSchemaCommand() rather than
calling NamespaceCreate() directly, so that we also enforce the rules
about reserved schema names.

Per complaint from KaiGai Kohei, though this isn't the same as his patch.
2011-08-23 21:49:07 -04:00
..
Makefile DDL support for collations 2011-02-12 15:55:18 +02:00
aggregatecmds.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
alter.c Try to acquire relation locks in RangeVarGetRelid. 2011-07-08 22:19:30 -04:00
analyze.c Fix thinko in previous patch to always update pg_class.reltuples/relpages. 2011-06-19 14:00:48 -04:00
async.c Preserve caller's memory context in ProcessCompletedNotifies(). 2011-05-27 12:10:32 -04:00
cluster.c Preserve toast value OIDs in toast-swap-by-content for CLUSTER/VACUUM FULL. 2011-08-16 13:48:04 -04:00
collationcmds.c Remove rel.h from objectaddress.h; only relcache.h is necessary. 2011-06-28 17:08:29 -04:00
comment.c Remove rel.h from objectaddress.h; only relcache.h is necessary. 2011-06-28 17:08:29 -04:00
constraint.c Move Trigger and TriggerDesc structs out of rel.h into a new reltrigger.h 2011-07-04 14:35:58 -04:00
conversioncmds.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
copy.c Move Trigger and TriggerDesc structs out of rel.h into a new reltrigger.h 2011-07-04 14:35:58 -04:00
dbcommands.c Support SECURITY LABEL on databases, tablespaces, and roles. 2011-07-20 13:18:24 -04:00
define.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
discard.c Refactor the executor's API to support data-modifying CTEs better. 2011-02-27 13:44:12 -05:00
explain.c Move Trigger and TriggerDesc structs out of rel.h into a new reltrigger.h 2011-07-04 14:35:58 -04:00
extension.c Make CREATE EXTENSION check schema creation permissions. 2011-08-23 21:49:07 -04:00
foreigncmds.c Fix unsafe order of operations in foreign-table DDL commands. 2011-08-14 15:40:21 -04:00
functioncmds.c Rethink behavior of CREATE OR REPLACE during CREATE EXTENSION. 2011-07-23 16:59:39 -04:00
indexcmds.c Create VXID locks "lazily" in the main lock table. 2011-08-04 12:38:33 -04:00
lockcmds.c Try to acquire relation locks in RangeVarGetRelid. 2011-07-08 22:19:30 -04:00
opclasscmds.c Rethink behavior of CREATE OR REPLACE during CREATE EXTENSION. 2011-07-23 16:59:39 -04:00
operatorcmds.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
portalcmds.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
prepare.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
proclang.c Rethink behavior of CREATE OR REPLACE during CREATE EXTENSION. 2011-07-23 16:59:39 -04:00
schemacmds.c Move Trigger and TriggerDesc structs out of rel.h into a new reltrigger.h 2011-07-04 14:35:58 -04:00
seclabel.c Support SECURITY LABEL on databases, tablespaces, and roles. 2011-07-20 13:18:24 -04:00
sequence.c Try to acquire relation locks in RangeVarGetRelid. 2011-07-08 22:19:30 -04:00
tablecmds.c Allow per-column foreign data wrapper options. 2011-08-05 13:24:03 -04:00
tablespace.c Support SECURITY LABEL on databases, tablespaces, and roles. 2011-07-20 13:18:24 -04:00
trigger.c Fix trigger WHEN conditions when both BEFORE and AFTER triggers exist. 2011-08-21 18:15:55 -04:00
tsearchcmds.c Rethink behavior of CREATE OR REPLACE during CREATE EXTENSION. 2011-07-23 16:59:39 -04:00
typecmds.c Move Trigger and TriggerDesc structs out of rel.h into a new reltrigger.h 2011-07-04 14:35:58 -04:00
user.c Support SECURITY LABEL on databases, tablespaces, and roles. 2011-07-20 13:18:24 -04:00
vacuum.c Try to acquire relation locks in RangeVarGetRelid. 2011-07-08 22:19:30 -04:00
vacuumlazy.c Make lazy_vacuum_rel call pg_rusage_init only if needed. 2011-08-18 09:55:04 -04:00
variable.c Pgindent run before 9.1 beta2. 2011-06-09 14:32:50 -04:00
view.c Fix bugs in relpersistence handling during table creation. 2011-07-03 17:34:47 -04:00