Send and query your first events
Connect with psql to a provisioned streaming catalog, create a small table and insert two events. Query through the same connection to verify the result. You need table-creation permission and temporary database credentials. Streaming visibility follows the commit cycle, so an early empty result is not a reason to insert again.
Prerequisites
Section titled “Prerequisites”- A running deployment and an authorized catalog named
events__stream, provisioned by your administrator. Use your actual catalog name in the connection. - Catalog
adminaccess to create the example table, and permission to insert and query. psql, the server endpoint and trusted CA, and temporary database credentials.
This example creates main.activity. Use a test catalog where that name is unused. Catalog provisioning is covered in the administrator guide.
1. connect
Section titled “1. connect”Use the host, port, user and database returned by the dashboard. Enter its temporary password when prompted:
psql "host=HOST port=PORT user=USER dbname=events__stream sslmode=verify-full sslrootcert=/path/to/ca.pem"Use your client’s trusted-CA configuration for a public certificate. Do not replace the temporary database password with your dashboard password.
2. create a table
Section titled “2. create a table”CREATE TABLE main.activity ( event_id BIGINT, event_type VARCHAR, event_time TIMESTAMP);3. insert two events once
Section titled “3. insert two events once”INSERT INTO main.activity VALUES (1, 'view', TIMESTAMP '2026-01-01 12:00:00'), (2, 'click', TIMESTAMP '2026-01-01 12:00:01');If the connection is lost, retain these inputs and reconcile their outcome. An event_id column does not automatically deduplicate a repeated insert.
4. verify the result
Section titled “4. verify the result”SELECT event_id, event_type, event_timeFROM main.activityORDER BY event_id;Expected rows once the commit is visible:
| event_id | event_type | event_time |
|---|---|---|
| 1 | view | 2026-01-01 12:00:00 |
| 2 | click | 2026-01-01 12:00:01 |
If the result is initially empty, repeat only the SELECT for a bounded period appropriate to your deployment’s commit cycle. Stop and inspect completion and visibility if it does not become visible. A fixed sleep is not a readiness guarantee.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Action |
|---|---|
| Authentication failed | Get fresh temporary credentials and check the returned catalog and endpoint. |
| CREATE denied | Ask the catalog administrator for the required access or an existing test table. |
| Table already exists | Inspect it or use a new table name; do not drop an unfamiliar table. |
| Empty result | Repeat the read within a bounded deadline; check the catalog and commit progress. |
| More than two rows | Reconcile prior inserts before sending more data. |
Next step
Section titled “Next step”Try HTTP Arrow ingestion or an example dataset. Use the separate native DuckDB guide if that is your preferred query client.