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
Copying extension schema file to `/home/username/.pgx/14.0/pgx-install/share/postgresql/extension/pgdd--0.4.1-dev.sql`
102
103
Finished installing pgdd
103
-
Starting Postgres v13 on port 28813
104
+
Starting Postgres v14 on port 28814
104
105
Re-using existing database pgdd
105
106
```
106
107
@@ -110,6 +111,8 @@ In the test instance of psql, create the extension in database.
110
111
CREATE EXTENSION pgdd;
111
112
```
112
113
114
+
> Note: When you see "Re-using existing database pgdd" your previous installed version of `pgdd` will be available. To ensure you are working with the latest version of the `pgdd` extension you must drop/create the extension, quit the psql shell, and re-run the `cargo pgx run` command.
Copy file name to clipboardExpand all lines: README.md
+96-36Lines changed: 96 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,41 +12,6 @@ The extension is built on the Rust [pgx framework](https://github.com/zombodb/pg
12
12
PgDD has been tested to work for PostgreSQL 10 through 14.
13
13
14
14
15
-
## Upgrading from <= v0.3
16
-
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).
19
-
20
-
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!**
25
-
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
29
-
this applies to you.
30
-
31
-
32
-
```sql
33
-
SELECTCOUNT(*)
34
-
FROMdd.meta_table
35
-
WHERE s_name <>'dd';
36
-
SELECTCOUNT(*)
37
-
FROMdd.meta_column
38
-
WHERE s_name <>'dd';
39
-
SELECTCOUNT(*)
40
-
FROMdd.meta_schema
41
-
WHERE s_name <>'dd';
42
-
```
43
-
44
-
45
-
46
-
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.
48
-
49
-
50
15
## Install from binary
51
16
52
17
Binaries are available for Ubuntu 20.04 (focal) and Ubuntu 21.04 (hirsute).
@@ -253,6 +267,46 @@ GRANT dd_readwrite TO <your_login_user>;
253
267
254
268
255
269
270
+
## Upgrade extension
271
+
272
+
Version 0.4.0 was a complete rewrite of the PgDD extension from a raw-SQL
273
+
extension to using the [pgx framework](https://github.com/zombodb/pgx).
274
+
275
+
276
+
Upgrading versions currently requires `DROP EXTENSION pgdd; CREATE EXTENSION pgdd;`
277
+
to recreate the extension.
278
+
This is unlikely to change until [pgx #121 is resolved](https://github.com/zombodb/pgx/issues/121).
279
+
280
+
281
+
282
+
If custom attributes were stored in the `dd` tables you will need to use
283
+
`pg_dump` to export the data and reload after recreating the extension
284
+
with pgx. If any of the three (3) queries below return a count > 0
285
+
this applies to you.
286
+
287
+
288
+
```sql
289
+
SELECTCOUNT(*)
290
+
FROMdd.meta_table
291
+
WHERE s_name <>'dd';
292
+
SELECTCOUNT(*)
293
+
FROMdd.meta_column
294
+
WHERE s_name <>'dd';
295
+
SELECTCOUNT(*)
296
+
FROMdd.meta_schema
297
+
WHERE s_name <>'dd';
298
+
```
299
+
300
+
301
+
302
+
The last raw SQL version (v0.3) is 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
303
+
work on future Postgres versions.
304
+
305
+
306
+
307
+
----
308
+
309
+
256
310
## PgDD UI
257
311
258
312
The [PgDD UI](https://github.com/rustprooflabs/pgdd-ui) project provides
@@ -265,6 +319,8 @@ PgDD versioning must conform to
Copy file name to clipboardExpand all lines: pgdd.control
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
comment = 'An in-database data dictionary providing database introspection via standard SQL query syntax. Developed using pgx (https://github.com/zombodb/pgx).'
0 commit comments