Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I read at several places, including here, that "postgres has a particularly poor C API for communicating type information in prepared statements". It is suggested to use PDO::ATTR_EMULATE_PREPARES as a workaround (PDO being better at that).
I'm not sure of the impact of this in terms of performance (probably moderate, because we don't reuse prepared statements that often), but we should study that approach.
Comments
Comment #1
drewish CreditAttribution: drewish commentedsubscribing
Comment #2
Damien Tournoud CreditAttribution: Damien Tournoud commentedProperly tag those.
Comment #3
Crell CreditAttribution: Crell commentedWe're using it for MySQL at present, too at the moment, as prepared statements apparently bypass the query cache. We should probably benchmark it for both systems now that core has been running well with PDO for a while.
Comment #4
Damien Tournoud CreditAttribution: Damien Tournoud commentedComment #5
Josh Waihi CreditAttribution: Josh Waihi commentedsubscribing
Comment #6
Josh Waihi CreditAttribution: Josh Waihi commentedConsidering the progress we've made thus far with the PostgreSQL driver, what advantages will this have if any? do we need it?
Comment #7
Josh Waihi CreditAttribution: Josh Waihi commentedI'm not sure we need this, unless an argument is provided to put this in, I'll close this issue
Comment #8
Damien Tournoud CreditAttribution: Damien Tournoud commentedIt doesn't seem to make a lot of difference one way or the other.