Skip to content

Refactoring nbtsort-xx.c for maintenability #106

@mikecaat

Description

@mikecaat

pg_bulkload has codes related to nbtsort in "lib/nbtree/nbtsort-XX.c", which XX is each postgresql's version. And it has both postgresql's code and functions for only pg_bulkloads.

For maintenability, it's better to refactor "nbtsort-XX.c" and become "nbtsort-XX.c" to be just a copy of PostgreSQL's "src/backend/access/nbtree/nbtsort.c". So, this issue handles the followings.

  • If there are functions for only pg_bulkload in "lib/nbtree/nbtsort-XX.c", move the functions to "lib/nbtree/nbtsort-common.c"
  • Copy PostgreSQL's latest stable "src/backend/access/nbtree/nbtsort.c" to "lib/nbtree/nbtsort-XX.c"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions