: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
{
"db_name": "PostgreSQL",
"query": "\n SELECT p.id, p.uuid as \"uuid!\", p.team_id::bigint as \"team_id!\",\n CASE WHEN $3::boolean THEN p.properties::text ELSE NULL END as \"properties?\",\n CASE WHEN $3::boolean THEN p.properties_last_updated_at::text ELSE NULL END as \"properties_last_updated_at?\",\n CASE WHEN $3::boolean THEN p.properties_last_operation::text ELSE NULL END as \"properties_last_operation?\",\n p.created_at as \"created_at!\", p.version, p.is_identified as \"is_identified!\",\n CASE WHEN p.is_user_id IS NULL THEN NULL ELSE (p.is_user_id != 0) END as is_user_id,\n p.last_seen_at,\n d.distinct_id as \"distinct_id!\"\n FROM posthog_person p\n INNER JOIN posthog_persondistinctid d ON d.person_id = p.id AND d.team_id = p.team_id\n INNER JOIN UNNEST($1::integer[], $2::text[]) AS batch(team_id, distinct_id)\n ON d.team_id = batch.team_id AND d.distinct_id = batch.distinct_id\n WHERE p.is_deleted = false AND d.is_deleted = false\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "uuid!",
"type_info": "Uuid"
},
{
"ordinal": 2,
"name": "team_id!",
"type_info": "Int8"
},
{
"ordinal": 3,
"name": "properties?",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "properties_last_updated_at?",
"type_info": "Text"
},
{
"ordinal": 5,
"name": "properties_last_operation?",
"type_info": "Text"
},
{
"ordinal": 6,
"name": "created_at!",
"type_info": "Timestamptz"
},
{
"ordinal": 7,
"name": "version",
"type_info": "Int8"
},
{
"ordinal": 8,
"name": "is_identified!",
"type_info": "Bool"
},
{
"ordinal": 9,
"name": "is_user_id",
"type_info": "Bool"
},
{
"ordinal": 10,
"name": "last_seen_at",
"type_info": "Timestamptz"
},
{
"ordinal": 11,
"name": "distinct_id!",
"type_info": "Varchar"
}
],
"parameters": {
"Left": [
"Int4Array",
"TextArray",
"Bool"
]
},
"nullable": [
false,
false,
null,
null,
null,
null,
false,
true,
false,
null,
true,
false
]
},
"hash": "01ea61615cc0eecc76989c2ccc42a581aa4a941e7f53746be1f577495f74e41f"
}