Skip to content

Add timestamp(tz) column types - #2471

Merged
lonvia merged 1 commit into
osm2pgsql-dev:masterfrom
joto:timestamp
May 17, 2026
Merged

Add timestamp(tz) column types#2471
lonvia merged 1 commit into
osm2pgsql-dev:masterfrom
joto:timestamp

Conversation

@joto

@joto joto commented May 16, 2026

Copy link
Copy Markdown
Collaborator

With the special behaviour that a number is interpreted as seconds since the epoch which is the format used by object.timestamp. This avoids having to format the timestamp as string in the Lua script.

@lonvia lonvia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests don't cover timestamp-as-string, don't they?

@joto

joto commented May 17, 2026

Copy link
Copy Markdown
Collaborator Author

The tests in tests/bdd/flex/timestamp.feature take timestamps from tags and write them as string.

With the special behaviour that a number is interpreted as seconds since
the epoch which is the format used by object.timestamp. This avoids
having to format the timestamp as string in the Lua script.
@lonvia
lonvia merged commit ee2f4b0 into osm2pgsql-dev:master May 17, 2026
43 of 44 checks passed
@joto
joto deleted the timestamp branch May 17, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants