From 2d2b4562acae1f356aaf2e6b3545b3098aa35eb4 Mon Sep 17 00:00:00 2001 From: anthonydb Date: Sat, 18 Feb 2023 15:05:49 -0500 Subject: [PATCH] FAQ/Errata: Note datestyle setting needed for crime data example --- faq-updates-errata.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/faq-updates-errata.md b/faq-updates-errata.md index 9ea952d..610fd34 100644 --- a/faq-updates-errata.md +++ b/faq-updates-errata.md @@ -78,7 +78,23 @@ None yet ### Chapter 14: Mining Text to Find Meaningful Data -None yet +**Pages 253, etc.: Turning Text to Data with Regular Expression Functions** + +The dates of crimes in this section are in the format MM/DD/YY. If your database has a `datestyle` setting other than `MDY` -- for example if you're in Europe -- then you will likely need to set your `datestyle` to complete the examples. + +Check your `datestyle` by running this query in pgAdmin: + +``` +SHOW datestyle; +``` + +If the result is other than `ISO, MDY`, you can set the `datestyle` on a per-session basis by running this command: + +``` +SET datestyle to "ISO, MDY"; +``` +You can then complete the examples. The change will persist until you restart pgAdmin. + ### Chapter 15: Analyzing Spatial Data with PostGIS