I'm trying to import several modules that come bundled with 8.4.1 postgres, and all the commands to do so (such as contrib.import etc) do not work or cannot be found. Please help me.
相关问题
- How to reimport module with ES6 import
- Django distinct is not working
- PostgreSQL: left outer join syntax
- Connecting Python to a Heroku PostgreSQL DB?
- PostgreSQL - Deleting data that are older than an
相关文章
- postgresql 关于使用between and 中是字符串的问题
- postgresql 月份差计算问题
- Using boolean expression in order by clause
- Table valued Parameter Equivalent in Postgresql
- in redshift postgresql can I skip columns with the
- Oracle equivalent of PostgreSQL INSERT…RETURNING *
- PostgreSQL field data type for IPv4 addresses
- Using prepared statement in stored function
I have a database named 'book' for example,
psql -U postgres book create extension cube
Repeat for each extension required, then \q to logouy
To install PostgreSQL
contrib
modules on Ubuntu or Kubuntu (or similar Linux distributions):sudo apt-get install postgresql-contrib
sudo /etc/init.d/postgresql-8.4 restart
postgres
)./usr/share/postgresql/8.4/contrib/
Use
ls
to see a list of the following modules:Load the SQL files using:
psql -U user_name -d database_name -f module_name.sql
For example, if your administrative user was named
postgres
and your database was namedstorage
and the module you wanted wascube
, you would type:PostgreSQL 9.1:
After step #1 above, do:
sudo /etc/init.d/postgresql restart
cd /usr/share/postgresql/9.1/extension
(has extensions)psql
CREATE EXTENSION "uuid-ossp";