https://github.com/ma91n/psqltimestampz-learn
https://github.com/ma91n/psqltimestampz-learn
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ma91n/psqltimestampz-learn
- Owner: ma91n
- Created: 2023-10-22T23:56:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-22T23:56:54.000Z (over 1 year ago)
- Last Synced: 2025-01-13T16:17:37.818Z (5 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# psqltimestampz
PostgreSQL timestampz 調査
## snipets
```
docker exec -it pg bash
/# cat /var/lib/postgresql/data/postgresql.conf | grep timezone
log_timezone = 'Asia/Tokyo'
timezone = 'Asia/Tokyo'
#timezone_abbreviations = 'Default' # Select the set of available time zone
# share/timezonesets/.
``````
PGPASSWORD=pass psql -h localhost -p 5432 -U postgres
PGTZ=UTC PGPASSWORD=pass psql -h localhost -p 5432 -U postgresselect current_setting('timezone');
set timezone to 'UTC';
set timezone to 'Asia/Tokyo';
``````
docker-compose down --rmi all --volumes
```