Commit Graph
12 Commits
Author SHA1 Message Date
Vinod Sridharan da2c098f3c Merged PR 1265302: Make sh.status() work
### Does this PR have any customer impact?
No

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
Feature

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)
No

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))
Make sh.status() work in mongo shell.

### Description
sh.status() used to return
![image.png](https://msdata.visualstudio.com/ba574a88-a171-48e0-8fcb-5fef6d23739c/_apis/git/repositories/501a5e7e-ffdc-4d1e-a5e6-910f73c6eb9a/pullRequests/1265302/attachments/image.png)

With these changes, this now looks like:
![image (2).png](https://msdata.visualstudio.com/ba574a88-a171-48e0-8fcb-5fef6d23739c/_apis/git/repositories/501a5e7e-ffdc-4d1e-a5e6-910f73c6eb9a/pullRequests/1265302/attachments/image%20%282%29.png)
2024-02-07 23:20:07 +03:00
Tanvi Bhandari 08365f523c Merged PR 1262739: To enable feature in 1.12 and main release as well
### Does this PR have any customer impact?
Yes

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
Feature

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)
No

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))
To enable IndexBuild Background in 1.12

### Description
To enable IndexBuild Background in 1.12 on old schema and new schema as well based on cluster version.
2024-02-07 23:20:07 +03:00
Vinod Sridharan 3775e5a27a Merged PR 1263670: Add more checks for OSS references
### Does this PR have any customer impact?

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description

Add more checks for OSS references
2024-02-07 23:20:07 +03:00
Tanvi Bhandari b1d31514b2 Merged PR 1244012: Misc changes 'mongo_catalog.pgmongo_index_queue'
1. Make index queue table name compatible to oss i.e its name should be helio_api_catalog.helio_index_queue and grant permission for helio_admin_role

2. Add citus_add_local_table_to_metadata('helio_api_catalog.helio_index_queue')

3. Due to extension upgrade scripts, the table was created on all nodes of cluster. Therefore, dropped the table from all nodes.
And create it only on coordinator using initialize_cluster(for new cluster) and complete_pgmongo_upgrade (for upgrade path)

4. Simplify CleanUpIndexBuildRequest query

Related work items: #2897026
2024-01-31 12:06:30 +03:00
Vinod Sridharan 1ca13d07e5 Merged PR 1253069: [Truncation] Fix up a bug with single path wildcard index with truncation
Fix up a bug with single path wildcard index with truncation
2024-01-31 12:06:30 +03:00
Vinod Sridharan 03c69f703d Merged PR 1249283: [Index Truncation] Add more tests and allow per index registration of truncation
1) Enable per index enablement of truncation
2) Add more tests for aarray truncation
3) Reduce prefix paths for single path indexes
2024-01-19 14:59:12 +03:00
Vinod Sridharan 628c576d6f Merged PR 1250361: Modify more references for OSS
Remove more references  in code that match the contract with the OSS extension.
2024-01-17 22:08:45 +03:00
Santiago Fernandez Madero d6b2c3aab4 Merged PR 1248408: [OSS] Fix listIndexes and listCollections command
List indexes was broken in OSS:
- when generating the backend query we were using the api.list_indexes SQL UDF which is the former/old way before cursors support to list indexes and it is available in pgmongo, but since that is obsolete and don't support cursors, we didn't added it to OSS.

Fix is to instead generate a query that fetches directly from the `helio_api_catalog.collection_indexes` table which is basically what list_indexes did:

```
SELECT mongo_api_internal.index_spec_as_bson(index_spec, TRUE)
        FROM mongo_catalog.collection_indexes
        WHERE collection_id = v_collection.collection_id AND
              (index_is_valid OR mongo_api_internal.index_build_is_in_progress(index_id))
        ORDER BY index_id
```
List Collections was broken in OSS because we were using the wrong schema to get the `row_get_bson` UDF and the OpExpr for the text equality for the query where clause `database = <dbName>` , we were not specifying a collation and postgres was failing with:

```
ERROR:  could not determine which collation to use for string comparison
HINT:  Use the COLLATE clause to set the collation explicitly.
```
2024-01-17 22:08:45 +03:00
Lucas Borges Fernandes 9839f0610e Merged PR 1249793: Changing extension name to helio in all OSS files
Removing references from the old extension name.
2024-01-17 22:08:45 +03:00
Tanvi Bhandari e56a5f6edb Merged PR 1216978: Add Index details in CurrentOp for CREATE INDEX
This PR is on top of !1215017 , I will keep both changes in separate PRs.

Does following for non-unique indexes CREATE INDEX .
1. Add DB name, collection name in currentOp
2. Add Index details in CurrentOp

NOTE: For Unique index (ALTER TABLE), current op does have collection name populated. We are not adding index details for unique index as of now. Tracking item #2843068

**After the fix :**
![image.png](https://msdata.visualstudio.com/ba574a88-a171-48e0-8fcb-5fef6d23739c/_apis/git/repositories/501a5e7e-ffdc-4d1e-a5e6-910f73c6eb9a/pullRequests/1216978/attachments/image.png)

Related work items: #2826862, #2835383
2024-01-17 22:08:45 +03:00
Gledis Zeneli ffa180741a Merged PR 1205625: Migrate drop_collection to C 2024-01-17 22:08:45 +03:00
Vinod Sridharan d8671eb379 Initial commit for HelioDB 2024-01-12 19:10:20 +00:00