Debug line with all properties: FROMHOST: '', fromhost-ip: '172.17.128.1', HOSTNAME: 'host', PRI: 134, syslogtag 'app[postgres.2498309]', programname: 'app', APP-NAME: 'app', PROCID: 'postgres.2498309', MSGID: '-', TIMESTAMP: 'Nov 12 00:02:48', STRUCTURED-DATA: '[DATABASE]', msg: '[97-1] sql_error_code = 00000 time_ms = "2026-11-12 00:02:48.351 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68693" tid="0" log_line="6" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" LOG: duration: 3208.448 ms execute : select count(*) as "count" from (select "streams"."external_id", "streams"."id", "streams"."owner_id", "streams"."updated_at", "streams"."type", "projections"."projection" from "streams" inner join "projections" on "projections"."stream_id" = "streams"."id" where "streams"."type" = $1 and "projections"."version" = $2 and CAST("projections"."projection"#>>'{org62AccountId}' AS text) not in ($3) and "streams"."updated_at" >= $4) as "temp"' escaped msg: '[97-1] sql_error_code = 00000 time_ms = "2026-11-12 00:02:48.351 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68693" tid="0" log_line="6" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" LOG: duration: 3208.448 ms execute : select count(*) as "count" from (select "streams"."external_id", "streams"."id", "streams"."owner_id", "streams"."updated_at", "streams"."type", "projections"."projection" from "streams" inner join "projections" on "projections"."stream_id" = "streams"."id" where "streams"."type" = $1 and "projections"."version" = $2 and CAST("projections"."projection"#>>'{org62AccountId}' AS text) not in ($3) and "streams"."updated_at" >= $4) as "temp"' inputname: drain rawmsg: '<134>1 2026-11-12T00:02:48+00:00 host app postgres.2498309 - [DATABASE] [97-1] sql_error_code = 00000 time_ms = "2026-11-12 00:02:48.351 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68693" tid="0" log_line="6" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" LOG: duration: 3208.448 ms execute : select count(*) as "count" from (select "streams"."external_id", "streams"."id", "streams"."owner_id", "streams"."updated_at", "streams"."type", "projections"."projection" from "streams" inner join "projections" on "projections"."stream_id" = "streams"."id" where "streams"."type" = $1 and "projections"."version" = $2 and CAST("projections"."projection"#>>'{org62AccountId}' AS text) not in ($3) and "streams"."updated_at" >= $4) as "temp"' $!:{ "metadata": { "httpheaders": { "host": "appx-staging-drain-4bd9f585e48c.herokuapp.com", "user-agent": "logfwd", "content-length": "1372", "accept-encoding": "gzip", "content-type": "application\/logplex-1", "logplex-drain-token": "d.2257363d-e289-4fca-980f-d26509782992", "logplex-frame-id": "491b2ad7-2312-4956-8e6d-d54832d3f39e", "logplex-msg-count": "2", "server": "Heroku", "via": "1.1 spaces-router (0b8a9a9e03f1)", "x-forwarded-for": "107.21.218.246", "x-forwarded-port": "443", "x-forwarded-proto": "https", "x-request-id": "feb89f68-0741-4751-d9a3-28614845dc65", "x-request-start": "1794441769133" }, "queryparams": { "app": "appx-oaf-staging", "space": "appexchange-primary", "service": "appexchange", "team": "sfdc-platform-ecosystem" } }, "data": { "event": "[97-1] sql_error_code = 00000 time_ms = \"2026-11-12 00:02:48.351 UTC\" pid=\"1123828\" proc_start_time=\"2026-11-12 00:00:04 UTC\" session_id=\"6af50184.1125f4\" vtid=\"91\/68693\" tid=\"0\" log_line=\"6\" database=\"ddvvgu681gm35p\" connection_source=\"10.0.166.195(40760)\" user=\"uc0g389cnbt72e\" application_name=\"[unknown]\" LOG: duration: 3208.448 ms execute : select count(*) as \"count\" from (select \"streams\".\"external_id\", \"streams\".\"id\", \"streams\".\"owner_id\", \"streams\".\"updated_at\", \"streams\".\"type\", \"projections\".\"projection\" from \"streams\" inner join \"projections\" on \"projections\".\"stream_id\" = \"streams\".\"id\" where \"streams\".\"type\" = $1 and \"projections\".\"version\" = $2 and CAST(\"projections\".\"projection\"#>>'{org62AccountId}' AS text) not in ($3) and \"streams\".\"updated_at\" >= $4) as \"temp\"", "source": "heroku.app", "sourcetype": "-", "hostname": "d.2257363d-e289-4fca-980f-d26509782992", "agent_timestamp": "2026-11-12T00:02:48+00:00", "tags_schema_id": "any6:1", "tags": { "dyno": "postgres.2498309", "app": "appx-oaf-staging", "space": "appexchange-primary", "region": "-", "severity": "info", "uuid": "d2b5b31d-2db1-4389-940d-0e73e0f64b0b" }, "owner": { "service": "appexchange", "team": "sfdc-platform-ecosystem", "environment": "-", "cloud": "-" } } } $.:{ "app_id": "d.2257363d-e289-4fca-980f-d26509782992", "source": "app", "dyno": "postgres.2498309", "app": "appx-oaf-staging", "space": "appexchange-primary", "region": "-", "team": "sfdc-platform-ecosystem", "service": "appexchange", "sourcetype": "-", "environment": "-", "cloud": "-", "business_unit": "Heroku", "type": "log", "inc": 0, "format": "text", "dynadir": "debug" } $/: Debug line with all properties: FROMHOST: '', fromhost-ip: '172.17.128.1', HOSTNAME: 'host', PRI: 134, syslogtag 'app[postgres.2498309]', programname: 'app', APP-NAME: 'app', PROCID: 'postgres.2498309', MSGID: '-', TIMESTAMP: 'Nov 12 00:02:48', STRUCTURED-DATA: '[DATABASE]', msg: '[97-2] sql_error_code = 00000 time_ms = "2026-11-12 00:02:48.351 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68693" tid="0" log_line="7" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" DETAIL: parameters: $1 = 'listing', $2 = 'oafv1', $3 = '0013000000HkkOAAAZ', $4 = '2026-10-30 07:27:53.96+00'' escaped msg: '[97-2] sql_error_code = 00000 time_ms = "2026-11-12 00:02:48.351 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68693" tid="0" log_line="7" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" DETAIL: parameters: $1 = 'listing', $2 = 'oafv1', $3 = '0013000000HkkOAAAZ', $4 = '2026-10-30 07:27:53.96+00'' inputname: drain rawmsg: '<134>1 2026-11-12T00:02:48+00:00 host app postgres.2498309 - [DATABASE] [97-2] sql_error_code = 00000 time_ms = "2026-11-12 00:02:48.351 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68693" tid="0" log_line="7" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" DETAIL: parameters: $1 = 'listing', $2 = 'oafv1', $3 = '0013000000HkkOAAAZ', $4 = '2026-10-30 07:27:53.96+00'' $!:{ "metadata": { "httpheaders": { "host": "appx-staging-drain-4bd9f585e48c.herokuapp.com", "user-agent": "logfwd", "content-length": "1372", "accept-encoding": "gzip", "content-type": "application\/logplex-1", "logplex-drain-token": "d.2257363d-e289-4fca-980f-d26509782992", "logplex-frame-id": "491b2ad7-2312-4956-8e6d-d54832d3f39e", "logplex-msg-count": "2", "server": "Heroku", "via": "1.1 spaces-router (0b8a9a9e03f1)", "x-forwarded-for": "107.21.218.246", "x-forwarded-port": "443", "x-forwarded-proto": "https", "x-request-id": "feb89f68-0741-4751-d9a3-28614845dc65", "x-request-start": "1794441769133" }, "queryparams": { "app": "appx-oaf-staging", "space": "appexchange-primary", "service": "appexchange", "team": "sfdc-platform-ecosystem" } }, "data": { "event": "[97-2] sql_error_code = 00000 time_ms = \"2026-11-12 00:02:48.351 UTC\" pid=\"1123828\" proc_start_time=\"2026-11-12 00:00:04 UTC\" session_id=\"6af50184.1125f4\" vtid=\"91\/68693\" tid=\"0\" log_line=\"7\" database=\"ddvvgu681gm35p\" connection_source=\"10.0.166.195(40760)\" user=\"uc0g389cnbt72e\" application_name=\"[unknown]\" DETAIL: parameters: $1 = 'listing', $2 = 'oafv1', $3 = '0013000000HkkOAAAZ', $4 = '2026-10-30 07:27:53.96+00'", "source": "heroku.app", "sourcetype": "-", "hostname": "d.2257363d-e289-4fca-980f-d26509782992", "agent_timestamp": "2026-11-12T00:02:48+00:00", "tags_schema_id": "any6:1", "tags": { "dyno": "postgres.2498309", "app": "appx-oaf-staging", "space": "appexchange-primary", "region": "-", "severity": "info", "uuid": "d2b5b31d-2db1-4389-940d-0e73e0f64b0b" }, "owner": { "service": "appexchange", "team": "sfdc-platform-ecosystem", "environment": "-", "cloud": "-" } } } $.:{ "app_id": "d.2257363d-e289-4fca-980f-d26509782992", "source": "app", "dyno": "postgres.2498309", "app": "appx-oaf-staging", "space": "appexchange-primary", "region": "-", "team": "sfdc-platform-ecosystem", "service": "appexchange", "sourcetype": "-", "environment": "-", "cloud": "-", "business_unit": "Heroku", "type": "log", "inc": 0, "format": "text", "dynadir": "debug" } $/: Debug line with all properties: FROMHOST: '', fromhost-ip: '172.17.128.1', HOSTNAME: 'host', PRI: 134, syslogtag 'app[postgres.2498309]', programname: 'app', APP-NAME: 'app', PROCID: 'postgres.2498309', MSGID: '-', TIMESTAMP: 'Nov 12 00:26:43', STRUCTURED-DATA: '[DATABASE]', msg: '[98-1] sql_error_code = 00000 time_ms = "2026-11-12 00:26:43.556 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68700" tid="0" log_line="8" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" LOG: duration: 2977.788 ms execute : select count(*) as "count" from (select "streams"."external_id", "streams"."id", "streams"."owner_id", "streams"."updated_at", "streams"."type", "projections"."projection" from "streams" inner join "projections" on "projections"."stream_id" = "streams"."id" where "streams"."type" = $1 and "projections"."version" = $2 and CAST("projections"."projection"#>>'{org62AccountId}' AS text) not in ($3) and "streams"."updated_at" >= $4) as "temp"' escaped msg: '[98-1] sql_error_code = 00000 time_ms = "2026-11-12 00:26:43.556 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68700" tid="0" log_line="8" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" LOG: duration: 2977.788 ms execute : select count(*) as "count" from (select "streams"."external_id", "streams"."id", "streams"."owner_id", "streams"."updated_at", "streams"."type", "projections"."projection" from "streams" inner join "projections" on "projections"."stream_id" = "streams"."id" where "streams"."type" = $1 and "projections"."version" = $2 and CAST("projections"."projection"#>>'{org62AccountId}' AS text) not in ($3) and "streams"."updated_at" >= $4) as "temp"' inputname: drain rawmsg: '<134>1 2026-11-12T00:26:43+00:00 host app postgres.2498309 - [DATABASE] [98-1] sql_error_code = 00000 time_ms = "2026-11-12 00:26:43.556 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68700" tid="0" log_line="8" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" LOG: duration: 2977.788 ms execute : select count(*) as "count" from (select "streams"."external_id", "streams"."id", "streams"."owner_id", "streams"."updated_at", "streams"."type", "projections"."projection" from "streams" inner join "projections" on "projections"."stream_id" = "streams"."id" where "streams"."type" = $1 and "projections"."version" = $2 and CAST("projections"."projection"#>>'{org62AccountId}' AS text) not in ($3) and "streams"."updated_at" >= $4) as "temp"' $!:{ "metadata": { "httpheaders": { "host": "appx-staging-drain-4bd9f585e48c.herokuapp.com", "user-agent": "logfwd", "content-length": "1372", "accept-encoding": "gzip", "content-type": "application\/logplex-1", "logplex-drain-token": "d.2257363d-e289-4fca-980f-d26509782992", "logplex-frame-id": "b0b222d8-0afc-4544-b2ba-e0c015ff0a0f", "logplex-msg-count": "2", "server": "Heroku", "via": "1.1 spaces-router (0b8a9a9e03f1)", "x-forwarded-for": "54.82.46.53", "x-forwarded-port": "443", "x-forwarded-proto": "https", "x-request-id": "5dd202e2-72ec-403f-742e-6b243750d18e", "x-request-start": "1794443204396" }, "queryparams": { "app": "appx-oaf-staging", "space": "appexchange-primary", "service": "appexchange", "team": "sfdc-platform-ecosystem" } }, "data": { "event": "[98-1] sql_error_code = 00000 time_ms = \"2026-11-12 00:26:43.556 UTC\" pid=\"1123828\" proc_start_time=\"2026-11-12 00:00:04 UTC\" session_id=\"6af50184.1125f4\" vtid=\"91\/68700\" tid=\"0\" log_line=\"8\" database=\"ddvvgu681gm35p\" connection_source=\"10.0.166.195(40760)\" user=\"uc0g389cnbt72e\" application_name=\"[unknown]\" LOG: duration: 2977.788 ms execute : select count(*) as \"count\" from (select \"streams\".\"external_id\", \"streams\".\"id\", \"streams\".\"owner_id\", \"streams\".\"updated_at\", \"streams\".\"type\", \"projections\".\"projection\" from \"streams\" inner join \"projections\" on \"projections\".\"stream_id\" = \"streams\".\"id\" where \"streams\".\"type\" = $1 and \"projections\".\"version\" = $2 and CAST(\"projections\".\"projection\"#>>'{org62AccountId}' AS text) not in ($3) and \"streams\".\"updated_at\" >= $4) as \"temp\"", "source": "heroku.app", "sourcetype": "-", "hostname": "d.2257363d-e289-4fca-980f-d26509782992", "agent_timestamp": "2026-11-12T00:26:43+00:00", "tags_schema_id": "any6:1", "tags": { "dyno": "postgres.2498309", "app": "appx-oaf-staging", "space": "appexchange-primary", "region": "-", "severity": "info", "uuid": "d2b5b31d-2db1-4389-940d-0e73e0f64b0b" }, "owner": { "service": "appexchange", "team": "sfdc-platform-ecosystem", "environment": "-", "cloud": "-" } } } $.:{ "app_id": "d.2257363d-e289-4fca-980f-d26509782992", "source": "app", "dyno": "postgres.2498309", "app": "appx-oaf-staging", "space": "appexchange-primary", "region": "-", "team": "sfdc-platform-ecosystem", "service": "appexchange", "sourcetype": "-", "environment": "-", "cloud": "-", "business_unit": "Heroku", "type": "log", "inc": 0, "format": "text", "dynadir": "debug" } $/: Debug line with all properties: FROMHOST: '', fromhost-ip: '172.17.128.1', HOSTNAME: 'host', PRI: 134, syslogtag 'app[postgres.2498309]', programname: 'app', APP-NAME: 'app', PROCID: 'postgres.2498309', MSGID: '-', TIMESTAMP: 'Nov 12 00:26:43', STRUCTURED-DATA: '[DATABASE]', msg: '[98-2] sql_error_code = 00000 time_ms = "2026-11-12 00:26:43.556 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68700" tid="0" log_line="9" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" DETAIL: parameters: $1 = 'listing', $2 = 'oafv1', $3 = '0013000000HkkOAAAZ', $4 = '2026-10-30 07:27:53.96+00'' escaped msg: '[98-2] sql_error_code = 00000 time_ms = "2026-11-12 00:26:43.556 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68700" tid="0" log_line="9" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" DETAIL: parameters: $1 = 'listing', $2 = 'oafv1', $3 = '0013000000HkkOAAAZ', $4 = '2026-10-30 07:27:53.96+00'' inputname: drain rawmsg: '<134>1 2026-11-12T00:26:43+00:00 host app postgres.2498309 - [DATABASE] [98-2] sql_error_code = 00000 time_ms = "2026-11-12 00:26:43.556 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68700" tid="0" log_line="9" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" DETAIL: parameters: $1 = 'listing', $2 = 'oafv1', $3 = '0013000000HkkOAAAZ', $4 = '2026-10-30 07:27:53.96+00'' $!:{ "metadata": { "httpheaders": { "host": "appx-staging-drain-4bd9f585e48c.herokuapp.com", "user-agent": "logfwd", "content-length": "1372", "accept-encoding": "gzip", "content-type": "application\/logplex-1", "logplex-drain-token": "d.2257363d-e289-4fca-980f-d26509782992", "logplex-frame-id": "b0b222d8-0afc-4544-b2ba-e0c015ff0a0f", "logplex-msg-count": "2", "server": "Heroku", "via": "1.1 spaces-router (0b8a9a9e03f1)", "x-forwarded-for": "54.82.46.53", "x-forwarded-port": "443", "x-forwarded-proto": "https", "x-request-id": "5dd202e2-72ec-403f-742e-6b243750d18e", "x-request-start": "1794443204396" }, "queryparams": { "app": "appx-oaf-staging", "space": "appexchange-primary", "service": "appexchange", "team": "sfdc-platform-ecosystem" } }, "data": { "event": "[98-2] sql_error_code = 00000 time_ms = \"2026-11-12 00:26:43.556 UTC\" pid=\"1123828\" proc_start_time=\"2026-11-12 00:00:04 UTC\" session_id=\"6af50184.1125f4\" vtid=\"91\/68700\" tid=\"0\" log_line=\"9\" database=\"ddvvgu681gm35p\" connection_source=\"10.0.166.195(40760)\" user=\"uc0g389cnbt72e\" application_name=\"[unknown]\" DETAIL: parameters: $1 = 'listing', $2 = 'oafv1', $3 = '0013000000HkkOAAAZ', $4 = '2026-10-30 07:27:53.96+00'", "source": "heroku.app", "sourcetype": "-", "hostname": "d.2257363d-e289-4fca-980f-d26509782992", "agent_timestamp": "2026-11-12T00:26:43+00:00", "tags_schema_id": "any6:1", "tags": { "dyno": "postgres.2498309", "app": "appx-oaf-staging", "space": "appexchange-primary", "region": "-", "severity": "info", "uuid": "d2b5b31d-2db1-4389-940d-0e73e0f64b0b" }, "owner": { "service": "appexchange", "team": "sfdc-platform-ecosystem", "environment": "-", "cloud": "-" } } } $.:{ "app_id": "d.2257363d-e289-4fca-980f-d26509782992", "source": "app", "dyno": "postgres.2498309", "app": "appx-oaf-staging", "space": "appexchange-primary", "region": "-", "team": "sfdc-platform-ecosystem", "service": "appexchange", "sourcetype": "-", "environment": "-", "cloud": "-", "business_unit": "Heroku", "type": "log", "inc": 0, "format": "text", "dynadir": "debug" } $/: Debug line with all properties: FROMHOST: '', fromhost-ip: '172.17.128.1', HOSTNAME: 'host', PRI: 134, syslogtag 'app[postgres.2498309]', programname: 'app', APP-NAME: 'app', PROCID: 'postgres.2498309', MSGID: '-', TIMESTAMP: 'Nov 12 00:30:04', STRUCTURED-DATA: '[DATABASE]', msg: '[100-1] sql_error_code = 00000 time_ms = "2026-11-12 00:30:04.453 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68706" tid="0" log_line="12" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" LOG: duration: 4275.175 ms execute : select "streams"."id", "streams"."external_id", "streams"."owner_id", "streams"."head_delta_id", "projections"."stream_id", "permGroups"."id" as "permGroupId" from "streams" inner join "projections" on "projections"."stream_id" = "streams"."id" left join "permission_groups" as "permGroups" on "permGroups"."org62_account_id" = "projections".projection->>'org62AccountId' where "projections"."version" = $1 and CAST("projections"."type" AS text) in ($2, $3, $4, $5, $6, $7, $8) and "projections".projection->>'org62AccountId' in (Select' escaped msg: '[100-1] sql_error_code = 00000 time_ms = "2026-11-12 00:30:04.453 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68706" tid="0" log_line="12" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" LOG: duration: 4275.175 ms execute : select "streams"."id", "streams"."external_id", "streams"."owner_id", "streams"."head_delta_id", "projections"."stream_id", "permGroups"."id" as "permGroupId" from "streams" inner join "projections" on "projections"."stream_id" = "streams"."id" left join "permission_groups" as "permGroups" on "permGroups"."org62_account_id" = "projections".projection->>'org62AccountId' where "projections"."version" = $1 and CAST("projections"."type" AS text) in ($2, $3, $4, $5, $6, $7, $8) and "projections".projection->>'org62AccountId' in (Select' inputname: drain rawmsg: '<134>1 2026-11-12T00:30:04+00:00 host app postgres.2498309 - [DATABASE] [100-1] sql_error_code = 00000 time_ms = "2026-11-12 00:30:04.453 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68706" tid="0" log_line="12" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" LOG: duration: 4275.175 ms execute : select "streams"."id", "streams"."external_id", "streams"."owner_id", "streams"."head_delta_id", "projections"."stream_id", "permGroups"."id" as "permGroupId" from "streams" inner join "projections" on "projections"."stream_id" = "streams"."id" left join "permission_groups" as "permGroups" on "permGroups"."org62_account_id" = "projections".projection->>'org62AccountId' where "projections"."version" = $1 and CAST("projections"."type" AS text) in ($2, $3, $4, $5, $6, $7, $8) and "projections".projection->>'org62AccountId' in (Select' $!:{ "metadata": { "httpheaders": { "host": "appx-staging-drain-4bd9f585e48c.herokuapp.com", "user-agent": "logfwd", "content-length": "1757", "accept-encoding": "gzip", "content-type": "application\/logplex-1", "logplex-drain-token": "d.2257363d-e289-4fca-980f-d26509782992", "logplex-frame-id": "c1a4a5d2-144a-45cf-ac7b-f7ce8a44f476", "logplex-msg-count": "3", "server": "Heroku", "via": "1.1 spaces-router (0b8a9a9e03f1)", "x-forwarded-for": "3.233.248.199", "x-forwarded-port": "443", "x-forwarded-proto": "https", "x-request-id": "205ba25e-b7ef-7cd9-56f3-7932a5d7114c", "x-request-start": "1794443405397" }, "queryparams": { "app": "appx-oaf-staging", "space": "appexchange-primary", "service": "appexchange", "team": "sfdc-platform-ecosystem" } }, "data": { "event": "[100-1] sql_error_code = 00000 time_ms = \"2026-11-12 00:30:04.453 UTC\" pid=\"1123828\" proc_start_time=\"2026-11-12 00:00:04 UTC\" session_id=\"6af50184.1125f4\" vtid=\"91\/68706\" tid=\"0\" log_line=\"12\" database=\"ddvvgu681gm35p\" connection_source=\"10.0.166.195(40760)\" user=\"uc0g389cnbt72e\" application_name=\"[unknown]\" LOG: duration: 4275.175 ms execute : select \"streams\".\"id\", \"streams\".\"external_id\", \"streams\".\"owner_id\", \"streams\".\"head_delta_id\", \"projections\".\"stream_id\", \"permGroups\".\"id\" as \"permGroupId\" from \"streams\" inner join \"projections\" on \"projections\".\"stream_id\" = \"streams\".\"id\" left join \"permission_groups\" as \"permGroups\" on \"permGroups\".\"org62_account_id\" = \"projections\".projection->>'org62AccountId' where \"projections\".\"version\" = $1 and CAST(\"projections\".\"type\" AS text) in ($2, $3, $4, $5, $6, $7, $8) and \"projections\".projection->>'org62AccountId' in (Select", "source": "heroku.app", "sourcetype": "-", "hostname": "d.2257363d-e289-4fca-980f-d26509782992", "agent_timestamp": "2026-11-12T00:30:04+00:00", "tags_schema_id": "any6:1", "tags": { "dyno": "postgres.2498309", "app": "appx-oaf-staging", "space": "appexchange-primary", "region": "-", "severity": "info", "uuid": "d2b5b31d-2db1-4389-940d-0e73e0f64b0b" }, "owner": { "service": "appexchange", "team": "sfdc-platform-ecosystem", "environment": "-", "cloud": "-" } } } $.:{ "app_id": "d.2257363d-e289-4fca-980f-d26509782992", "source": "app", "dyno": "postgres.2498309", "app": "appx-oaf-staging", "space": "appexchange-primary", "region": "-", "team": "sfdc-platform-ecosystem", "service": "appexchange", "sourcetype": "-", "environment": "-", "cloud": "-", "business_unit": "Heroku", "type": "log", "inc": 0, "format": "text", "dynadir": "debug" } $/: Debug line with all properties: FROMHOST: '', fromhost-ip: '172.17.128.1', HOSTNAME: 'host', PRI: 134, syslogtag 'app[postgres.2498309]', programname: 'app', APP-NAME: 'app', PROCID: 'postgres.2498309', MSGID: '-', TIMESTAMP: 'Nov 12 00:30:04', STRUCTURED-DATA: '[DATABASE]', msg: '[100-2] org62_account_id from permission_groups) and "projections".stream_id not in (select stream_id from permission_group_streams)' escaped msg: '[100-2] org62_account_id from permission_groups) and "projections".stream_id not in (select stream_id from permission_group_streams)' inputname: drain rawmsg: '<134>1 2026-11-12T00:30:04+00:00 host app postgres.2498309 - [DATABASE] [100-2] org62_account_id from permission_groups) and "projections".stream_id not in (select stream_id from permission_group_streams)' $!:{ "metadata": { "httpheaders": { "host": "appx-staging-drain-4bd9f585e48c.herokuapp.com", "user-agent": "logfwd", "content-length": "1757", "accept-encoding": "gzip", "content-type": "application\/logplex-1", "logplex-drain-token": "d.2257363d-e289-4fca-980f-d26509782992", "logplex-frame-id": "c1a4a5d2-144a-45cf-ac7b-f7ce8a44f476", "logplex-msg-count": "3", "server": "Heroku", "via": "1.1 spaces-router (0b8a9a9e03f1)", "x-forwarded-for": "3.233.248.199", "x-forwarded-port": "443", "x-forwarded-proto": "https", "x-request-id": "205ba25e-b7ef-7cd9-56f3-7932a5d7114c", "x-request-start": "1794443405397" }, "queryparams": { "app": "appx-oaf-staging", "space": "appexchange-primary", "service": "appexchange", "team": "sfdc-platform-ecosystem" } }, "data": { "event": "[100-2] org62_account_id from permission_groups) and \"projections\".stream_id not in (select stream_id from permission_group_streams)", "source": "heroku.app", "sourcetype": "-", "hostname": "d.2257363d-e289-4fca-980f-d26509782992", "agent_timestamp": "2026-11-12T00:30:04+00:00", "tags_schema_id": "any6:1", "tags": { "dyno": "postgres.2498309", "app": "appx-oaf-staging", "space": "appexchange-primary", "region": "-", "severity": "info", "uuid": "d2b5b31d-2db1-4389-940d-0e73e0f64b0b" }, "owner": { "service": "appexchange", "team": "sfdc-platform-ecosystem", "environment": "-", "cloud": "-" } } } $.:{ "app_id": "d.2257363d-e289-4fca-980f-d26509782992", "source": "app", "dyno": "postgres.2498309", "app": "appx-oaf-staging", "space": "appexchange-primary", "region": "-", "team": "sfdc-platform-ecosystem", "service": "appexchange", "sourcetype": "-", "environment": "-", "cloud": "-", "business_unit": "Heroku", "type": "log", "inc": 0, "format": "text", "dynadir": "debug" } $/: Debug line with all properties: FROMHOST: '', fromhost-ip: '172.17.128.1', HOSTNAME: 'host', PRI: 134, syslogtag 'app[postgres.2498309]', programname: 'app', APP-NAME: 'app', PROCID: 'postgres.2498309', MSGID: '-', TIMESTAMP: 'Nov 12 00:30:04', STRUCTURED-DATA: '[DATABASE]', msg: '[100-3] sql_error_code = 00000 time_ms = "2026-11-12 00:30:04.453 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68706" tid="0" log_line="13" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" DETAIL: parameters: $1 = 'oafv1', $2 = 'listing', $3 = 'publisher', $4 = 'solution', $5 = 'publisher_force', $6 = 'pricing_plan', $7 = 'security_review', $8 = 'security_review_payment'' escaped msg: '[100-3] sql_error_code = 00000 time_ms = "2026-11-12 00:30:04.453 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68706" tid="0" log_line="13" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" DETAIL: parameters: $1 = 'oafv1', $2 = 'listing', $3 = 'publisher', $4 = 'solution', $5 = 'publisher_force', $6 = 'pricing_plan', $7 = 'security_review', $8 = 'security_review_payment'' inputname: drain rawmsg: '<134>1 2026-11-12T00:30:04+00:00 host app postgres.2498309 - [DATABASE] [100-3] sql_error_code = 00000 time_ms = "2026-11-12 00:30:04.453 UTC" pid="1123828" proc_start_time="2026-11-12 00:00:04 UTC" session_id="6af50184.1125f4" vtid="91/68706" tid="0" log_line="13" database="ddvvgu681gm35p" connection_source="10.0.166.195(40760)" user="uc0g389cnbt72e" application_name="[unknown]" DETAIL: parameters: $1 = 'oafv1', $2 = 'listing', $3 = 'publisher', $4 = 'solution', $5 = 'publisher_force', $6 = 'pricing_plan', $7 = 'security_review', $8 = 'security_review_payment'' $!:{ "metadata": { "httpheaders": { "host": "appx-staging-drain-4bd9f585e48c.herokuapp.com", "user-agent": "logfwd", "content-length": "1757", "accept-encoding": "gzip", "content-type": "application\/logplex-1", "logplex-drain-token": "d.2257363d-e289-4fca-980f-d26509782992", "logplex-frame-id": "c1a4a5d2-144a-45cf-ac7b-f7ce8a44f476", "logplex-msg-count": "3", "server": "Heroku", "via": "1.1 spaces-router (0b8a9a9e03f1)", "x-forwarded-for": "3.233.248.199", "x-forwarded-port": "443", "x-forwarded-proto": "https", "x-request-id": "205ba25e-b7ef-7cd9-56f3-7932a5d7114c", "x-request-start": "1794443405397" }, "queryparams": { "app": "appx-oaf-staging", "space": "appexchange-primary", "service": "appexchange", "team": "sfdc-platform-ecosystem" } }, "data": { "event": "[100-3] sql_error_code = 00000 time_ms = \"2026-11-12 00:30:04.453 UTC\" pid=\"1123828\" proc_start_time=\"2026-11-12 00:00:04 UTC\" session_id=\"6af50184.1125f4\" vtid=\"91\/68706\" tid=\"0\" log_line=\"13\" database=\"ddvvgu681gm35p\" connection_source=\"10.0.166.195(40760)\" user=\"uc0g389cnbt72e\" application_name=\"[unknown]\" DETAIL: parameters: $1 = 'oafv1', $2 = 'listing', $3 = 'publisher', $4 = 'solution', $5 = 'publisher_force', $6 = 'pricing_plan', $7 = 'security_review', $8 = 'security_review_payment'", "source": "heroku.app", "sourcetype": "-", "hostname": "d.2257363d-e289-4fca-980f-d26509782992", "agent_timestamp": "2026-11-12T00:30:04+00:00", "tags_schema_id": "any6:1", "tags": { "dyno": "postgres.2498309", "app": "appx-oaf-staging", "space": "appexchange-primary", "region": "-", "severity": "info", "uuid": "d2b5b31d-2db1-4389-940d-0e73e0f64b0b" }, "owner": { "service": "appexchange", "team": "sfdc-platform-ecosystem", "environment": "-", "cloud": "-" } } } $.:{ "app_id": "d.2257363d-e289-4fca-980f-d26509782992", "source": "app", "dyno": "postgres.2498309", "app": "appx-oaf-staging", "space": "appexchange-primary", "region": "-", "team": "sfdc-platform-ecosystem", "service": "appexchange", "sourcetype": "-", "environment": "-", "cloud": "-", "business_unit": "Heroku", "type": "log", "inc": 0, "format": "text", "dynadir": "debug" } $/: