Creating a PostgreSQL db
John Obaterspok
john.obaterspok at gmail.com
Wed Mar 9 19:44:45 UTC 2016
2016-03-09 19:59 GMT+01:00 Michael Cronenworth <mike at cchtml.com>:
> On 03/09/2016 12:18 PM, Suvayu Ali wrote:
>
>> I want to create a PostgreSQL db. So I did the following:
>>
>> $ su -
>> # su - postgres
>> $ pg_ctl initdb -D /var/lib/pgsql/data
>>
>
> For future reference there is a helper script that can do this stuff for
> you.
>
> # postgresql-setup --init-db
>
>
I would pass --data-checksums to initdb to checksum the data pages and
report eventual corruption.
-- john
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20160309/86f89f03/attachment.html>
More information about the users
mailing list