Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/modern-cycles-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@electric-sql/pglite': minor
---

Upgraded to PostgreSQL 18.3
8 changes: 7 additions & 1 deletion packages/pglite-tools/src/pg_dump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,13 @@ export async function pgDump({
)
}

const file = new File([execResult.fileContents], fileName, {
// remove \\restrict and \\unrestrict commands https://www.postgresql.org/docs/17/app-psql.html#APP-PSQL-META-COMMAND-RESTRICT
const contentsPruned = execResult.fileContents.replace(
/^(?:\\(?:un)?restrict\b.*\r?\n?)/gim,
'',
)

const file = new File([contentsPruned], fileName, {
type: 'text/plain',
})

Expand Down
2 changes: 2 additions & 0 deletions packages/pglite/src/pglite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ export class PGlite
'max_parallel_workers=0',
'-c',
'max_parallel_workers_per_gather=0',
'-c',
'io_method=sync',
]

/**
Expand Down
12 changes: 6 additions & 6 deletions packages/pglite/tests/contrib/amcheck.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ it('amcheck', async () => {
{
bt_index_check: '',
relname: 'pg_proc_proname_args_nsp_index',
relpages: 32,
relpages: 33,
},
{
bt_index_check: '',
relname: 'pg_description_o_c_o_index',
relpages: 23,
relpages: 24,
},
{
bt_index_check: '',
relname: 'pg_attribute_relid_attnam_index',
relpages: 15,
relpages: 16,
},
{
bt_index_check: '',
Expand All @@ -67,17 +67,17 @@ it('amcheck', async () => {
},
{
bt_index_check: '',
relname: 'pg_amop_fam_strat_index',
relname: 'pg_operator_oprname_l_r_n_index',
relpages: 6,
},
{
bt_index_check: '',
relname: 'pg_operator_oprname_l_r_n_index',
relname: 'pg_amop_fam_strat_index',
relpages: 6,
},
{
bt_index_check: '',
relname: 'pg_amop_opr_fam_index',
relname: 'pg_class_relname_nsp_index',
relpages: 6,
},
])
Expand Down
2 changes: 1 addition & 1 deletion postgres-pglite
Submodule postgres-pglite updated 3904 files
Loading