Re: [ADMIN] Partition tables in AWS RDS environment
Вложения
В списке pgsql-admin по дате отправления:
| От | Stephen Frost |
|---|---|
| Тема | Re: [ADMIN] Partition tables in AWS RDS environment |
| Дата | |
| Msg-id | 20170410143118.GK9812@tamriel.snowman.net обсуждение исходный текст |
| Ответ на | Re: [ADMIN] Partition tables in AWS RDS environment ("Campbell, Lance" <lance@illinois.edu>) |
| Список | pgsql-admin |
Greetings Lance, * Campbell, Lance (lance@illinois.edu) wrote: > In 9.6 if you do a pg_dump on a schema and you have a few very large tables in the schema will this cause the databaseto lock the table for writing? In PG, readers do not block writers. > This is an issue I ran into with older version of PostgreSQL using pg_dump on entire schemas. To get around this issueI partitioned the really large tables so that the locking would be a much shorter time period while running pg_dump. But this may not be necessary with 9.6 I'm not sure what issue you ran into, but pg_dump would block someone from DROP'ing or TRUNACTE'ing a table (or other operations requiring a very strong lock), not from simply doing an INSERT, UPDATE, or DELETE (which take a lower lock that doesn't conflict with the locks pg_dump takes). Information about the various locks in PG is available here: https://www.postgresql.org/docs/current/static/explicit-locking.html Thanks! Stephen
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера