Re: verify_heapam for sequences?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: verify_heapam for sequences?
Дата
Msg-id 98911a2a-a5e4-8c00-643b-3c89629a248c@enterprisedb.com
обсуждение исходный текст
Ответ на Re: verify_heapam for sequences?  (Mark Dilger <mark.dilger@enterprisedb.com>)
Список pgsql-hackers
On 30.08.21 21:00, Mark Dilger wrote:
> The attached patch changes both contrib/amcheck/ and src/bin/pg_amcheck/ to allow checking sequences.  In both cases,
thechanges required are fairly minor, though they both entail some documentation changes.
 
> 
> It seems fairly straightforward that if a user calls verify_heapam() on a sequence, then the new behavior is what
theywant.  It is not quite so clear for pg_amcheck.
 
> 
> In pg_amcheck, the command-line arguments allow discriminating between tables and indexes with materialized views
quietlytreated as tables (which, of course, they are.)  In v14, sequences were not treated as tables, nor checked at
all. In this new patch, sequences are quietly treated the same way as tables.  By "quietly", I mean there are no
command-lineswitches to specifically filter them in or out separately from filtering ordinary tables.
 
> 
> This is a user-facing behavioral change, and the user might not be imagining sequences specifically when specifying a
tablename pattern that matches both tables and sequences.  Do you see any problem with that?  It was already true that
materializedviews matching a table name pattern would be checked, so this new behavior is not entirely out of line with
theold behavior.
 
> 
> The new behavior is documented, and since I'm updating the docs, I made the behavior with respect to materialized
viewsmore explicit.
 

committed



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Fixing WAL instability in various TAP tests
Следующее
От: Antonin Houska
Дата:
Сообщение: Re: POC: Cleaning up orphaned files using undo logs