![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
we are using postgresql 8.1.4 and found that partial indexes are not being used when the query is run using parameters, eg. in a function. When running the same query with arguments passed in the query string partial indexes are being used. Any clues? Has this behaviour changed for a while? |
#2
| |||
| |||
|
|
In any case I would see this as a security problem because you cannot control sql code injection easily (as with using DBD::Pg) if you have to pass parameters in the SQL string to use partial indexes. |
#3
| |||
| |||
|
|
Hi Simon, are you sure this has not been changed? I'm pretty sure my code worked a= =20 while ago. We are using Perl DBD::Pg on the client side and almost never = pass=20 parameters inside the SQL string for security reasons. I can't say if it= =20 broke from 8.0 -> 8.1 for us or in one of the minor 8.1 releases. |
|
In any case I would see this as a security problem because you cannot con= trol=20 sql code injection easily (as with using DBD::Pg) if you have to pass=20 parameters in the SQL string to use partial indexes. |
![]() |
| Thread Tools | |
| Display Modes | |
| |