Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMb8S-0005M8-EC for pgsql-general@arkaria.postgresql.org; Wed, 06 Dec 2017 14:57:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMb8R-0000C0-QX for pgsql-general@arkaria.postgresql.org; Wed, 06 Dec 2017 14:57:19 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eMb8R-0000Bq-Fq for pgsql-general@lists.postgresql.org; Wed, 06 Dec 2017 14:57:19 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eMb8O-0000CF-IW for pgsql-general@lists.postgresql.org; Wed, 06 Dec 2017 14:57:18 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 4D27B5F795; Wed, 6 Dec 2017 09:57:15 -0500 (EST) Date: Wed, 6 Dec 2017 09:57:15 -0500 From: Stephen Frost To: John R Pierce Cc: pgsql-general@lists.postgresql.org Subject: Re: a back up question Message-ID: <20171206145715.GA4628@tamriel.snowman.net> References: <001039C7-15DF-4A44-B0B9-3E100C9D68D3@northwestern.edu> <6E6ED72C-BCC2-4F67-AEAC-C501DF2CAC58@northwestern.edu> <3ffd93e7-32e9-928e-18be-f4039e77d8c3@hogranch.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KCbG14QRHy9uDIS2" Content-Disposition: inline In-Reply-To: <3ffd93e7-32e9-928e-18be-f4039e77d8c3@hogranch.com> User-Agent: Mutt/1.5.21 (2010-09-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --KCbG14QRHy9uDIS2 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable John, all, * John R Pierce (pierce@hogranch.com) wrote: > On 12/5/2017 2:09 PM, Martin Mueller wrote: > >Time is not really a problem for me, if we talk about hours rather > >than days.=C2=A0 On a roughly comparable machine I=E2=80=99ve made backu= ps of > >databases less than 10 GB, and it was a matter of minutes.=C2=A0 But I > >know that there are scale problems. Sometimes programs just hang > >if the data are beyond some size.=C2=A0 Is that likely in Postgres if > >you go from ~ 10 GB to ~100 GB?=C2=A0 There isn=E2=80=99t any interdepen= dence > >among my tables beyond=C2=A0 queries I construct on the fly, because I > >use the database in a single user environment >=20 > another factor is restore time.=C2=A0=C2=A0=C2=A0 restores have to create > indexes.=C2=A0=C2=A0 creating indexes on multi-million-row tables can take > awhile.=C2=A0 (hint, be sure to set maintenance_work_mem to 1GB before > doing this!) I'm sure you're aware of this John, but for others following along, just to be clear: indexes have to be recreated when restoring from a *logical* (eg: pg_dump based) backups. Indexes don't have to be recreated for *physical* (eg: file-based) backups. Neither pg_dump nor the various physical-backup utilities should hang or have issues with larger data sets. Thanks! Stephen --KCbG14QRHy9uDIS2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJaKAVKAAoJEO1sijiDR2RVubQQAJKP144Pi4NEidfV9/fpqjft 4POjqsxVhX6SlGNdd6mYX1xdT8MqHogUZvHLskiVLpoe9MFJmauUe+nojn4XBOjZ WR3UTRvCppaAwTPA9dku699GH+mzDFrG+y9iDijxu3P/kIsosQ/sfSHrRyv2m4MY X8Fg2ZtzlEjJ9S59iy/7F6wlmVx5vh54ZbZTFExOh8YVBNc59RiTephH/kPGEkV6 KunJn+yORxH4i3L522RXz9gqXMq1o/RdjSmns/0KvBNOv6AvKtKwzVkynInfnYsI OmRNH5FElCjszMD8PSiMePsxIiUYpmBcIKrFvCLpRUerOeSJztGU/UapnFrU3ucR r9NLs2wOaOB27yEO97pO4PZreWciYiehqtKAmgg50w3mIOhmWjEU0HclQK/22NLO pbPRVgBJl6SEqyIudvpYtB4UiwUFbQbWqdhkRR7EUKUSD33t8dqwP8bDiz6b9kWO jHhn9rLbZDOaeyhuKrHOa5aGu5dhnJ/WRJ323aLjO1YiDFwjXoJBGJuIoj5Ql2iO AGTXPPnyIrVakcbR7l6duGlKaS7kNFQSb1JOSvbzM1hc2USsmkLLdZXdy0uQ1sOR TdB7+SxvhA0GELFwVG0Xbiw79EsOXPrdjGJ784Tnkx4tARuISOulI//QPrYbfOdJ xeLmxooEv+FQ5zfB4rpT =/eBw -----END PGP SIGNATURE----- --KCbG14QRHy9uDIS2--