Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!

Why is PostgreSQL eating up all my precious HD space

By: a guest on Feb 27th, 2012  |  syntax: None  |  size: 0.19 KB  |  views: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. SELECT pl_namespace, COUNT(*) FROM pagelinks GROUP BY (pl_namespace);
  3. SELECT pl_namespace, COUNT(*)
  4. FROM pagelinks
  5. WHERE pl_namespace between 1 and 50000000
  6. GROUP BY (pl_namespace);
clone this paste RAW Paste Data