Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import: Issue tracking PGDUMP improvements #56659

Closed
5 of 14 tasks
adityamaru opened this issue Nov 13, 2020 · 7 comments
Closed
5 of 14 tasks

import: Issue tracking PGDUMP improvements #56659

adityamaru opened this issue Nov 13, 2020 · 7 comments
Assignees
Labels
A-disaster-recovery C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-disaster-recovery

Comments

@adityamaru
Copy link
Contributor

adityamaru commented Nov 13, 2020

High Priority

Medium Priority

Low Priority

  • Citext columns

To Triage

  • DROP DATABASE [IF EXISTS]. No issue created yet. TLDR: pgdump --clean and --create flags allow users to prepend DROP DATABASE IF EXISTS and CREATE DATABASE to the dump file.

Not solving - other workaround

Jira issue: CRDB-2917

@blathers-crl
Copy link

blathers-crl bot commented Nov 13, 2020

Hi @adityamaru, I've guessed the C-ategory of your issue and suitably labeled it. Please re-label if inaccurate.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@blathers-crl blathers-crl bot added the C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) label Nov 13, 2020
@mokaixu
Copy link
Contributor

mokaixu commented Dec 9, 2020

NB: Work for CREATE VIEW #29039 has been put on on hold due to design limitations. CREATE VIEW needs to be able to support arbitrary SQL queries and therefore the code at import should be able to understand all of SQL (this logic exists in the sql optbuilder).

Can circle back on this when discussions related to separating sql logic for ddls and import logic for the ingestion of data is addressed.

@mwang1026
Copy link

Any thoughts on varchar_pattern_ops? From what I can tell it allows creation of indexes that allow LIKE or POSIX string comparisons. Is this something where we would just skip the creation of that index?

@adityamaru
Copy link
Contributor Author

nextval support added in - #56473

@adityamaru
Copy link
Contributor Author

adityamaru commented Jan 6, 2021

Work is also being done to improve the ignore semantics of unsupported statements during an IMPORT PGDUMP.
The current approach is to introduce an option ignore_unsupported which will ignore all unparseable and unsupported SQL statements seen during an IMPORT PGDUMP. We also plan to expose a ignored_stmt_log_destination (name subject to change) which will allow the user to point to where they would like us to write the ignored constructs.

#57827

@adityamaru
Copy link
Contributor Author

TODO: go through all our example customer pgdump files and add ignore rules for unsupported statements.

@adityamaru
Copy link
Contributor Author

IMPORT has moved over to @cockroachdb/sql-foundations, considering most items on this list were completed I'm inclined to close this. Future improvements can be tracked more granularly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-disaster-recovery C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-disaster-recovery
Projects
No open projects
Archived in project
Development

No branches or pull requests

4 participants