Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0b4

Bug #12338 Make #9106 "improved getSequenceName()" behaviour optional
Submitted: 2007-10-24 22:59 UTC
From: birne Assigned: quipo
Status: Closed Package: MDB2_Driver_pgsql
PHP Version: 5.2.1 OS: Linux 2.6.20-16-generic
Roadmaps: (Not assigned)    
Subscription  


 [2007-10-24 22:59 UTC] birne (Dennis Birne)
Description: ------------ Request #9106 "improved getSequenceName() routine that should be able to retrieve the name of the real sequence associated with the table/field in case of SERIAL datatypes." However, this method is both expensive and doesnotworkforme(TM). For the bug see ticket #12337, but the "improved getSequenceName()" behaviour also has a performance issue: the query that is submitted to the DB that resolves e.g. "Customer_id" to "Customer_id_seq" costs 25ms on my shiny new machine having barely any system load. I would like to request an option that allows me to globally choose wether to use just sprintf() to make "Customer_id_seq" out of "Customer_id" OR use the currently implemented improvement. Implementing this would be about three lines of code in getSequenceName() plus getter/setter for this new option.

Comments

 [2007-11-04 11:54 UTC] birne (Dennis Birne)
Moved to package MDB2_Driver_pgsql
 [2007-11-09 20:45 UTC] quipo (Lorenzo Alberton)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.