Re: About adding a new filed to a struct in primnodes.h

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Andy Fan <zhihui(dot)fan1213(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: About adding a new filed to a struct in primnodes.h
Date: 2020-11-24 15:11:35
Message-ID: 20201124151135.GA11125@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2020-Nov-24, Andy Fan wrote:

> then we modified the copy/read/out functions for this node. In
> _readFuncExpr,
> we probably add something like

> [ ... ]

> Then we will get a compatible issue if we create a view with the node in
> the older version and access the view with the new binary.

When nodes are modified, you have to increment CATALOG_VERSION_NO which
makes the new code incompatible with a datadir previously created -- for
precisely this reason.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2020-11-24 15:16:45 Re: bug in pageinspect's "tuple data" feature
Previous Message Alvaro Herrera 2020-11-24 15:07:48 Re: walsender bug: stuck during shutdown