~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/pgrestore.py

  • Committer: William Grant
  • Date: 2012-01-01 03:10:25 UTC
  • mto: This revision was merged to the branch mainline in revision 14614.
  • Revision ID: william.grant@canonical.com-20120101031025-pcl0na3sbgfrztcw
utilities

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
when we are running PostgreSQL 8 as it will correctly order its dumps.
9
9
"""
10
10
 
11
 
import sys, os, tempfile
12
11
from optparse import OptionParser
13
 
from subprocess import Popen, PIPE
 
12
import os
14
13
from signal import SIGTERM
 
14
from subprocess import (
 
15
    PIPE,
 
16
    Popen,
 
17
    )
 
18
import sys
 
19
import tempfile
 
20
 
15
21
 
16
22
class DumpFile(object):
17
23
    """File-like object wrapping a normal or compressed file on disk"""