-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid calling the get_typlen multiple times (#256)
This commit also changes the column type length judgment in ReadChunkGroupNextVector(). According to Postgres code, not all platforms have sizeof(Datum) == 8 [1], so it might be better to use sizeof(Datum) instead of the magic number 8. [1] https://github.com/postgres/postgres/blob/master/src/include/postgres.h#L58
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters