pgsql: Clean up formatting.c's logic for matching constant strings.

2020-01-23 Thread Tom Lane
Clean up formatting.c's logic for matching constant strings. seq_search(), which is used to match input substrings to constants such as month and day names, had a lot of bizarre and unnecessary behaviors. It was mostly possible to avert our eyes from that before, but we don't want to duplicate th

pgsql: Clean up formatting.c's logic for matching constant strings.

2020-01-23 Thread Tom Lane
Clean up formatting.c's logic for matching constant strings. seq_search(), which is used to match input substrings to constants such as month and day names, had a lot of bizarre and unnecessary behaviors. It was mostly possible to avert our eyes from that before, but we don't want to duplicate th

pgsql: Clean up formatting.c's logic for matching constant strings.

2020-01-23 Thread Tom Lane
Clean up formatting.c's logic for matching constant strings. seq_search(), which is used to match input substrings to constants such as month and day names, had a lot of bizarre and unnecessary behaviors. It was mostly possible to avert our eyes from that before, but we don't want to duplicate th

pgsql: Clean up formatting.c's logic for matching constant strings.

2020-01-23 Thread Tom Lane
Clean up formatting.c's logic for matching constant strings. seq_search(), which is used to match input substrings to constants such as month and day names, had a lot of bizarre and unnecessary behaviors. It was mostly possible to avert our eyes from that before, but we don't want to duplicate th

pgsql: Clean up formatting.c's logic for matching constant strings.

2020-01-23 Thread Tom Lane
Clean up formatting.c's logic for matching constant strings. seq_search(), which is used to match input substrings to constants such as month and day names, had a lot of bizarre and unnecessary behaviors. It was mostly possible to avert our eyes from that before, but we don't want to duplicate th

pgsql: Clean up formatting.c's logic for matching constant strings.

2020-01-23 Thread Tom Lane
Clean up formatting.c's logic for matching constant strings. seq_search(), which is used to match input substrings to constants such as month and day names, had a lot of bizarre and unnecessary behaviors. It was mostly possible to avert our eyes from that before, but we don't want to duplicate th

pgsql: Clean up formatting.c's logic for matching constant strings.

2020-01-23 Thread Tom Lane
Clean up formatting.c's logic for matching constant strings. seq_search(), which is used to match input substrings to constants such as month and day names, had a lot of bizarre and unnecessary behaviors. It was mostly possible to avert our eyes from that before, but we don't want to duplicate th