From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Martin Marques <martin(dot)marques(at)2ndquadrant(dot)com> |
Cc: | Edson Carlos Ericksson Richter <richter(at)simkorp(dot)com(dot)br>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Does PostgreSQL check database integrity at startup? |
Date: | 2017-12-26 14:25:47 |
Message-ID: | CAFj8pRD+FStVDHV19nsbRVSkdk_0bKX=guFW3BD68Z0t5igsVQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
2017-12-26 14:44 GMT+01:00 Martin Marques <martin(dot)marques(at)2ndquadrant(dot)com>:
> El 26/12/17 a las 09:52, Edson Carlos Ericksson Richter escribió:
> > Recently I had a problem with a base file with size 0 in a standby
> server.
> >
> > This raised one question: does PostgreSQL (9.6.6) check base integrity
> > at startup?
> >
> > At least if there are 0 byte size files in base dir? Or CRC? Something?
>
> Yes it has CRC check, but only if you initialize the cluster with
> --data-checksums, and there's a price to pay in performance.
>
>
It has CRC check, but it is used in runtime - when data are necessary
So Postgres usually check nothing on start - few system tables and indexes
Regards
Pavel
>
> --
> Martín Marqués http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Training & Services
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Edson Carlos Ericksson Richter | 2017-12-26 15:37:36 | Re: Does PostgreSQL check database integrity at startup? |
Previous Message | Martin Marques | 2017-12-26 13:44:40 | Re: Does PostgreSQL check database integrity at startup? |