~/talk

Accelerating PL/pgSQL Code Conversion

Talkat PGConf India 2025 · 2025-03-05..03-07· [databases]
slides:none on file

Migration often spends roughly 50% of effort on code conversion, especially for projects approaching 1,000,000 lines of code. PL/pgSQL compiles with minimal semantic checks so many errors only surface on first execution (conversion tools report e.g. 90% converted while first-run correctness can be ~20%). Practical accelerators: standardize with wrapper libraries like ORAFCE, run static checks with plpgsql_check, profile nested calls via pg_stat_statements, use Postgres 14’s atomic-function metadata and session warning flags, and enforce strict data-type mapping to avoid expensive rework; cloud managed services may block some extensions.

AI-written summary · about

  1. 0:00Introduction to migration
  2. 10:06Conversion planning essentials
  3. 20:04Data type mapping strategies
  4. 27:05Standardizing PL/pgSQL functions
  5. 32:04Definition of done for conversion
  6. 38:14Q&A on migration tools
~/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.