Skip to content

Commit 9a7db38

Browse files
committed
Clarify PSQL_META_COMMANDS catch-all pattern handles PostgreSQL 17.6+ commands
The /^\\./i pattern is a catch-all that filters ANY backslash command, including \restrict and \unrestrict introduced in PostgreSQL 17.6. This clarifies that issues #322 and #326 are already resolved by the PSQL_META_COMMANDS implementation from PR #329. Related: #322, #326
1 parent b75804e commit 9a7db38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/apartment/adapters/postgresql_adapter.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ class PostgresqlSchemaFromSqlAdapter < PostgresqlSchemaAdapter
167167
/^\\o/i,
168168
/^\\t/i,
169169
/^\\q/i,
170-
/^\\./i, # end-of-copy delimiter
170+
/^\\./i, # Catch-all for any backslash command (e.g., \. for COPY delimiter,
171+
# \restrict/\unrestrict in PostgreSQL 17.6+, and future meta-commands)
171172
].freeze
172173

173174
# Combined blacklist: SQL statements and psql meta-commands to filter from pg_dump output

0 commit comments

Comments
 (0)