Commit Graph

9 Commits

Author SHA1 Message Date
ff91d49869 Update copyright date 2024-01-26 16:45:53 +01:00
017731a9d1 Consistently use pg_catalog schema when accessing system tables
Just to make osm2pgsql a tiny bit more robust...
2023-07-14 14:16:31 +02:00
7ba523ba37 Update copyright date to 2023 2023-01-15 16:13:42 +01:00
949150219d Consolidate database capability checks
There were several places (pgsql.hpp, pgsql-capabilities.hpp,
db-check.hpp) that had code to check various capabilities, version
numbers etc. of the database we are connected to. This is now
consolidated in pgsql-capabilities.hpp. It needs to be initialized once
at program start by calling init_database_capabilities() with a database
connection object. Checking version numbers or capabilities is then much
easier, because no active database connection is needed any more.

This also adds code to get the list of supported index methods from the
database which we will need shortly. (Only works with PostgreSQL >9.5.)
2022-12-01 15:27:10 +01:00
56d5145615 Updates copyright date to 2022 in all files 2022-01-11 14:30:34 +01:00
470a6a3c8c Disable geometry validity check in flex output for point geometries
Point geometries are always valid.
2021-05-11 10:51:57 +02:00
d45018f88b Update copyright year to 2021 2021-01-28 09:38:17 +01:00
61bdfb4bc5 Add/update copyright notice on all C++ files
This adds a copyright notice to all C++ files and the README clarifying
the license. (There is no change of the license.) This also removes a
few names explicitly mentioned as copyright holders, instead refering to
the git log which has a full list of all osm2pgsql developers. (There is
also still the AUTHORS file which names the most important developers.)

The only exception is the sprompt.cpp file which was taken from
PostgreSQL and keeps its original license information (and, of course,
the files in contrib).
2020-12-19 11:25:07 +01:00
f4baf1effb Consolidate pgsql function and trigger creation in a function
Move the code creating the pgsql function and trigger checking the
geometry validity into its own function. This function can create
the pgsql function in the correct schema if one is specified.

The flex output already has schema support, so it uses this function now
to create the function in the right schema. The pgsql output doesn't
have schema support yet, so it doesn't.
2020-10-08 17:12:23 +02:00