View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000686 | Pgpool-II | Bug | public | 2021-01-22 11:52 | 2021-01-26 11:49 |
| Reporter | 363568233@qq.com | Assigned To | pengbo | ||
| Priority | high | Severity | major | Reproducibility | always |
| Status | assigned | Resolution | open | ||
| Platform | postgresql 12 | OS | Red Hat Enterprise Linux Server | OS Version | 7.6 |
| Product Version | 3.7.10 | ||||
| Summary | 0000686: load balance invalid | ||||
| Description | pgpool primaryćstandby execute('/*NO LOAD BALANCED*/select * from t_test') first then execute a sql without comment , the sql load balance invalid | ||||
| Steps To Reproduce | import psycopg2 conn = psycopg2.connect(dbname="dbtest", user="pgpool", password="pgpool", host=VIP, port="9999") with conn.cursor() as cur: for i in range(10): cur.execute('/*NO LOAD BALANCED*/select * from t_test') cur.execute("select * from t_test where name = 'qqq{}'".format(i)) conn.close() | ||||
| Tags | No tags attached. | ||||
|
|
|
|
|
python psycopg2 |
|
|
it not a problem with JDBC, I guess it's a bug in psycopg2 |
|
|
Sorry for late response. Have you resolved this issue? |
|
|
not yet I guess psycopg2 has a cache internal that keeps comment statements so that all subsequent queries are commented. In SQLAlchemy with psycopg2 , has similar problems but there are some differences |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2021-01-22 11:52 | 363568233@qq.com | New Issue | |
| 2021-01-22 11:52 | 363568233@qq.com | File Added: psycopg2_pgpool.png | |
| 2021-01-22 11:54 | 363568233@qq.com | Note Added: 0003726 | |
| 2021-01-22 18:25 | 363568233@qq.com | Note Added: 0003727 | |
| 2021-01-26 09:27 | pengbo | Note Added: 0003728 | |
| 2021-01-26 09:27 | pengbo | Assigned To | => pengbo |
| 2021-01-26 09:27 | pengbo | Status | new => feedback |
| 2021-01-26 09:27 | pengbo | Description Updated | |
| 2021-01-26 09:27 | pengbo | Steps to Reproduce Updated | |
| 2021-01-26 11:49 | 363568233@qq.com | Note Added: 0003729 | |
| 2021-01-26 11:49 | 363568233@qq.com | Status | feedback => assigned |