How do I add PostGIS to PostgreSQL pgAdmin?

Connect to the database using a superuser account (most often the user named postgres but in more recent versions the id of the user who installed the application.) Then issue the following SQL commands to enable PostGIS functionality. CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology; You can do this from within pgAdmin or via psql -U … Read more

It could refer to either a PL/pgSQL variable or a table column

In cases like these, where the code is simple straightforward enough, sometimes it is useful to rely on one of these special plpgsql commands at the start of the function text: #variable_conflict error #variable_conflict use_variable #variable_conflict use_column In this case, it would be used as follows: CREATE OR REPLACE FUNCTION core.date_bs_from_ad(date_in_ad date) RETURNS character varying … Read more