-
Sponsored Links
-
Recent Posts
- How to add ICMP Echo Request to AWS Security Group from the CLI
- How to fix STOP: 0x0000007B blue screen when moving virtualbox machine to another computer
- pip is broken with AttributeError: ‘module’ object has no attribute ‘SSL_ST_INIT’
- Generate a certificate request but keep your old key with openssl
- OSError: [Errno 1] Operation not permitted: Extras/lib/python/six-1.4.1-py2.7.egg-info’
Categories
- AWS (1)
- cli (1)
- CSS (1)
- django (4)
- DNS (1)
- DRBD (1)
- Exchange (1)
- FAX (1)
- FTP (1)
- git (2)
- Glusterfs (1)
- IIS (1)
- Kemp (1)
- Linux (38)
- lxc (3)
- Mac OS X (11)
- Malware (2)
- Microsoft (7)
- Multipoint Server 2012 (1)
- mysql (3)
- nagios (2)
- nginx (3)
- Office 365 (1)
- PHP (1)
- postgres (9)
- python (9)
- QNAP (1)
- raspberry pi (1)
- Samba (2)
- Security (1)
- SSL (10)
- Tomcat (1)
- Ubuntu (2)
- Uncategorized (4)
- Virtualbox (1)
- vmware (2)
- Web Programming (2)
- windows (12)
Archives
- September 2018 (3)
- August 2018 (1)
- October 2017 (1)
- November 2016 (1)
- October 2016 (2)
- September 2016 (1)
- May 2016 (1)
- December 2015 (1)
- November 2015 (1)
- October 2015 (2)
- September 2015 (1)
- August 2015 (2)
- July 2015 (1)
- June 2015 (1)
- March 2015 (3)
- January 2015 (3)
- November 2014 (1)
- October 2014 (1)
- September 2014 (1)
- August 2014 (2)
- April 2014 (1)
- February 2014 (3)
- January 2014 (1)
- November 2013 (3)
- October 2013 (3)
- September 2013 (1)
- August 2013 (3)
- July 2013 (1)
- June 2013 (1)
- May 2013 (1)
- April 2013 (3)
- March 2013 (5)
- February 2013 (3)
- January 2013 (1)
- December 2012 (5)
- November 2012 (3)
- October 2012 (1)
- September 2012 (1)
- August 2012 (2)
- July 2012 (4)
- April 2012 (1)
- March 2012 (2)
- February 2012 (1)
- January 2012 (4)
- December 2011 (1)
Category Archives: postgres
How to restore a postgres database with a different owner
To restore a database and have the tables owned by a different user use the pg_dump command like this: as root user run: su postgres pg_dump -Fc database_name > database_name.dump exit Now you can restore using pg_restore. createuser -P -s … Continue reading
Posted in postgres
Comments Off on How to restore a postgres database with a different owner
Error: pg_config executable not found.
This bogus error can be frustrating to figure out. I have figured it out a few times over the years and always forget how I solved it because it only occurs on a server where you have never deployed a … Continue reading
Use UTF-8 as the default encoding for postgres databases
To avoid problems with encoding if you forget to change from the default SQL_ASCII when you create a database, I find it is best to set the default to UTF-8 whenever I set up a new server. One less thing … Continue reading
Posted in postgres
Comments Off on Use UTF-8 as the default encoding for postgres databases
Best Practices for shared postgres hosting
This is what you are looking for: http://wiki.postgresql.org/wiki/Shared_Database_Hosting