You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+54-60Lines changed: 54 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,76 +14,74 @@ PgDD has been tested to work for PostgreSQL 10 through 13.
14
14
15
15
## Upgrading from <= v0.3
16
16
17
-
Version 0.4.0 was a complete rewrite of the PgDD extension in a new language.
18
-
Care has been taken to provide a smooth upgrade experience but
19
-
**do not upgrade without testing the upgrade on a test server!**
20
-
21
-
22
-
Versions 0.3 and prior were written as a raw SQL extension, but that method lacked ability to provide version-specific functionality (such as generated columns, procedures, etc.).
17
+
Version 0.4.0 was a complete rewrite of the PgDD extension from a raw-SQL
18
+
extension to using the [pgx framework](https://github.com/zombodb/pgx).
23
19
24
-
The last raw SQL version is still available to [download](https://raw.githubusercontent.com/rustprooflabs/pgdd/main/standalone/pgdd_v0_3.sql). This version is no longer maintained and may or may not
25
-
work on future Postgres versions.
26
20
27
21
22
+
Upgrading from Raw SQL version of PgDD (v0.3) to the pgx version (v0.4.0) is done with `DROP EXTENSION pgdd; CREATE EXTENSION pgdd;`
23
+
Care has been taken to provide a smooth upgrade experience but
24
+
**do not install the upgrade without testing the process on a test server!**
28
25
29
-
## Install from binary
26
+
If custom attributes were stored in the `dd` tables you will need to use
27
+
`pg_dump` to export the data and reload after recreating the extension
28
+
with pgx. If any of the three (3) queries below return a count > 0
The last raw SQL version is still available to [download](https://raw.githubusercontent.com/rustprooflabs/pgdd/main/standalone/pgdd_v0_3.sql). This version is no longer maintained and may or may not
47
+
work on future Postgres versions.
43
48
44
-
In your database.
45
49
50
+
## Install from binary
46
51
47
-
```sql
48
-
CREATE EXTENSION pgdd;
49
-
```
52
+
Binaries are available for Ubuntu 20.04 (bionic) and Ubuntu 21.04 (hirsute).
0 commit comments