Re: FailedAssertion("pd_idx == pinfo->nparts", File: "execPartition.c", Line: 1689)
От | Justin Pryzby |
---|---|
Тема | Re: FailedAssertion("pd_idx == pinfo->nparts", File: "execPartition.c", Line: 1689) |
Дата | |
Msg-id | 20200807042124.GE20473@telsasoft.com обсуждение исходный текст |
Ответ на | Re: FailedAssertion("pd_idx == pinfo->nparts", File: "execPartition.c", Line: 1689) (Amit Langote <amitlangote09@gmail.com>) |
Ответы |
Re: FailedAssertion("pd_idx == pinfo->nparts", File: "execPartition.c", Line: 1689)
|
Список | pgsql-hackers |
On Fri, Aug 07, 2020 at 01:13:51PM +0900, Amit Langote wrote: > On Fri, Aug 7, 2020 at 1:05 PM Justin Pryzby <pryzby@telsasoft.com> wrote: > > On Fri, Aug 07, 2020 at 12:16:11PM +0900, Amit Langote wrote: > > > Curiously, Justin mentioned upthread that the crash occurred during > > > BIND of a prepared query, so it better had been that a custom plan was > > > being executed, because a generic one based on fewer partitions would > > > be thrown away due to A.I.M. invoked during AcquireExecutorLocks(). > > > > Well this statement should only be executed once, and should be using > > PQexecParams and not PQexecPrepared (pygresql: pg.DB().query_prepared()). > > > > (gdb) p portal->name > > $30 = 0xf03238 "" > > > > (gdb) p portal->prepStmtName > > $31 = 0x0 > > > > (gdb) p *portal->cplan > > $24 = {magic = 953717834, stmt_list = 0x682ec38, is_oneshot = false, is_saved = true, is_valid = true, planRoleId = 16554,dependsOnRole = false, saved_xmin = 0, generation = 1, refcount = 1, context = 0x682dfd0} > > > > I'm not sure why is_oneshot=false, though... > > Perhaps printing *unnamed_stmt_psrc (CachedPlanSource for an unnamed > statement) would put out more information. (gdb) p *unnamed_stmt_psrc $49 = {magic = 195726186, raw_parse_tree = 0xfae788, query_string = 0xfaddc0 "\n", ' ' <repeats 20 times>, "SELECT $3::timestamp as start_time, $2::int as interval_seconds,\n",' ' <repeats 20 times>, "first_cgi as cgi, gsm_carr_mcc||gsm_carr_mnc as home_plmn,\n", ' ' <repeats20 times>, "SUM(chargeable_"..., commandTag = CMDTAG_SELECT, param_types = 0x1254400, num_params = 3, parserSetup= 0x0, parserSetupArg = 0x0, cursor_options = 256, fixed_result = true, resultDesc = 0x1376670, context = 0xfae550, query_list = 0x103c9a8, relationOids = 0x11aa580, invalItems = 0x11aa600, search_path= 0x11aa878, query_context = 0xf85790, rewriteRoleId = 16554, rewriteRowSecurity = true, dependsOnRLS = false, gplan = 0x0, is_oneshot = false, is_complete = true, is_saved = true,is_valid = false, generation = 1, node = {prev = 0x12fcf28, next = 0xdf2c80 <saved_plan_list>}, generic_cost = -1, total_custom_cost = 12187136.696805555, num_custom_plans = 1} -- Justin
В списке pgsql-hackers по дате отправления: