View Issue Details

IDProjectCategoryView StatusLast Update
0000256Pgpool-IIBugpublic2016-10-20 07:47
Reportertatzlwurm2 Assigned To 
PrioritynormalSeveritymajorReproducibilityhave not tried
Status closedResolutionopen 
Product Version3.5.4 
Summary0000256: Load Balancing option with master slave doesn't work for Functions that write.
DescriptionI have a master with a few slaves with load balancing option on.
Steps To ReproduceI connect via pgpool :
 CREATE OR REPLACE FUNCTION spcwriteperson(fname varchar(20)) RETURNS VOID AS $$ BEGIN INSERT INTO person (firstName) VALUES (fname); END $$ LANGUAGE 'plpgsql';

create table person(firstname varchar(20));

select spcwriteperson('x');
ERROR: cannot execute INSERT in a read-only transaction
CONTEXT: SQL statement "INSERT INTO person (firstName) VALUES (fname)"
PL/pgSQL function spcwriteperson(character varying) line 3 at SQL statement
TagsNo tags attached.

Activities

tatzlwurm2

2016-10-19 23:00

reporter   ~0001127

My mistake, I am new to this and didn't see black_function_list.
After editing this now works correctly, please close.

Issue History

Date Modified Username Field Change
2016-10-19 22:54 tatzlwurm2 New Issue
2016-10-19 23:00 tatzlwurm2 Note Added: 0001127
2016-10-20 07:47 t-ishii Status new => closed