Closed jimfulton closed 9 years ago
testing.postgresql
expects a directory that is generated by initdb
command:
$ initdb -D example -U postgres
$ ls example/
PG_VERSION global/ pg_hba.conf pg_multixact/ pg_subtrans/ pg_twophase/ postgresql.conf
base/ pg_clog/ pg_ident.conf pg_stat_tmp/ pg_tblspc/ pg_xlog/
$ python
>>> import testing.postgresql
>>> pg = testing.postgresql.Postgresql(copy_data_from='example')
>>> pg.stop()
Thanks.
should prolly go into the readme.
I tried referencing a tablespace directory containing a single database and that failed: