Administering your PostgreSQL Geodatabase

58
Administering your PostgreSQL Geodatabase Jim Gough and Jim McAbee [email protected] [email protected]

description

Administering your PostgreSQL Geodatabase. Jim Gough and Jim McAbee [email protected] [email protected]. Agenda. Workshop will be structured in 2 parts Part 1: Scenario – Using Postgres for your Enterprise Geodatabase and how to get started. Part 2: Advanced Topics, Performance and Tips. - PowerPoint PPT Presentation

Transcript of Administering your PostgreSQL Geodatabase

Page 1: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Administering your PostgreSQL GeodatabaseJim Gough and Jim McAbee

[email protected]

[email protected]

Page 2: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• Workshop will be structured in 2 parts

• Part 1: Scenario – Using Postgres for your Enterprise Geodatabase and how to get started.

• Part 2: Advanced Topics, Performance and Tips

Agenda

Administering your PostgreSQL Geodatabase

Page 3: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• What is Postgres?

• What version is supported with my ArcGIS technology?

• Getting Started- Configuring Postgres

- Connecting to Postgres

- Creating Users and Roles

- Administrative Tools

- Creating or Enabling Enterprise Geodatabase

- Spatial Types

- Backup and Recovery

Postgres and how to get Started

Type Presentation Title Here

Page 4: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• Introduction to PostgreSQL

- http://www.postgresql.org/

- Open Source Enterprise level RDBMS

- Free, distributed with bsd license

- Supported by an active online development community

• Learn more:

- planet.postgresql.org,

- PGCON: http://www.pgcon.org/2012/

PostgreSQLA Free Open Source Option

Administering your PostgreSQL Geodatabase

Page 5: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• PostgreSQL.org and Customer Care Portal: customers.esri.com- PostgreSQL Installation

- PostgreSQL Client Libraries

- ArcSDE Installation – ESRI Customer Care Portal only

- st_geometry library

- In all ArcGIS clients

Where to get Software?

Administering your PostgreSQL Geodatabase

Page 6: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Requirements @ 10.2.x : PostgreSQL Versions and Supported OStested and certified: verify at support.esri.com

• 64-bit DBMS and OS only (10.1 and newer)

• Support PostGIS versions – 1.5.1 & 2.0

• Windows Server 2003 and 2003R2 no longer supported at 10.2.2

10.3

10.2.2, 10.2.1

10.2.2, 10.2.1, 10.2.0

10.2.1, 10.2.0, 10.1

10.0

Page 7: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Configuring PostgreSQL

• PostgreSQL initialization parameters

• Enabling Connections to PostgreSQL- More advanced topics discussed later in advanced topics section

• PostgreSQL client libraries for ArcGIS

• ArcGIS Spatial Type libraries for PostgreSQL

Type Presentation Title Here

Page 8: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• postgresql.conf- most defaults ok, testing and monitoring should be done

• Memory- #shared_buffers=32MB …

- Windows – best 64MB to 512MB, little benefit to set higher, use OS cache

- Linux – 25% of Physical Memory to start andas possible (no. of instances)

• Query Optimization- cursor_tuple_fraction - set to 1.0 vs. default of 0.1

(per 10.1 SP1 notes)

PostgreSQL Initialization Parameters

Administering your PostgreSQL Geodatabase

Page 9: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• Connections- #max_connections=100 (default)

- one ArcGIS connection = multiple PostgreSQL connections

- default max connections for Geodatabase (sde_server_config)

• Logging- #log_statement = 'none'

• Vacuum/ Analyze - #autovacuum = on

PostgreSQL Initialization Parameters

Administering your PostgreSQL Geodatabase

Page 10: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• PostgreSQL configuration file for connections - Depending on your network , entries for both types of

addresses may be needed

• IPv4 and IPv6 Addresses

Enabling connections to PostgreSQL: pg_hba. conf

Administering your PostgreSQL Geodatabase

Page 11: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• Copy the PostgreSQL client libraries into Desktop\bin (32-bit) or Server\bin (64-bit).

• Available at Customer Care Portal or PostgreSQL site.

• Linux specific (for ArcGIS Server) notes:- setup environment variables

- /home/ags/arcgis/server/usr

- Init_user_param.sh

- PostgreSQL Section:

• Copy the PostgreSQL client libraries into Desktop\bin (32-bit) or Server\bin (64-bit).

• Available at Customer Care Portal or PostgreSQL site.

• Linux specific (for ArcGIS Server) notes:- setup environment variables

- /home/ags/arcgis/server/usr

- Init_user_param.sh

- PostgreSQL Section:

Configuring PostgreSQL Client Libraries for ArcGIS

Administering your PostgreSQL Geodatabase

# For Direct Connect with PostgreSQL # export PGHOME=/opt/PostgreSQL/9.0 export PATH=$PGHOME/bin:$PATH export LD_LIBRARY_PATH=$PGHOME/lib:$LD_LIBRARY_PATH

Page 12: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• Copy st_geometry.dll (correct PostgreSQL version)

Configuring PostgreSQL for ST_Geometry spatial type

Administering your PostgreSQL Geodatabase

9.19.19.29.29.09.0

10.2

Page 13: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Geodatabase Setup and Administration

• Administration Tools

• Users, Permissions and Roles

• “Geodatabase” = Database + ArcGIS “SDE” Administrative Schema

• Creating or Enabling Geodatabase

Type Presentation Title Here

Page 14: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• PostgreSQL and ArcGIS

• ArcSDE Command Line Tools (10.2.2 last release)to be replaced by new geoprocessing (GP) tools at 10.3

Administration Tools

Administering your PostgreSQL Geodatabase

Page 15: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Administrative Tools: ArcGIS

Administering your PostgreSQL Geodatabase

Page 16: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

PostgreSQL User PermissionsLogin Roles (Users) and Group Roles (Groups)

Data EditorData Editor

Data ViewerData Viewer

Data CreatorData Creator

GDB Admin (SDE)

GDB Admin (SDE)

Usage on SDE SchemaUsage on data schemas to be viewed

Usage on SDE SchemaUsage on data schemas to be viewed

Usage on SDE SchemaUsage on data schemas to be edited

Usage on SDE SchemaUsage on data schemas to be edited

Usage on SDE SchemaAuthorization on user’s own schemaUsage on any other data schemas where access is required

Usage on SDE SchemaAuthorization on user’s own schemaUsage on any other data schemas where access is required

Authorization on SDE schemaUsage on all other user schemasAuthorization on SDE schemaUsage on all other user schemas

Administering your PostgreSQL Geodatabase

Page 17: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• SDE Administrative user, Data Owners, Editors, Viewers

• login and schema must be same name for logins that will own objects in the geodatabase.

• You cannot create a schema for a group role.

• Can rerun tool to create a schema in a second database

Database Users - Logins

ArcGIS ToolsArcGIS Tools PostgreSQL ToolsPostgreSQL Tools

Administering your PostgreSQL Geodatabase

Page 18: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• Creates a PostgreSQL Group role

• The GP tool does the same as the sql:

Create Role

CREATE ROLE gis LOGIN ENCRYPTED PASSWORD ‘gis‘ INHERIT;CREATE ROLE bunch VALID UNTIL ‘infinity’;GRANT bunch to gis;

Administering your PostgreSQL Geodatabase

Page 19: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Database vs. GeodatabaseSDE Schema

• Enterprise Geodatabase is a Postgres Databasewith an Administrative Schema

• Manages behaviors, relationships and spatial data

Administering your PostgreSQL Geodatabase

Instance

Database

SchemaSchema SchemaSchema

SchemaSchema SchemaSchema

Geodatabase

SchemaSchema

SchemaSchema SchemaSchema

SDESDE

Page 20: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Geodatabase and Administrative Schema

• Manage data through ArcGIS - Load, edit, delete, etc..

• Manage through toolthat loads data. Geodatabase Administrative

SchemaAdministrativeSchema

BehaviorsComplex FeaturesVersioningDistributed DataArchiving

DatabaseDatabase Spatial TypeTransactionsAuthorization/SecurityData ManagementBackup

ArcGIS Technology (Desktop, Server)ArcGIS Technology (Desktop, Server)

Feature Class(Data)

Page 21: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Setup and Configuration:Creating or Enabling via ArcGIS Desktop

Geodatabase

Page 22: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Geodatabase Setup and Administration

• Connecting to Geodatabase

• Spatial Types

• Backup and Recovery - Test

Type Presentation Title Here

Page 23: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Connecting to PostgreSQL

• Must specify an instance (name or IP address of server) & database.

• If instance is listening on a different port than the default (5432), include the port number in the instance. For example: gisprod4, 5435

• The database name is limited to 31 characters.

• Make sure to give the connectiona unique name to identify(non-standard port)

Administering your PostgreSQL Geodatabase

Page 24: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Connection Architectures

“Direct Connect” – recommended and only method post 10.2.2

“Application Server” – legacy connection method, 10.2.2 last release

gsrvrgsrvr

giomgrgiomgr

Geodatabase

ArcSDE Libraries Database Server

5151

ArcSDElibrariesArcSDElibraries Geodatabase

PostgreSQLClient

PostgreSQLClient 5432

Administering your PostgreSQL Geodatabase

Page 25: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• A new approach to connecting to databases:- Connect to databases as well as Geodatabases,

- Populate the ArcGIS with database client libraries

- Use a simplified connection dialog, Direct Connect default

Connections: New Approach at ArcGIS 10.1/10.2

Administering your PostgreSQL Geodatabase

sde:postgresql:localhost

prod

10.2

10.0

Page 26: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Spatial Types and Functions

• Creation of Features through SQL

• Spatial analysis through SQL

Administering your PostgreSQL Geodatabase

Page 27: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

ST_Geometry: Default Geometry Datatype

• SQL 3 specification of user-defined data types (UDTs) – ISO and OGC compliant

• Provides structured query language (SQL) access to the geodatabase and database.

• Can be used in PostgreSQL databases that contain a geodatabase and those that do not.

Administering your PostgreSQL Geodatabase

SDE.SDE_DBTUNEtable for storing keywordsand associated parameters

SDE.SDE_DBTUNEtable for storing keywordsand associated parameters

Page 28: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Geodatabase: Editing through SQL

Administering your PostgreSQL Geodatabase

Geodatabase AdministrativeSchemaAdministrativeSchema

BehaviorsComplex FeaturesLong TransactionsArchivingCross-RDBMS

DatabaseDatabase Spatial Types•ST_Geometry•PG_Geometry

SQL

ArcGIS

• Geodatabase behavior not supported through SQL

Page 29: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• PostGIS 1.5.x, 2.0 (10.1 SP1 forward)

- must use PostGIS database template to create database

- must use spatial references in public.spatial_ref_sys table

- must use PG_GEOMETRY keyword

- cannot rename tables (public.geometry_columns not modified)

• 64-bit: linux build for 1.5 and 2.0, windows build only 2.0

• ArcGIS behavior vs. PostGIS behavior (e.g. topology)

• Support Geometry, not Geography

PostGIS spatial type guidelinesRequirements and Limitations

Administering your PostgreSQL Geodatabase

Page 30: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

PostgreSQL Recovery Models

• What are needs- how often does data change?

- how long can application(s) be down?

- how fast does recovery need to be?

• Weekly or nightly backups- recovery to most recent backup – most common

• Write-Ahead Logging (WAL)- point-in-time recovery

- must test thoroughly to understand resource requirements (e.g. disk i/o)

• Other options- Standby or Failover configurations

- High Availability configurations

Administering your PostgreSQL Geodatabase

Page 31: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Backuppg_dump, pg_dumpall and other methods

• Typical Backup Methods- database – pg_dump (typical method)

- instance – pg_dumpall (backs up logins and roles)

• Some Other Backup Methods- file based (cold) backup

- VM backup

pg_dump -h localhost -p 5432 -U postgres -F c -v -f E:\backups\prod_050612.bak prodpg_dump -h localhost -p 5432 -U postgres -F c -v -f E:\backups\prod_050612.bak prod

Administering your PostgreSQL Geodatabase

Page 32: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Restorepg_restore

• Restoring – pg_restore- restore schemas in order – public, sde, data owners

- rebuild spatial indexes and gather statistics once restored

• Some Notes- many dependent objects between schemas, may need to drop cascade in

psql (sde and data owners) and recreate

- may get errors if trying to drop via pgadminIII, use psql with cascade

- drop in reverse order (data owners, then sde)

Administering your PostgreSQL Geodatabase

pg_restore -n public -p 5432 -U postgres -d db_name –c -v E:\backups\db_050712.bakpg_restore -n public -p 5432 -U postgres -d db_name –c -v E:\backups\db_050712.bak

Page 33: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |Esri UC 2014 | Technical Workshop |

James Gough

Demo:Setting up an Enterprise Geodatabase on PostgreSQL

Page 34: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• Client compatibility

• Multiple Geodatabases and PostgreSQL Instance

• Moving, Copying, Cloning

• Upgrading

Advanced Topics, Performance and Tips

Type Presentation Title Here

Page 35: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Client – Geodatabase Compatibility• 10.x forwards and backwards compatibility

Administering your PostgreSQL Geodatabase

Page 36: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Multiple Geodatabase Configuration

• Multiple Geodatabases in PostgreSQL- In same instance- If using same name in multiple

instances (e.g. clone prod to stage)

• Reasons for multiple geodatabases- Editing and publishing (web)- Production and Staging- Different application needs- Separate version management

PublishingPublishingProductionProductionAdministering your PostgreSQL Geodatabase

Page 37: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Multiple Postgres instances on same server

Administering your PostgreSQL Geodatabase

• Create InstanceE:\PostgreSQL\9.2\installer\server>initcluster.vbs postgres postgres gisdata.101 “E:\PostgreSQL\9.2" “E:\PostgreSQL\9.2\pgdata3" 5434 DEFAULTUsage: initcluster.vbs <OSUsername> <SuperUsername> <Password> <Install dir> <Data dir> <Port> <Locale>

• Create Windows ServiceE:\PostgreSQL\9.2\installer\server>startupcfg.vbs 9.2 postgres gisdata.101 “E:\PostgreSQL\9.2" “E:\PostgreSQL\9.2\pgdata3" postgresql-9.2-3Usage: startupcfg.vbs <Major.Minor version> <Username> <Password> <Install dir> <Data dir> <ServerName>

• Environment Variables available• PGDATABASE• PGHOST• PGPORT• PGUSER

Page 38: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

pg_restore, multiple instances and PostGIS

Administering your PostgreSQL Geodatabase

• Remember to enable PostGIS for each instance

• install and enable• create extension postgis;• create extension postgis_topology;

Page 39: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Moving or Copying a PostgreSQL Database

• Purposes- cloning to staging or development environments

- migrating to new VM environment or hardware

• Methods- via ArcGIS to new database – copy/paste, export/import, etc…

- pg_dump/pg_restore commands- Restore PUBLIC schema first, then SDE, then data owner schemas

- run as superuser

- run ANALYZE after to update statistics

- re-create Tablespaces

- Text version of a table cannot be larger than 8GB if output to TAR

- use –o option if object identifiers (OIDs) in user-defined data

Administering your PostgreSQL Geodatabase

Page 40: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Upgrading

• Upgrading OS? PostgreSQL? and/or Geodatabase?

• Test in a staging or test environment first

• Upgrade- With python script, gp tool or context menu in ArcGIS

• Make sure to upgrade client and st_geometry libraries

• Save configuration files – compare to new- pg_hba.conf, postgresql.conf, dbtune.sde

- don’t copy old files back in

Upgrade Process

Administering your PostgreSQL Geodatabase

Page 41: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Performance and the PlatformServices Based

• Services

• Desktops

• Editing vs Viewing/Analysis

Type Presentation Title Here

Page 42: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

DatabaseDatabase

NetworkNetwork

Performance: Understand the Stack and Isolateis the problem in the database?

Administering your PostgreSQL Geodatabase

GeodatabaseGeodatabase

Web ServerWeb Server

Application Server(s) (ArcGIS)Application Server(s) (ArcGIS)

NetworkNetwork

ApplicationsApplications

Clients (Desktop, Browser, Devices)Clients (Desktop, Browser, Devices)

Network DevicesHardware

Disk I/O

Page 43: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Geodatabase: Proper Maintenance = Performance

Administering your PostgreSQL Geodatabase

GeodatabaseGeodatabase ReconcilePostCompress

DatabaseDatabase VacuumStatistics (Analyze)

Index Maintenance

• Well designed automated maintenance process - nightly, weekly, etc..

• Well designed and maintained Version and Replica architecture

• include Backup, ETL’s, Reporting, etc…

• Review annually as new workflows are introduced and with new major releases of technology

Page 44: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Monitoring: Why monitor?

• Establish performance benchmarks to measure impacts:- upgrades and patches

- new applications or workflows

- new server resources or deployment patterns

• Assist in troubleshooting- assist in isolating a problem when one takes place

Administering your PostgreSQL Geodatabase

Page 45: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

What to monitor?

• Server Resources (cpu utilization, memory, storage i/o)- Windows and Linux tools (top, vmstat, iostat, etc..)

- Esri System Monitor

• Client Performance - various tools and logs (e.g. ArcGIS Server logs)

• PostgreSQL Performance- Performance views and Postgresql logs (located in …\Data\pg_log)

2013-05-21 13:00:43 PDT DETAIL: parameters: $1 = '13580'2013-05-21 13:00:43 PDT LOG: duration: 0.000 ms parse sde_1369166443_0_793: SELECT lineage_id FROM prod.sde.sde_state_lineages WHERE lineage_name = $1 AND lineage_id <= $2 ORDER BY lineage_id

2013-05-21 13:00:43 PDT DETAIL: parameters: $1 = '13580'2013-05-21 13:00:43 PDT LOG: duration: 0.000 ms parse sde_1369166443_0_793: SELECT lineage_id FROM prod.sde.sde_state_lineages WHERE lineage_name = $1 AND lineage_id <= $2 ORDER BY lineage_id

Administering your PostgreSQL Geodatabase

Page 46: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Monitor Resources

• Be careful of any of the following thresholds:- Processor utilization > 70%

- Memory utilization > 80% of physical

- Storage utilization > 80% of storage capacity

- Average Disk Seconds / Read > 10ms

- Average Disk Seconds / Write > 10ms

• If Cloud deployment- different locations may have different behavior

(resources/equipment)

•  

Physical and Virtual Environments

Administering your PostgreSQL Geodatabase

Page 47: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• Monitor: Connections and Locks- “kill” connections - Superuser

- Direct Connections and Application Server Connections

- check lock type

Monitor Connections and Locks in ArcGIS

Administering your PostgreSQL Geodatabase

Page 48: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• Excessive normalization- Too many indexes

- No optimizer hints, index use can not be forced

- Need not worry about the Spatial Index- GIST index used, self correcting

• Can change postgresql.conf initialization parameters

• Issue with long running ArcGIS edit sessions- The larger the number of states

- The larger the bloat in indexing belonging to the Feature Class

Performance Considerations

Administering your PostgreSQL Geodatabase

Page 49: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

PostgreSQL Geodatabase Performance

• Vacuum- removes dead tuples (rows)

- Autovacuum – on by default, can do an analyze

• Statistics (Analyze)- Statistics – table size, cardinality of joins, distribution of indexes, etc…

- pg_stat_statements (create extension pg_stat_statements)

- module provides a means for tracking execution statistics of all SQL statements executed by server.

- shared_preload_libraries = '"E:\\PostgreSQL\\9.2\\lib\\pg_stat_statements.dll"'

• Indexes (Rebuildx)

Proper Maintenance

Administering your PostgreSQL Geodatabase

Page 50: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

High-Availability (HA), Point-in-time-recovery (PITR) and Failover

• HA must be entire Geodatabase and no connections to Standby only failover

• PostgreSQL configurations use WAL (write-ahead logging)

• PostgreSQL does not provide failure detection itself, add-ons or OS configurations can.- OpenSCG’s pgHA (PITR and pgbouncer), also PITR and Slony replication

- Pgpool

• Must test with workflows

Administering your PostgreSQL Geodatabase

Page 51: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Windows AD, LDAP and Single Sign-On

http://wiki.postgresql.org/wiki/LDAP_Authentication_against_ADhttp://wiki.postgresql.org/wiki/Configuring_for_single_sign-on_using_SSPI_on_Windowshttp://support.esri.com/en/knowledgebase/techarticles/detail/38151

• Editors and Viewers

Administering your PostgreSQL Geodatabase

Page 52: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Example LDAP pg_hba.confSDE and Data Owners login and schema name must match

# IPv4 local connections:host all sde 0.0.0.0/0 md5host all gisdata 0.0.0.0/0 md5host all postgres 0.0.0.0/0 md5host all all 127.0.0.1/32 md5hosthost allall allall 0.0.0.0/0 0.0.0.0/0 ldap ldap ldapserver=vmtester.bos.esri.com ldapprefix=“TESTING\"ldapserver=vmtester.bos.esri.com ldapprefix=“TESTING\"# IPv6 local connections:# IPv6 local connections:host all all ::1/128 md5host all all ::/0 md5

PostgreSQL Authenticated UsersPostgreSQL Authenticated UsersSDE Administrative UserSDE Administrative UserData OwnerData Owner

Editors and Viewers via LDAPEditors and Viewers via LDAP

Administering your PostgreSQL Geodatabase

Page 53: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• PostgreSQL is case sensitive- It stores all of it’s object identifies in lower case

- Names of: Databases, Tables, Indexes, Column

- SDE/GDB also stores all identifiers in lower case

- User data can be in any case

- To use identifiers in upper case, they need to be quoted- PgAdminIII quotes them automatically

- ArcGIS does not look for quoted strings- Identifiers with upper case names not found

Upper Case Database Identifiers

Administering your PostgreSQL Geodatabase

“PGGDB”

Page 54: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

• PostgreSQL supports almost 100 datatypes

• ArcGIS has 8

• Some PostgreSQL datatypes are mapped to one ArcGIS datatype

• Some datatypes are not supported- Error: “invalid column datatype”

- Documented in online help

Datatype Mapping

Administering your PostgreSQL Geodatabase

Page 55: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Enterprise Geodatabase Architecture, Health Check and Performance

• Esri Enterprise Advantage Program

• Use for Training

• Use for Professional Services Guidance and Assistance- Enterprise Geodatabase Health Checks

- Architecture Reviews

- Performance and System Monitoring Review

- Jumpstarts/Launch Kits

• Why?- A support net to ensure success

- New applications and uses of technology in organization over time

- New technology and improvements over And maturing of use, new workflows introduced as organization adopts more use of technology.

Consider EEAP

Type Presentation Title Here

Page 56: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

Please fill out the session evaluation

ID: 1383

Online – www.esri.com/ucsessionsurveys

Paper – pick up and put in drop box

Thank you…

Page 57: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop |

[email protected] [email protected] [email protected]@esri.com

Thank you for attending…Thank you for attending…

Page 58: Administering your PostgreSQL Geodatabase

Esri UC 2014 | Technical Workshop | Type Presentation Title Here