{"id":18998866,"url":"https://github.com/anthonydb/postgresql-intro-nicar18","last_synced_at":"2026-04-18T12:30:20.595Z","repository":{"id":142308676,"uuid":"123917002","full_name":"anthonydb/postgresql-intro-nicar18","owner":"anthonydb","description":"Materials for the PostgreSQL hands-on class at NICAR 2018 in Chicago.","archived":false,"fork":false,"pushed_at":"2018-03-10T16:43:25.000Z","size":74950,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-01T17:29:18.905Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"SQLPL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anthonydb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-05T12:35:15.000Z","updated_at":"2024-10-13T20:57:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"633bd016-f11c-4201-be14-bb464e3529bd","html_url":"https://github.com/anthonydb/postgresql-intro-nicar18","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonydb%2Fpostgresql-intro-nicar18","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonydb%2Fpostgresql-intro-nicar18/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonydb%2Fpostgresql-intro-nicar18/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonydb%2Fpostgresql-intro-nicar18/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthonydb","download_url":"https://codeload.github.com/anthonydb/postgresql-intro-nicar18/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240018686,"owners_count":19734872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T17:48:12.110Z","updated_at":"2026-04-18T12:30:20.515Z","avatar_url":"https://github.com/anthonydb.png","language":"SQLPL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostgreSQL Hands-On · NICAR 2018 Chicago\n\n## Description\nIn this session, we cover some lesser-known but incredibly useful features of PostgreSQL, a free, open-source relational database system named 2017 DBMS of the Year by DB-Engines. You’ll learn how to analyze spatial data with PostGIS, automate tasks with triggers, create functions (which can use languages such as Python and R), and discover PostgreSQL’s powerful full-text search engine.\n\nThis repo includes data, sample queries, and a [PDF of slides](https://github.com/anthonydb/postgresql-intro-nicar18/blob/master/NICAR-2018-PostgreSQL.pdf). The material is drawn from the more advanced chapters of this author's book [Practical SQL](https://www.nostarch.com/practicalsql). You can find all the code examples and data for the book [here](https://github.com/anthonydb/practical-sql).\n\n## Topics\n* A few basic queries\n* Stats functions\n* Spatial queries with PostGIS\n* Full-text search\n* Creating functions\n\n## Setup\nIf you're trying this at home, here's how to get rolling (you will need to have PostgreSQL installed, along with the PostGIS extension).\n\n* Download this repo to your computer.\n* To create tables and load data, execute the queries in the file [pg_create_import.sql](https://github.com/anthonydb/postgresql-intro-nicar18/blob/master/pg_create_import.sql) using pgAdmin, the psql command-line tool, or another GUI. Note that you will need to load a Census shapefile using a command-line utility noted at the end of the file.\n* You can then run the queries in [pg_demo_queries.sql](https://github.com/anthonydb/postgresql-intro-nicar18/blob/master/pg_demo_queries.sql)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonydb%2Fpostgresql-intro-nicar18","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonydb%2Fpostgresql-intro-nicar18","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonydb%2Fpostgresql-intro-nicar18/lists"}