-
Notifications
You must be signed in to change notification settings - Fork 181
Open
Description
Would it be possible to add a new configuration setting (e.g., pool_discard_discardall)?
When this setting is enabled, Odyssey would intercept the DISCARD ALL command sent directly by the client connection driver and effectively ignore it (preventing it from reaching PostgreSQL).
This feature would be particularly useful in environments where:
- A significant amount of business logic is implemented within the database itself.
- Temporary tables are used very intensively.
- To combat system catalog bloat, it's desirable to reuse temporary tables across pooled sessions instead of dropping them (which DISCARD ALL does) and then recreating them later.
- Unfortunately, the specific client driver being used does not provide an option to disable the automatic sending of the DISCARD ALL command (e.g., when a connection is returned to the pool).
By intercepting and ignoring DISCARD ALL at the pooler level, we could achieve the desired temporary table reuse even when the client driver enforces sending this command.
OlgaSergeyevaB, Rodshot, Eugene-vip, Mandarince, mikhalis and 1 more
Metadata
Metadata
Assignees
Labels
No labels