際際滷

際際滷Share a Scribd company logo
25.06.2017 BGPUG Conf 2017
www.bgpug.org
VACUUM & pglogical
亳于从仂 仆亞亠仍仂于
jivko@siteground.com
25.06.2017 BGPUG Conf 2017
www.bgpug.org
VACUUM

舒仂 亳仄舒仄亠 仆亢亟舒 仂 VACUUM ?
25.06.2017 BGPUG Conf 2017
www.bgpug.org
VACUUM

Dead rows (tuples)
 丐舒弍仍亳亳  仗仂于亠亠 UPDATE/DELETE 亰舒磦从亳
 Bloating
 仂-弍舒于亠仆 sequential scan
 仂-弍舒于亠仆 index scan
25.06.2017 BGPUG Conf 2017
www.bgpug.org
VACUUM

舒从于仂 亠 VACUUM ?
仂亳于舒 dead rows 从舒仂 亞亳 仄舒从亳舒 从舒仂
于仂弍仂亟仆亳
25.06.2017 BGPUG Conf 2017
www.bgpug.org
VACUUM

亰仗仍仆亠仆亳亠 仆舒 VACUUM
 VACUUM
 VACUUM ANALYZE
 VACUUM FULL
 VACUUM FREEZE
 VACUUM VERBOSE
25.06.2017 BGPUG Conf 2017
www.bgpug.org
VACUUM

VACUUM
 舒从亳舒 dead rows 从舒仂 于仂弍仂亟仆亳
 No exclusive lock
 亠 仂于仂弍仂亢亟舒于舒 仄仂
 亰仂 亠
25.06.2017 BGPUG Conf 2017
www.bgpug.org
VACUUM

VACUUM FULL
 丐仂舒仍仆仂 仗亠仆舒仗亳于舒 舒弍仍亳舒舒
 亠仄舒于舒 dead rows
 亰亳从于舒 亟仂仗仍仆亳亠仍仆仂 仄仂
 于仂弍仂亢亟舒于舒 仄仂
 Exclusive lock
 舒于仆仂 亠, 仗亳亳仆磦舒 down
 pg_repack
25.06.2017 BGPUG Conf 2017
www.bgpug.org
VACUUM

VACUUM ANALYZE
 亰仗仍仆磦舒 VACUUM
 仂亟仆仂于磦舒 舒亳亳从亳亠, 从仂亳仂 亠 亳亰仗仂仍亰于舒 仂
query planner
 弌仍亠亟 亟舒亳亠仆 UPDATE
25.06.2017 BGPUG Conf 2017
www.bgpug.org
VACUUM

VACUUM FREEZE
 亠亟仂于舒磦舒 仗仂弍仍亠仄亳 仗亳 仗亠于舒仆亠仂 仆舒
transaction ID (XID)  2,1b
 autovacuum_freeze_max_age. Default 200m,
仂弍舒 仗舒从亳从舒 50% (1b)
 亠仆亠亳舒 I/O
25.06.2017 BGPUG Conf 2017
www.bgpug.org
VACUUM

舒 仂弍仆亠仄 于仆亳仄舒仆亳亠
 VACUUM 于亟亳亞舒 仂仗亠舒亳亳亠 从仄 亟亳从舒
 DELETE FROM vs. TRUNCATE
 SELECT * from pg_stat_all_tables WHERE
relname='scans';

n_tup_upd, n_tup_ins

last_vacuum

seq_scan, idx_scan
25.06.2017 BGPUG Conf 2017
www.bgpug.org
VACUUM

AUTOVACUUM
 autovacuum daemon 仗仂于亠磦舒 于磻舒 舒弍仍亳舒 亳
VACUUM
 VACUUM ANALYZE, VACUUM FREEZE
 亳亢亳 亠 亰舒 亟亳从仂于仂仂 仗仂舒仆于仂
 autovacuum works natively - 仆亠 亠 亟仂弍舒 亳亟亠 亟舒
亠 仗亳舒.
 亠仆亠亳舒 I/O  于亳 舒弍仂舒. CPU strace
25.06.2017 BGPUG Conf 2017
www.bgpug.org
VACUUM

AUTOVACUUM
 explicit locking 仗亳舒 autovacuum
 丕于亠仍亳亠亠 弍仂 仆舒 workers 仗亳 仗仂于亠亠 舒弍仍亳亳
 舒仄舒仍亠亠 autovacuume_naptim亠
 pg_stat_progress_vacuum (pg 9.6)
 pg_terminate_backend, never kill
25.06.2017 BGPUG Conf 2017
www.bgpug.org
VACUUM

舒从亳亠从亳 仗亳仄亠
25.06.2017 BGPUG Conf 2017
www.bgpug.org
VACUUM
仗仂亳 ?
25.06.2017 BGPUG Conf 2017
www.bgpug.org
pglogical

舒从于仂 亠 仂于舒 ?
 仂亞亳亠从舒 亠仗仍亳从舒亳 (row level), developed by
2ndQuadrant
 Master->slave (亠亟仆仂仗仂仂仆舒)
 舒仗仍仆仂 亰舒仄亠于舒 trigger based 亠仗仍亳从舒亳亳亠
(slony)
 Native 仍亠亟 psql 10
25.06.2017 BGPUG Conf 2017
www.bgpug.org
pglogical

仂仆亳亞舒亳
wal_level = 'logical'
max_worker_processes = 10 # one per database needed on provider node
# one per node needed on subscriber node
max_replication_slots = 10 # one per node needed on provider node
max_wal_senders = 10 # one per node needed on provider node
shared_preload_libraries = 'pglogical'
25.06.2017 BGPUG Conf 2017
www.bgpug.org
pglogical

丐亠仄亳仆仂仍仂亞亳
 Node  psql instances
 Provider  master 仂仍
 Subscriber  slave 仂仍
 Replication set  仆舒弍仂 仂 舒弍仍亳亳
25.06.2017 BGPUG Conf 2017
www.bgpug.org
pglogical

Provider
CREATE EXTENSION pglogical;
SELECT pglogical.create_node(
node_name := 'nachalnik1',
dsn := 'host=pgconf1 port=5432 dbname=test'
);
SELECT pglogical.replication_set_add_all_tables('default', ARRAY['public']);
25.06.2017 BGPUG Conf 2017
www.bgpug.org
pglogical

Subscriber
CREATE EXTENSION pglogical;
SELECT pglogical.create_node(
node_name := 'subscriber1',
dsn := 'host=thishost port=5432 dbname=db'
);
SELECT pglogical.create_subscription(
subscription_name := 'abonament1',
provider_dsn := 'host=pgconf1 port=5432 dbname=test'
);
25.06.2017 BGPUG Conf 2017
www.bgpug.org
pglogical

仆亠亠仆亳 于亰仄仂亢仆仂亳
 pglogical.create_subscription(synchronize_structure := true)
 pglogical.alter_subscription_resynchronize_table()
 pglogical.replicate_ddl_command()
 apply_delay 仆舒 舒弍仂仆舒仄亠仆舒
 row_filter (仂 2.0):

On provider - row_filter := 'id > 0'
25.06.2017 BGPUG Conf 2017
www.bgpug.org
pglogical

仂仆仍亳从亳:
 亟亳仆 舒弍仂仆舒 仄仂亢亠 亟舒 亠 于亢亠 从仄 仆磻仂仍从仂
亟仂舒于亳从舒
 弍仂仆舒亳亠 仄仂亞舒 亟舒 仗亳舒 仗仂 舒弍仍亳舒舒
 pglogical.conflict_resolution

error

apply_remote

keep_local

last_update_wins

first_update_wins
25.06.2017 BGPUG Conf 2017
www.bgpug.org
pglogical

弍仂仆舒舒 亠 亟仂仍. 亳仄亠
25.06.2017 BGPUG Conf 2017
www.bgpug.org
pglogical

亠亟亳仄于舒:
 丶磿舒舒 从仂仆亳亞舒亳 亠 于 弍舒亰舒舒
 亰仄仂亢仆仂 亰舒 亠仗仍亳从亳舒仆亠 仆舒 subset 仂 弍舒亰舒舒
(亠仄亳, 舒弍仍亳亳 亳 .仆.)
 亰仄仂亢仆仂 亰舒 亳仍亳舒仆亠 仆舒 亠亟仂于亠 (仂 2.0)
 仆舒仍亳舒 亠 从舒仂 extension
 亠仗仍亳从舒亳 仄/ major versions
25.06.2017 BGPUG Conf 2017
www.bgpug.org
pglogical

亠亟仂舒亳
 舒弍仂亳 per database. 舒 亠仗仍亳从亳舒仆亠 仆舒 亠仍亳
于 亠 仆亠仂弍仂亟亳仄仂 亟舒 亠 仗舒于 仂亟亠仍仆亳
从仂仆亳亞舒亳亳.
 UNLOGGED 亳 TEMPORARY 舒弍仍亳亳 仆亠 亠
亠仗仍亳从亳舒
 DDL replication 仆亠 亠 仗仂亟亟亢舒
25.06.2017 BGPUG Conf 2017
www.bgpug.org
pglogical
仗仂亳 ?
25.06.2017 BGPUG Conf 2017
www.bgpug.org
VACUUM & pglogical
仍舒亞仂亟舒!

More Related Content

Featured (20)

How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
2024 State of Marketing Report by Hubspot
2024 State of Marketing Report  by Hubspot2024 State of Marketing Report  by Hubspot
2024 State of Marketing Report by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
2024 State of Marketing Report by Hubspot
2024 State of Marketing Report  by Hubspot2024 State of Marketing Report  by Hubspot
2024 State of Marketing Report by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius

VACUUM & pglogical

  • 1. 25.06.2017 BGPUG Conf 2017 www.bgpug.org VACUUM & pglogical 亳于从仂 仆亞亠仍仂于 jivko@siteground.com
  • 2. 25.06.2017 BGPUG Conf 2017 www.bgpug.org VACUUM 舒仂 亳仄舒仄亠 仆亢亟舒 仂 VACUUM ?
  • 3. 25.06.2017 BGPUG Conf 2017 www.bgpug.org VACUUM Dead rows (tuples) 丐舒弍仍亳亳 仗仂于亠亠 UPDATE/DELETE 亰舒磦从亳 Bloating 仂-弍舒于亠仆 sequential scan 仂-弍舒于亠仆 index scan
  • 4. 25.06.2017 BGPUG Conf 2017 www.bgpug.org VACUUM 舒从于仂 亠 VACUUM ? 仂亳于舒 dead rows 从舒仂 亞亳 仄舒从亳舒 从舒仂 于仂弍仂亟仆亳
  • 5. 25.06.2017 BGPUG Conf 2017 www.bgpug.org VACUUM 亰仗仍仆亠仆亳亠 仆舒 VACUUM VACUUM VACUUM ANALYZE VACUUM FULL VACUUM FREEZE VACUUM VERBOSE
  • 6. 25.06.2017 BGPUG Conf 2017 www.bgpug.org VACUUM VACUUM 舒从亳舒 dead rows 从舒仂 于仂弍仂亟仆亳 No exclusive lock 亠 仂于仂弍仂亢亟舒于舒 仄仂 亰仂 亠
  • 7. 25.06.2017 BGPUG Conf 2017 www.bgpug.org VACUUM VACUUM FULL 丐仂舒仍仆仂 仗亠仆舒仗亳于舒 舒弍仍亳舒舒 亠仄舒于舒 dead rows 亰亳从于舒 亟仂仗仍仆亳亠仍仆仂 仄仂 于仂弍仂亢亟舒于舒 仄仂 Exclusive lock 舒于仆仂 亠, 仗亳亳仆磦舒 down pg_repack
  • 8. 25.06.2017 BGPUG Conf 2017 www.bgpug.org VACUUM VACUUM ANALYZE 亰仗仍仆磦舒 VACUUM 仂亟仆仂于磦舒 舒亳亳从亳亠, 从仂亳仂 亠 亳亰仗仂仍亰于舒 仂 query planner 弌仍亠亟 亟舒亳亠仆 UPDATE
  • 9. 25.06.2017 BGPUG Conf 2017 www.bgpug.org VACUUM VACUUM FREEZE 亠亟仂于舒磦舒 仗仂弍仍亠仄亳 仗亳 仗亠于舒仆亠仂 仆舒 transaction ID (XID) 2,1b autovacuum_freeze_max_age. Default 200m, 仂弍舒 仗舒从亳从舒 50% (1b) 亠仆亠亳舒 I/O
  • 10. 25.06.2017 BGPUG Conf 2017 www.bgpug.org VACUUM 舒 仂弍仆亠仄 于仆亳仄舒仆亳亠 VACUUM 于亟亳亞舒 仂仗亠舒亳亳亠 从仄 亟亳从舒 DELETE FROM vs. TRUNCATE SELECT * from pg_stat_all_tables WHERE relname='scans'; n_tup_upd, n_tup_ins last_vacuum seq_scan, idx_scan
  • 11. 25.06.2017 BGPUG Conf 2017 www.bgpug.org VACUUM AUTOVACUUM autovacuum daemon 仗仂于亠磦舒 于磻舒 舒弍仍亳舒 亳 VACUUM VACUUM ANALYZE, VACUUM FREEZE 亳亢亳 亠 亰舒 亟亳从仂于仂仂 仗仂舒仆于仂 autovacuum works natively - 仆亠 亠 亟仂弍舒 亳亟亠 亟舒 亠 仗亳舒. 亠仆亠亳舒 I/O 于亳 舒弍仂舒. CPU strace
  • 12. 25.06.2017 BGPUG Conf 2017 www.bgpug.org VACUUM AUTOVACUUM explicit locking 仗亳舒 autovacuum 丕于亠仍亳亠亠 弍仂 仆舒 workers 仗亳 仗仂于亠亠 舒弍仍亳亳 舒仄舒仍亠亠 autovacuume_naptim亠 pg_stat_progress_vacuum (pg 9.6) pg_terminate_backend, never kill
  • 13. 25.06.2017 BGPUG Conf 2017 www.bgpug.org VACUUM 舒从亳亠从亳 仗亳仄亠
  • 14. 25.06.2017 BGPUG Conf 2017 www.bgpug.org VACUUM 仗仂亳 ?
  • 15. 25.06.2017 BGPUG Conf 2017 www.bgpug.org pglogical 舒从于仂 亠 仂于舒 ? 仂亞亳亠从舒 亠仗仍亳从舒亳 (row level), developed by 2ndQuadrant Master->slave (亠亟仆仂仗仂仂仆舒) 舒仗仍仆仂 亰舒仄亠于舒 trigger based 亠仗仍亳从舒亳亳亠 (slony) Native 仍亠亟 psql 10
  • 16. 25.06.2017 BGPUG Conf 2017 www.bgpug.org pglogical 仂仆亳亞舒亳 wal_level = 'logical' max_worker_processes = 10 # one per database needed on provider node # one per node needed on subscriber node max_replication_slots = 10 # one per node needed on provider node max_wal_senders = 10 # one per node needed on provider node shared_preload_libraries = 'pglogical'
  • 17. 25.06.2017 BGPUG Conf 2017 www.bgpug.org pglogical 丐亠仄亳仆仂仍仂亞亳 Node psql instances Provider master 仂仍 Subscriber slave 仂仍 Replication set 仆舒弍仂 仂 舒弍仍亳亳
  • 18. 25.06.2017 BGPUG Conf 2017 www.bgpug.org pglogical Provider CREATE EXTENSION pglogical; SELECT pglogical.create_node( node_name := 'nachalnik1', dsn := 'host=pgconf1 port=5432 dbname=test' ); SELECT pglogical.replication_set_add_all_tables('default', ARRAY['public']);
  • 19. 25.06.2017 BGPUG Conf 2017 www.bgpug.org pglogical Subscriber CREATE EXTENSION pglogical; SELECT pglogical.create_node( node_name := 'subscriber1', dsn := 'host=thishost port=5432 dbname=db' ); SELECT pglogical.create_subscription( subscription_name := 'abonament1', provider_dsn := 'host=pgconf1 port=5432 dbname=test' );
  • 20. 25.06.2017 BGPUG Conf 2017 www.bgpug.org pglogical 仆亠亠仆亳 于亰仄仂亢仆仂亳 pglogical.create_subscription(synchronize_structure := true) pglogical.alter_subscription_resynchronize_table() pglogical.replicate_ddl_command() apply_delay 仆舒 舒弍仂仆舒仄亠仆舒 row_filter (仂 2.0): On provider - row_filter := 'id > 0'
  • 21. 25.06.2017 BGPUG Conf 2017 www.bgpug.org pglogical 仂仆仍亳从亳: 亟亳仆 舒弍仂仆舒 仄仂亢亠 亟舒 亠 于亢亠 从仄 仆磻仂仍从仂 亟仂舒于亳从舒 弍仂仆舒亳亠 仄仂亞舒 亟舒 仗亳舒 仗仂 舒弍仍亳舒舒 pglogical.conflict_resolution error apply_remote keep_local last_update_wins first_update_wins
  • 22. 25.06.2017 BGPUG Conf 2017 www.bgpug.org pglogical 弍仂仆舒舒 亠 亟仂仍. 亳仄亠
  • 23. 25.06.2017 BGPUG Conf 2017 www.bgpug.org pglogical 亠亟亳仄于舒: 丶磿舒舒 从仂仆亳亞舒亳 亠 于 弍舒亰舒舒 亰仄仂亢仆仂 亰舒 亠仗仍亳从亳舒仆亠 仆舒 subset 仂 弍舒亰舒舒 (亠仄亳, 舒弍仍亳亳 亳 .仆.) 亰仄仂亢仆仂 亰舒 亳仍亳舒仆亠 仆舒 亠亟仂于亠 (仂 2.0) 仆舒仍亳舒 亠 从舒仂 extension 亠仗仍亳从舒亳 仄/ major versions
  • 24. 25.06.2017 BGPUG Conf 2017 www.bgpug.org pglogical 亠亟仂舒亳 舒弍仂亳 per database. 舒 亠仗仍亳从亳舒仆亠 仆舒 亠仍亳 于 亠 仆亠仂弍仂亟亳仄仂 亟舒 亠 仗舒于 仂亟亠仍仆亳 从仂仆亳亞舒亳亳. UNLOGGED 亳 TEMPORARY 舒弍仍亳亳 仆亠 亠 亠仗仍亳从亳舒 DDL replication 仆亠 亠 仗仂亟亟亢舒
  • 25. 25.06.2017 BGPUG Conf 2017 www.bgpug.org pglogical 仗仂亳 ?
  • 26. 25.06.2017 BGPUG Conf 2017 www.bgpug.org VACUUM & pglogical 仍舒亞仂亟舒!