pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dreamsxin <dreamsxin@qq.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: 回复: [BUGS] BUG #12909: pg_dump error
Date: Wed, 1 Apr 2015 09:48:56 +0800
Message-ID: <tencent_57E4C9DE4C5081C25052CC9A@qq.com> (raw)
In-Reply-To: <20522.1427820827@sss.pgh.pa.us>
References: <20150327085150.2490.7393@wrigleys.postgresql.org>
	<20522.1427820827@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Thank you,  I found the reason, because Text Search Parser extension lextypes_function using the static variables return value.
Datum
zhprs_lextype(PG_FUNCTION_ARGS)
{
static LexDescr descr[27];
PG_RETURN_POINTER(descr);
}

 
------------------
�_源是一�N精神、一种信念 。

�g迎加入�_源社�^:
https://github.com/


 




------------------ 原始邮件 ------------------
发件人: "Tom Lane"<tgl@sss.pgh.pa.us>; 
发送时间: 2015年4月1日(星期三) 凌晨0:53
收件人: "Dreamsxin"<dreamsxin@qq.com>; 
抄送: "pgsql-bugs"<pgsql-bugs@postgresql.org>; 
主题: Re: [BUGS] BUG #12909: pg_dump error



dreamsxin@qq.com writes:
> pg_dump: [archiver (db)] query failed: server closed the connection
> unexpectedly
> 	This probably means the server terminated abnormally
> 	before or while processing the request.
> pg_dump: [archiver (db)] query was: SELECT 
>   ( SELECT alias FROM pg_catalog.ts_token_type('16392'::pg_catalog.oid) AS t

>     WHERE t.tokid = m.maptokentype ) AS tokenname, 
>   m.mapdict::pg_catalog.regdictionary AS dictname 
> FROM pg_catalog.pg_ts_config_map AS m 
> WHERE m.mapcfg = '69497' 
> ORDER BY m.mapcfg, m.maptokentype, m.mapseqno

There's not really enough information here to do more than speculate,
but it appears that you've got a broken text search configuration,
perhaps a buggy custom parser definition.
What do you get from "select oid, * from pg_ts_parser"?

			regards, tom lane

Message-ID: <tencent_57E4C9DE4C5081C25052CC9A@qq.com>
Permalink:  ../tencent_57E4C9DE4C5081C25052CC9A@qq.com/
Also on:    postgresql.org/message-id/tencent_57E4C9DE4C5081C25052CC9A@qq.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: dreamsxin@qq.com, tgl@sss.pgh.pa.us
  Subject: Re: 回复: [BUGS] BUG #12909: pg_dump error
  In-Reply-To: <tencent_57E4C9DE4C5081C25052CC9A@qq.com>
  References: <20150327085150.2490.7393@wrigleys.postgresql.org> <20522.1427820827@sss.pgh.pa.us> <tencent_57E4C9DE4C5081C25052CC9A@qq.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox