![]() | |
![]() |
| | Thread Tools | Display Modes |
#31
| |||
| |||
|
|
to access settings petersprc had this solution: select setting from pg_catalog.pg_settings where name = 'modwork.transaction_id' but this does not work. The table looks like this: custom_variable_classes | modwork | | Customized Options The variable 'transaction_id' is not accessible. How can you query for the value of the custom variable? PS: See old question some messages ago. I can confirm that the variable does not show up in pg_catalog.pg_settings, but I had ne problem setting and retrieving it with SET and SHOW: Yes, first setting it, then showing it is no problem for me, too. But how can I check if the variable was already set? With 8.1.4 I get 'unset' if the variable is not set. With 8.3beta3 I get an syntax error which can't be caught with plpythonu (inside a trigger). |
#32
| |||
| |||
|
|
to access settings petersprc had this solution: select setting from pg_catalog.pg_settings where name = 'modwork.transaction_id' but this does not work. The table looks like this: custom_variable_classes | modwork | | Customized Options The variable 'transaction_id' is not accessible. How can you query for the value of the custom variable? PS: See old question some messages ago. I can confirm that the variable does not show up in pg_catalog.pg_settings, but I had ne problem setting and retrieving it with SET and SHOW: Yes, first setting it, then showing it is no problem for me, too. But how can I check if the variable was already set? With 8.1.4 I get 'unset' if the variable is not set. With 8.3beta3 I get an syntax error which can't be caught with plpythonu (inside a trigger). |
#33
| |||
| |||
|
|
to access settings petersprc had this solution: select setting from pg_catalog.pg_settings where name = 'modwork.transaction_id' but this does not work. The table looks like this: custom_variable_classes | modwork | | Customized Options The variable 'transaction_id' is not accessible. How can you query for the value of the custom variable? PS: See old question some messages ago. I can confirm that the variable does not show up in pg_catalog.pg_settings, but I had ne problem setting and retrieving it with SET and SHOW: Yes, first setting it, then showing it is no problem for me, too. But how can I check if the variable was already set? With 8.1.4 I get 'unset' if the variable is not set. With 8.3beta3 I get an syntax error which can't be caught with plpythonu (inside a trigger). |
![]() |
| Thread Tools | |
| Display Modes | |
| |