<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;">Hi,</span></div><div><span style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;"><br></span></div><span style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;">Tuỳ vào yêu cầu hệ thống (downtime), bạn có thể sử dụng những phương pháp dưới đây để upgrade dữ liệu lên PostgreSQL version mới.</span><div style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;"><br></div><div style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;">1. Sử dụng pg_dump, pg_dumall / pg_restore, psql (chú ý: sử dụng binary phiên bản mới để dump dữ liệu)</div><div style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;"><br></div><div style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;">2. Sử dụng lệnh pg_upgrade</div><div style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;"><br></div><div style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;">3. Sử dụng chức năng Logical Replication (phiên bản 10~)</div><div style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;"><br></div><div style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;">Nhưng bạn phải chú ý rằng có rất nhiều  thay đổi ảnh hưởng tới application trên mỗi major version của PostgreSQL.</div><div style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;">Cũng như phía driver hay các software liên quan tới PostgreSQL. </div><div style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;"><br></div><div style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;">Bạn nên tham khảo kỹ:</div><div style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;">- Các thay đổi major từ release note và source của PostgreSQL.</div><div style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;">- Các chức năng PostgreSQL mà hệ thống bạn đang sử dụng (có thể phải thiết kế lại).</div><div style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;"><br></div><div style="caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69); text-decoration: -webkit-letterpress;">Thêm nữa toàn bộ các chức năng của application nên được test lại.</div><br><div><div>Hope this helps,</div><div><br></div><div>Thanks,</div><div>—</div>bocap</div><div><br>On Jun 22, 2018, at 9:39 AM, truongvt2 <<a href="mailto:truongd09vt2@gmail.com">truongd09vt2@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div>Dear các anh chị trong group</div><div><br></div><div>E mong các anh chị gửi cho em tài liệu hướng dẫn upgrade postgresql từ 9.3 lên 9.6</div><div><br></div><div>Size of database in 9.3 là khoảng 100 GB</div><div><br></div><div>Thanks and best regards</div><div>Vũ Văn Trưởng<br></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>pgsql-vn mailing list</span><br><span><a href="mailto:pgsql-vn@postgresql.vn">pgsql-vn@postgresql.vn</a></span><br><span><a href="https://www.postgresql.vn/mailman/listinfo/pgsql-vn">https://www.postgresql.vn/mailman/listinfo/pgsql-vn</a></span><br></div></blockquote></body></html>