summaryrefslogtreecommitdiff
path: root/INSTALL.pgsql.txt
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-07 15:07:59 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-07 15:07:59 +0000
commitdde5c67ba041dc65588377808b1943fdd3b57bf6 (patch)
tree133c901b2517a88d36060da686dd95903e84d079 /INSTALL.pgsql.txt
parent626e64025eb85faf819b9d17298df505e9d0526a (diff)
downloadbrdo-dde5c67ba041dc65588377808b1943fdd3b57bf6.tar.gz
brdo-dde5c67ba041dc65588377808b1943fdd3b57bf6.tar.bz2
- Patch #302327 by Josh Waihi, noahb, Crell, hswong3i: support cross-schema/database prefixing like we claim to.
Diffstat (limited to 'INSTALL.pgsql.txt')
-rw-r--r--INSTALL.pgsql.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/INSTALL.pgsql.txt b/INSTALL.pgsql.txt
index f5f276e58..a2aeaea59 100644
--- a/INSTALL.pgsql.txt
+++ b/INSTALL.pgsql.txt
@@ -26,3 +26,19 @@ Note that the database must be created with UTF-8 (Unicode) encoding.
createdb --encoding=UTF8 --owner=username databasename
If there are no errors then the command was successful
+
+3. CREATE A SCHEMA OR SCHEMAS (Optional advanced)
+
+ Drupal will run across different schemas within your database if you so wish.
+ By default, Drupal runs inside the 'public' schema but you can use $db_prefix
+ inside settings.php to define a schema for Drupal to inside of or specify tables
+ that are shared inside of a separate schema. Drupal will not create schemas for
+ you, infact the user that Drupal runs as should not be allowed to. You'll need
+ execute the SQL below as a superuser (such as a postgres user) and replace
+ 'drupaluser' with the username that Drupal uses to connect to PostgreSQL with
+ and replace schema_name with a schema name you wish to use such as 'shared':
+
+ CREATE SCHEMA schema_name AUTHORIZATION drupaluser;
+
+ Do this for as many schemas as you need. See default.settings.php for how to
+ set which tables use which schemas.