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            SELECT id::bigint as \"id!\", team_id::bigint as \"team_id!\",\n                   group_type_index, group_key,\n                   CASE WHEN $12::boolean THEN group_properties::text ELSE NULL END as \"group_properties?\",\n                   created_at,\n                   CASE WHEN $12::boolean THEN properties_last_updated_at::text ELSE NULL END as \"properties_last_updated_at?\",\n                   CASE WHEN $12::boolean THEN properties_last_operation::text ELSE NULL END as \"properties_last_operation?\",\n                   version\n            FROM posthog_group\n            WHERE team_id = $1\n              AND group_type_index = $2\n              AND (NOT $3 OR group_key ILIKE $4)\n              AND (NOT $5 OR (group_properties::text ILIKE $6 OR group_key = $7))\n              AND (NOT $8 OR (created_at, id) < ($9, $10::bigint))\n            ORDER BY created_at DESC, id DESC\n            LIMIT $11\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",
        "Bool",
        "Text",
        "Bool",
        "Text",
        "Text",
        "Bool",
        "Timestamptz",
        "Int8",
        "Int8",
        "Bool"
      ]
    },
    "nullable": [
      null,
      null,
      false,
      false,
      null,
      false,
      null,
      null,
      false
    ]
  },
  "hash": "47de7f26f3570df554211b079bae88cfd3e1bef045350a82ddc0357b449b34b8"
}