~/talk

Migrating from MSSQL to PostgreSQL

Talkat Percona Tech Days 2020 · 2020-08-05..09-18· [databases, legacy-modernisation]
links:none on file
slides:none on file

Real migration steps: compile and install the tds_fdw foreign data wrapper on a Linux/Postgres 9.6+ build, create foreign tables for the SQL Server information_schema and data, then copy ~several hundred GB into PostgreSQL (short of 100 tables and several hundred views). Apply primary keys then foreign keys to catch data/encoding corruption, create trigger shells and skeleton functions to compile then refactor, and iteratively rebuild views until only problematic definitions remain. Command‑line SQL Server clients on Linux validate ports, users and truncated catalog issues (2KB view storage).

AI-written summary · about

  1. 0:00Intro
  2. 1:46SUMMARY STEPS
  3. 2:42SUMMARY DETAILS
  4. 7:48The SECRET SAUCE
  5. 10:58System Catalog Vs Information Schema
  6. 12:07PREPARING THE TARGET DATABASE
  7. 14:21INSTALLING POSTGRES
  8. 15:19THE tds faw FOREIGN DATA WRAPPER
  9. 16:14CONNECTING PG AND MSSOLE
  10. 16:38IMPORTING TABLES
  11. 17:06PROCESSING FUNCTIONSISPRO
  12. 18:27MASSAGING POSTGRES
  13. 22:53POPULATE TABLES
  14. 23:25IMPORT SYSTEM CATALOGS
  15. 25:08POPULATE SYS CATALOGS
  16. 25:42PROCESS THE TRIGGERS
  17. 26:12PROCESS THE VIEWS
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.