Skip to content

Commit 1014674

Browse files
Merge pull request #262082 from nachoalonsoportillo/patch-38
Add note informing of possible inconsistency with azure_sys.query_store.qs_view.query_type
2 parents 1c662d6 + 943f510 commit 1014674

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

articles/postgresql/flexible-server/concepts-major-version-upgrade.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn about the concepts of in-place major version upgrade with Azu
44
author: kabharati
55
ms.author: kabharati
66
ms.reviewer: rajsell
7-
ms.date: 12/12/2023
7+
ms.date: 12/30/2023
88
ms.service: postgresql
99
ms.subservice: flexible-server
1010
ms.custom: references_regions
@@ -98,6 +98,9 @@ VACUUM ANALYZE VERBOSE;
9898
>
9999
> The VERBOSE flag is optional, but using it shows you the progress.
100100
101+
> [!NOTE]
102+
> If you have pg_qs enabled and collecting data on an instance of PostgreSQL running a major version <= 14, and perform an [in-place major version upgrade](./concepts-major-version-upgrade.md) to any version >= 15, know that the values returned in the query_type column of query_store.qs_view for any newly created time windows can be considered correct. However, for all the time windows which were created when the version of the engine was <= 14, where it reports `merge` it corresponds to `utility`, and when it reports `nothing` it corresponds to `utility`. The reason for that inconsistency has to do with the way [MERGE statement was implemented in PostgreSQL](https://github.com/postgres/postgres/commit/7103ebb7aae8ab8076b7e85f335ceb8fe799097c), which, instead of appending a new item to the existing ones in the CmdType enum, interleaved an item for MERGE between DELETE and UTILITY.
103+
101104
## Next steps
102105

103106
- Learn about [business continuity](./concepts-business-continuity.md).

0 commit comments

Comments
 (0)