Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

2.4 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n            UPDATE posthog_group\n            SET group_properties = CASE WHEN $4 THEN $5 ELSE group_properties END,\n                properties_last_updated_at = CASE WHEN $6 THEN $7 ELSE properties_last_updated_at END,\n                properties_last_operation = CASE WHEN $8 THEN $9 ELSE properties_last_operation END,\n                created_at = CASE WHEN $10 THEN $11 ELSE created_at END,\n                version = version + 1\n            WHERE team_id = $1 AND group_type_index = $2 AND group_key = $3\n            RETURNING id::bigint as \"id!\", team_id::bigint as \"team_id!\",\n                      group_type_index, group_key, group_properties::text as \"group_properties?\",\n                      created_at,\n                      properties_last_updated_at::text as \"properties_last_updated_at?\",\n                      properties_last_operation::text as \"properties_last_operation?\",\n                      version\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id!",
        "type_info": "Int8"
      },
      {
        "ordinal": 1,
        "name": "team_id!",
        "type_info": "Int8"
      },
      {
        "ordinal": 2,
        "name": "group_type_index",
        "type_info": "Int4"
      },
      {
        "ordinal": 3,
        "name": "group_key",
        "type_info": "Varchar"
      },
      {
        "ordinal": 4,
        "name": "group_properties?",
        "type_info": "Text"
      },
      {
        "ordinal": 5,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 6,
        "name": "properties_last_updated_at?",
        "type_info": "Text"
      },
      {
        "ordinal": 7,
        "name": "properties_last_operation?",
        "type_info": "Text"
      },
      {
        "ordinal": 8,
        "name": "version",
        "type_info": "Int8"
      }
    ],
    "parameters": {
      "Left": [
        "Int4",
        "Int4",
        "Text",
        "Bool",
        "Jsonb",
        "Bool",
        "Jsonb",
        "Bool",
        "Jsonb",
        "Bool",
        "Timestamptz"
      ]
    },
    "nullable": [
      null,
      null,
      false,
      false,
      null,
      false,
      null,
      null,
      false
    ]
  },
  "hash": "06a8856bb5b29df0a84818ce2dbf7a7866ef734ba8765c5b842e8120a680c5ca"
}