GitHub Repo
Langflow Community Reports Workflow Deletion Blocked by Large Trace Logs, Hitting PostgreSQL Parameter Limit
On November 13, the Langflow community reported that deleting a workflow with a large backlog of trace logs may fail because the SQL query has too many bind parameters. The reporter proposed a database subquery prototype, but no fix has been merged and no release commitment has been made.

On November 13, the Langflow community reported a workflow deletion bug: the backend first fetches trace log IDs, then creates one SQL bind parameter for each record. The reporter got an HTTP 500 using test data with 70,104 trace records; a prototype using a subquery returned HTTP 200. The issue remains open, with no linked fix branch or PR. Issue and test details
This case runs into a query parameter capacity limit. The PostgreSQL 17 documentation lists a maximum of 65,535 query parameters. If an application expands a large number of IDs into parameters, a cleanup request may exceed the limit even though the table can still hold more records. Therefore, adding storage capacity does not directly address this kind of failure. PostgreSQL limits documentation
Trace data has practical uses in agent workflows. Langflow documentation explains that native tracing records flow executions, component inputs and outputs, latency, errors, and some model usage, with data stored in trace and span tables. From an operations perspective, retaining this information over time can help with debugging, and makes deletion and retention policies data lifecycle operations that need to be tested. Tracing documentation
The report recommends using a database-side subquery or limiting batch size, while preserving authorization, deletion order, and transaction atomicity. Engineering validation should go beyond checking for a successful HTTP status code: it should also confirm that related spans are fully removed, other users’ data is retained, and failures midway through the process can be rolled back. These checks are also listed in the issue’s validation requirements. Proposed fix and validation requirements
Current evidence is limited to a specified commit on the release-1.14.0 branch and exploratory tests on PostgreSQL 17. It does not establish that all production releases are affected, nor does a single prototype result demonstrate a performance improvement. Operators should watch for reproducible tests, maintainer confirmation, and a fix release, and should validate cleanup behavior with large amounts of historical data in their own environments. Scope of evidence