pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #16014: how to modify column ev_action of pg_rewrite
2+ messages / 2 participants
[nested] [flat]

* BUG #16014: how to modify column ev_action of pg_rewrite
@ 2019-09-20 01:43 PG Bug reporting form <noreply@postgresql.org>
  2019-09-20 02:11 ` Re: BUG #16014: how to modify column ev_action of pg_rewrite Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Bug reporting form @ 2019-09-20 01:43 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: zhq651@126.com

The following bug has been logged on the website:

Bug reference:      16014
Logged by:          DamionZ Zhao
Email address:      zhq651@126.com
PostgreSQL version: 11.4
Operating system:   linux
Description:        

typedef enum CmdType
{
	CMD_UNKNOWN,
	CMD_SELECT,					/* select stmt */
	CMD_UPDATE,					/* update stmt */
	CMD_INSERT,					/* insert stmt */
	CMD_DELETE,
	CMD_MERGE,                  /* merge stmt */
	CMD_UTILITY,				/* cmds like create, destroy, copy, vacuum,
								 * etc. */
	CMD_NOTHING					/* dummy command for instead nothing rules
								 * with qual */
} CmdType;

we merge the patch "merge into" into my project, but you can see , CMD_MERGE
is not added in the end.
It leads to restore old version postgres data to new version postgres。
because CMD_UTILITY value has been  changed from 5 to 6, CMD_NOTHING has
been changed from 6 to 7.

so we want to modify pg_rewrite column :ev_action to resolve this problem.
Thanks very very much.  
Wait in a hurry!!!



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #16014: how to modify column ev_action of pg_rewrite
  2019-09-20 01:43 BUG #16014: how to modify column ev_action of pg_rewrite PG Bug reporting form <noreply@postgresql.org>
@ 2019-09-20 02:11 ` Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2019-09-20 02:11 UTC (permalink / raw)
  To: zhq651@126.com; pgsql-bugs@lists.postgresql.org

On Fri, Sep 20, 2019 at 01:43:46AM +0000, PG Bug reporting form wrote:
> we merge the patch "merge into" into my project, but you can see , CMD_MERGE
> is not added in the end.
> It leads to restore old version postgres data to new version postgres。
> because CMD_UTILITY value has been  changed from 5 to 6, CMD_NOTHING has
> been changed from 6 to 7.
> 
> so we want to modify pg_rewrite column :ev_action to resolve this problem.
> Thanks very very much.  

MERGE has been developped during the development of Postgres 11, and
then reverted, hence zero versions of PostgreSQL released include it.
I am afraid you are on your own for this custom patch, which requires
you to patch postgres anyway in your case, no?
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-09-20 02:11 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-09-20 01:43 BUG #16014: how to modify column ev_action of pg_rewrite PG Bug reporting form <noreply@postgresql.org>
2019-09-20 02:11 ` Michael Paquier <michael@paquier.xyz>

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