Open User-26 opened 10 months ago
Hi @User-26
What version are you using?
Can you provide a small schema so we can replicate?
I tried with a short example but couldn't replicate.
Hello, @ddorian!
Version 2.18.3.0 Here is the code for reproducing the issue:
CREATE DATABASE demo_github_issue_20656_db;
\connect demo_github_issue_20656_db
CREATE SCHEMA demo_schema;
CREATE TABLE demo_schema.demo_table (
aaa bigint NOT NULL,
bbb bigint NOT NULL,
ccc numeric(10,5),
ddd timestamp without time zone DEFAULT now() NOT NULL
);
CREATE UNIQUE INDEX NONCONCURRENTLY "index_name_with\backslash" ON demo_schema.demo_table USING lsm (aaa HASH, bbb ASC);
ALTER TABLE ONLY demo_schema.demo_table ADD CONSTRAINT "index_name_with\backslash" UNIQUE USING INDEX "index_name_with\backslash";
Steps to reproduce the issue:
The SQL script created by ysql_dump doesn't have escape quotes around index's name "index_name_with\backslash" and therefore cannot be imported back. The psql from PostgreSQL doesn't have this issue.
Thank you, can confirm also on ysql_dump
in 2.20.1.1
Also doesn't work with ysql_dump --quote-all-identifiers
.
Jira Link: DB-9651
Description
Hello! I'm trying to copy data to another DB via SQL script created by ysql_dumpall, but getting the following error during importing:
It looks like there is an issue with "gln\chain_gln" having a backward slash in the name.
Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information