western willow ventures inc.

eye on the net
  • Home
  • Contact
  • Web
  • Graphics
  • ARDi
  • Samples
  • Terms of Service
  • Fun
  • Privacy

Search

Home

PostGreSQL

Reclaim some disk space by managing your postgresql database

Thu, 2012-05-03 09:22 |  Franco

I got an alarm that one of my virtual machines was low on space and after a quick analysis the file system was showing that the PostgreSQL folder was the culprit, so I realized its was time to shrink the drupal DB down a bit.

first I did

sudo su postgres

next I ran psql on the database that was very large

psql drupal7

Next I did a full vaccum

vacuum full verbose; 

then I did a full reindex

reindex database drupal7;

Things are running much smoother.

Franco's blog |  Login to post comments |  20 reads |  Tags: Database Maintenance, diskspace, PostGreSQL

How do I know what version of PostGreSQL I am running?

Mon, 2010-11-29 10:32 |  Franco

Run this simple query on any database in the server:

SELECT version();

you should see a result something like:

"PostgreSQL 8.3.9 on i486-pc-linux-gnu, compiled by GCC gcc-4.3.real (Ubuntu 4.3.2-1ubuntu11) 4.3.2"

The next question will logically be, how do I determine the version of PostGIS running on PostGreSQL?

query any DB with this code:

select postgis_full_version();

will give a result like:

"POSTGIS="1.5.1" GEOS="3.2.2-CAPI-1.6.2" PROJ="Rel. 4.6.1, 21 August 2008" LIBXML="2.7.5" USE_STATS"

Franco's blog |  Login to post comments |  626 reads |  Tags: PostGIS, PostGreSQL, version

Popular content

Today's:

  • Contact
  • Raven Lovers
  • How to determine how many processoers your Linux Box has and How fast.

All time:

  • Contact
  • Web
  • ARDi - Aerial Research Drone One

Last viewed:

  • Alexandra Falls, NWT
  • Modern Interpretive Dance - Yawasoe ShuriOshinpa
  • Raven Lovers

Navigation

  • Login
  • Album photos
  • Contact form
  • Feed aggregator
© 2010 Western Willow Ventures Inc.

Designed by Heidi Selzler.