From 67d5fee5c0cdeab9e4e1cd65744bf148ebdf0209 Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Tue, 14 Jan 2025 16:28:42 +0000 Subject: [PATCH] Update with explicit limits leading to different cache usage --- .../__tests__/queries/v4/procedure-query.sql | 41 +++++-------------- 1 file changed, 11 insertions(+), 30 deletions(-) diff --git a/postgraphile/postgraphile/__tests__/queries/v4/procedure-query.sql b/postgraphile/postgraphile/__tests__/queries/v4/procedure-query.sql index 0f85d8e87..95d2635fd 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/procedure-query.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/procedure-query.sql @@ -206,32 +206,31 @@ select __table_set_query__."person_full_name" as "1", __table_set_query__."id"::text as "2" from "c"."table_set_query"() as __table_set_query__ -limit $1::"int4" -offset $2::"int4"; +limit 1 +offset 3; select (row_number() over (partition by 1))::text as "0", __table_set_query__."person_full_name" as "1", __table_set_query__."id"::text as "2" from "c"."table_set_query"() as __table_set_query__ -limit $1::"int4" -offset $2::"int4"; +limit 3 +offset 1; select (row_number() over (partition by 1))::text as "0", __table_set_query__."person_full_name" as "1", __table_set_query__."id"::text as "2" from "c"."table_set_query"() as __table_set_query__ -limit $1::"int4" -offset $2::"int4"; +limit 3; select (row_number() over (partition by 1))::text as "0", __table_set_query__."person_full_name" as "1", __table_set_query__."id"::text as "2" from "c"."table_set_query"() as __table_set_query__ -limit $1::"int4" -offset $2::"int4"; +limit 3 +offset 3; select (row_number() over (partition by 1))::text as "0", @@ -254,32 +253,14 @@ select __table_set_query__."person_full_name" as "1", __table_set_query__."id"::text as "2" from "c"."table_set_query"() as __table_set_query__ -limit 3 -offset 0; - -select - (row_number() over (partition by 1))::text as "0", - __table_set_query__."person_full_name" as "1", - __table_set_query__."id"::text as "2" -from "c"."table_set_query"() as __table_set_query__ -limit 7 -offset 0; +limit 7; select (row_number() over (partition by 1))::text as "0", __table_set_query__."person_full_name" as "1", __table_set_query__."id"::text as "2" from "c"."table_set_query"() as __table_set_query__ -limit $1::"int4" -offset $2::"int4"; - -select - (row_number() over (partition by 1))::text as "0", - __table_set_query__."person_full_name" as "1", - __table_set_query__."id"::text as "2" -from "c"."table_set_query"() as __table_set_query__ -limit $1::"int4" -offset $2::"int4"; +limit 0; select (row_number() over (partition by 1))::text as "0", @@ -293,8 +274,8 @@ select __table_set_query_plpgsql__."person_full_name" as "1", __table_set_query_plpgsql__."id"::text as "2" from "c"."table_set_query_plpgsql"() as __table_set_query_plpgsql__ -limit $1::"int4" -offset $2::"int4"; +limit 3 +offset 2; select __int_set_query__.v::text as "0",