diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-07 15:07:59 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-07 15:07:59 +0000 |
commit | dde5c67ba041dc65588377808b1943fdd3b57bf6 (patch) | |
tree | 133c901b2517a88d36060da686dd95903e84d079 /INSTALL.pgsql.txt | |
parent | 626e64025eb85faf819b9d17298df505e9d0526a (diff) | |
download | drupal-dde5c67ba041dc65588377808b1943fdd3b57bf6.tar.gz drupal-dde5c67ba041dc65588377808b1943fdd3b57bf6.zip |
- 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.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/INSTALL.pgsql.txt b/INSTALL.pgsql.txt index f5f276e5816..a2aeaea597f 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. |