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.

1.4 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT d.distinct_id as \"distinct_id!\", d.person_id as \"person_id!\", p.uuid as \"person_uuid?\",\n               COALESCE(d.version, 0)::bigint as \"version!\", d.is_deleted as \"is_deleted!\",\n               p.is_deleted as \"person_is_deleted?\"\n        FROM posthog_persondistinctid d\n        LEFT JOIN posthog_person p ON p.team_id = d.team_id AND p.id = d.person_id\n        WHERE d.team_id = $1 AND d.distinct_id = ANY($2)\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "distinct_id!",
        "type_info": "Varchar"
      },
      {
        "ordinal": 1,
        "name": "person_id!",
        "type_info": "Int8"
      },
      {
        "ordinal": 2,
        "name": "person_uuid?",
        "type_info": "Uuid"
      },
      {
        "ordinal": 3,
        "name": "version!",
        "type_info": "Int8"
      },
      {
        "ordinal": 4,
        "name": "is_deleted!",
        "type_info": "Bool"
      },
      {
        "ordinal": 5,
        "name": "person_is_deleted?",
        "type_info": "Bool"
      }
    ],
    "parameters": {
      "Left": [
        "Int4",
        "TextArray"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      null,
      false,
      false
    ]
  },
  "hash": "606d5e7fbede12ba6e965b89bd055d35ecdf32358f4c13378b2bd4f7e4a0abad"
}