func StartPersistent(folder string) (*PG, error) {
	return start(New().DataDir(folder).Persistent())
}
Starts a new PostgreSQL database

Will listen on a unix socket and initialize the database in the given
folder, if needed. Data isn't removed when calling Stop(), so this database
can be used multiple times. Allows using PostgreSQL as an embedded databases
(such as SQLite). Not for production usage!
package pgtest
import (
	"database/sql"
	"fmt"
	"io"
	"io/ioutil"
	"os"
	"os/exec"
	"os/user"
	"path"
	"path/filepath"
	"strconv"
	"strings"
	"time"
	_ "github.com/lib/pq"
)
type PG struct {
	dir string
	cmd *exec.Cmd
	DB  *sql.DB
	persistent bool
	stderr io.ReadCloser
	stdout io.ReadCloser
}
func Start() (*PG, error) {
	return start(New())
}