-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
55794: backupccl: optimize spans selected for backup and ts protection r=pbardea a=adityamaru Previously, to account for interleaved tables, backup would generate spans for every table index, which would then be used by the protected ts record. Recently we saw a couple of instances where this was resulting in a very large number of spans being generated during backup. A direct consequence of this is that the record can exceed the default size of the limits of the protected timestamp subsystem. In this new scheme we attempt to merge spans using the following rules: - Contiguous index spans are merged. - Two non-contiguous index spans are merged if a scan request for the index IDs between them does not return any results. Egs: {/Table/51/1 - /Table/51/2}, {/Table/51/3 - /Table/51/4} => {/Table/51/1 - /Table/51/4} provided the dropped index represented by the span {/Table/51/2 - /Table/51/3} has been gc'ed. The resultant merged spans are what we BACKUP and what we protect from gc using a protected ts record. Informs: #54747 Release note: None 56298: pgwire: rework DecodeOidDatum to DecodeDatum to parse OidFamily types r=rafiss a=otan Resolves #56193 pgwire: rework DecodeOidDatum to DecodeDatum to parse OidFamily types Reworked DecodeOidDatum to DecodeDatum to take in a type, which encodes additional useful information necessary for ENUMs and oid family types. Release note (bug fix): Fixed a bug where reg* types were not parsed properly over pgwire, COPY or prepared statements. tree: create ParseDOid method * Move ParseDOid and associated methods to new function. * Move datum_test.go to datum_integration_test.go, as it does not import datum.go tests. * Move some of datum_invariants_test.go out into datum_test.go. * Created new datum_test.go with pure unit tests. Release note: None 56920: importccl: Add DROP TABLE [IF EXISTS] support for import pgdump. r=adityamaru a=mokaixu Previously, whenever a DROP TABLE statement was parsed, an error was thrown and the import would fail since DROP TABLE statements were not supported. Now, when we encounter a DROP TABLE statement for a target table foo, if foo exists, then we throw an error indicating to the user to drop the table foo. Otherwise, if foo does not exist, we silently ignore the DROP statement and proceed with the pgdump import. Resolves: #53112 Release note: None 57004: geos: link to docs if GEOS is not installed r=rytaft,sumeerbhola a=otan Release note (sql change): Introduce a hint when GEOS is improperly installed to the docs instructions on installing CockroachDB. Co-authored-by: Aditya Maru <[email protected]> Co-authored-by: Oliver Tan <[email protected]> Co-authored-by: Monica Xu <[email protected]>
- Loading branch information
Showing
24 changed files
with
2,278 additions
and
1,603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.