Review Oracle to Postgres Migration

Review Oracle to Postgres Migration

Finds Oracle-to-PostgreSQL migration risks by checking code against documented behavioural differences, and validates that tests cover them.

Skill files16 files

references/

SKILL.md68 lines
1
---
2
name: reviewing-oracle-to-postgres-migration
3
description: 'Identifies Oracle-to-PostgreSQL migration risks by cross-referencing code against known behavioral differences (empty strings, refcursors, type coercion, sorting/collations, UNION ALL planner risks, materialized-view refresh requirements, timestamps, concurrent transactions, etc.). Use when planning a database migration, reviewing migration artifacts, or validating that integration tests cover Oracle/PostgreSQL differences.'
4
---
5
6
# Oracle-to-PostgreSQL Database Migration
7
8
Surfaces migration risks and validates migration work against known Oracle/PostgreSQL behavioral differences documented in the `references/` folder.
9
10
## When to use
11
12
1. **Planning** — Before starting migration work on a procedure, trigger, query, or refcursor client. Identify which reference insights apply so risks are addressed up front.
13
2. **Validating** — After migration work is done, confirm every applicable insight was addressed and integration tests cover the new PostgreSQL semantics.
14
15
## Workflow
16
17
Determine the task type:
18
19
**Planning a migration?** Follow the risk assessment workflow.
20
**Validating completed work?** Follow the validation workflow.
21
22
### Risk assessment workflow (planning)
23
24
```
25
Risk Assessment:
26
- [ ] Step 1: Identify the migration scope
27
- [ ] Step 2: Screen each insight for applicability
28
- [ ] Step 3: Document risks and recommended actions
29
```
30
31
**Step 1: Identify the migration scope**
32
33
List the affected database objects (procedures, triggers, queries, views) and the application code that calls them.
34
35
**Step 2: Screen each insight for applicability**
36
37
Review the reference index in [references/REFERENCE.md](references/REFERENCE.md). For each entry, determine whether the migration scope contains patterns affected by that insight. Read the full reference file only when the insight is potentially relevant.
38
39
**Step 3: Document risks and recommended actions**
40
41
For each applicable insight, note the specific risk and the recommended fix pattern from the reference file. Flag any insight that requires a design decision (e.g., whether to preserve Oracle empty-string-as-NULL semantics or adopt PostgreSQL behavior).
42
43
### Validation workflow (post-migration)
44
45
```
46
Validation:
47
- [ ] Step 1: Map the migration artifact
48
- [ ] Step 2: Cross-check applicable insights
49
- [ ] Step 3: Verify integration test coverage
50
- [ ] Step 4: Gate the result
51
```
52
53
**Step 1: Map the migration artifact**
54
55
Identify the migrated object and summarize the change set.
56
57
**Step 2: Cross-check applicable insights**
58
59
For each reference in [references/REFERENCE.md](references/REFERENCE.md), confirm the behavior or test requirement is acknowledged and addressed in the migration work.
60
61
**Step 3: Verify integration test coverage**
62
63
Confirm tests exercise both the happy path and the failure scenarios highlighted in applicable insights (exceptions, sorting, `UNION ALL` behavior/performance risks, refcursor consumption, concurrent transactions, timestamps, materialized-view freshness, etc.).
64
65
**Step 4: Gate the result**
66
67
Return a checklist asserting each applicable insight was addressed, migration scripts run, and integration tests pass.
68

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…