### Description
A bug was found while trying to create indexes on top of Meru. We internally create a new Postgres connection using the LibPQ API without providing the username, causing permission issues. This PR fixes this.
### 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)
Yes
### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))
NA
### Description
1. !1264390 PR merged
2. Delete the old queue table in upgrade path from all nodes
3. Add the upgrade scenario 1.12 -> latest in BE test
### 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.
### 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
Fix segfault in insert by setting the right param list size.
Since we're allocating more space to be on the safe size and overrun memory, we need to set the paramList size to the actual batch size to avoid getting garbage memory and been prone to seg fault.
### 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))
### Description
Index truncation had 2 levels of flags (one a GUC, and another is an index option).
Leave behind the index option and remove the GUC (Customers can opt-in using this undocumented flag).
### Does this PR have any customer impact?
No? Or makes it better
### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
Bugfix
### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)
No
### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))
Fix up memory leaks in sort, group, create index
### Description
Fix up memory leaks on compare: for TOAST tuples, or compressed tuples, we would decompress or load tuples in memory. These weren't freed in the case where we were in the tuple sort contexts.
### 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
Updating version for 1.12 release
### Does this PR have any customer impact?
No
### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
Refactoring
### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)
No
### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))
### Description
Refactoring schema name in the bson aggregation pipeline test in OSS
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
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.
```
* Add devContainer for build time setup to HelioDB
This allows for the development flow to simply be:
Developers open the repository in VsCode
Reopen in DevContainer
make/make install
make check
To run an adhoc server, developers can run in the dev-container
./scripts/start_helio_server.sh
---------
Co-authored-by: Vinod Sridharan <visridha@microsoft.com>