Eine Tour durch PostgreSQL-Contrib
|
|
|
- Jasmin Cameron
- 10 years ago
- Views:
Transcription
1 Eine Tour durch PostgreSQL-Contrib Extend Your Database Server Christoph Berg credativ GmbH, Mönchengladbach 7. November 2013 Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
2 CREATE EXTENSION postgres=# CREATE EXTENSION <tab><tab> fuzzystrmatch pg_trgm plsh cube autoinc chkpass lo btree_gin btree_gist test_parser plpython3u adminpack postgis_topology prefix tablefunc uuid-ossp plperl earthdistance unaccent plpythonu postgres_fdw hstore pgstattuple insert_username pgrowlocks tcn isn pg_stat_statements pg_buffercache xml2 postgis moddatetime plpgsql pgcrypto pltclu pltcl intarray refint citext pg_freespacemap tsearch2 ltree file_fdw seg sslinfo timetravel dict_int dblink plperlu pgmp plpython2u intagg pageinspect dict_xsyn Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
3 CREATE EXTENSION Neue Funktionen Datentypen Index-Methoden Procedural Languages (PL) Trigger Statistiken Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
4 CREATE EXTENSION PostgreSQL "contrib" Viele weitere im Internet (github, pgfoundry, pgxn,... ) Debian/Ubuntu: apt.postgresql.org CREATE EXTENSION seit PostgreSQL 9.1 Vorher \i /usr/share/postgresql/8.4/contrib/foobar.sql Vereinfachtes Handling, Backup Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
5 CREATE EXTENSION "uuid-ossp"; # select uuid_generate_v1(); uuid_generate_v eb92d e3-ae7a-001f29960aed Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
6 CREATE EXTENSION pg_trgm; String wird in Trigramme zerlegt cat " c", " ca", "cat", "at " Abstand zwischen Strings: <-> # select 'Oberhausen' <-> 'Essen';?column? CREATE INDEX ON test_trgm USING gist (t gist_trgm_ops); CREATE INDEX ON test_trgm USING gin (t gin_trgm_ops); "Meinten Sie...?" SELECT t, t <-> 'word' AS dist FROM suchbegriffe ORDER BY dist LIMIT 10; Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
7 CREATE EXTENSION plsh; CREATE FUNCTION ls(text) RETURNS text AS ' #!/bin/sh ls -l "$1" ' LANGUAGE plsh; SELECT ls ('/etc/passwd'); ls rw-r--r-- 1 root root 2818 Feb /etc/passwd Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
8 CREATE EXTENSION cube; Multidimensional Cubes # select '(5,7)'::cube <@ '[(3,3),(8,8)]' AS punkt_im_rech punkt_im_rechteck t GiST-Support Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
9 CREATE EXTENSION earthdistance; select earth_distance(ll_to_earth(51,6), ll_to_earth(52,10)); earth_distance Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
10 CREATE EXTENSION postgis; Größte Extension, eigenes Open Source-Projekt Geo-Datentypen, OpenGIS, ISO SQL/MM "Welche Grundstücke liegen an dieser Straße?" Raster-Daten Routenplanung Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
11 CREATE EXTENSION pg_stat_statements; Liste der ausgeführten Queries Verbessert seit PostgreSQL 9.2 # SELECT query, calls, total_time, rows, * shared_blks_hit / nullif(shared_blks_hit + shared_blks_read, 0) AS hit_percent FROM pg_stat_statements ORDER BY total_time DESC LIMIT 5; -[ RECORD 1 ] query UPDATE pgbench_branches SET bbalance = bbalance +? WHERE bid =? calls 3000 total_time rows 2836 hit_percent [ RECORD 2 ] query UPDATE pgbench_tellers SET tbalance = tbalance +? WHERE tid =?; calls 3000 total_time rows 2990 hit_percent [ RECORD 3 ] query copy pgbench_accounts from stdin calls 1 total_time rows hit_percent Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
12 CREATE EXTENSION plpythonu; plpython2u, plpython3u "untrusted": CREATE FUNCTION nur für Superuser CREATE FUNCTION pymax (a integer, b integer) RETURNS integer AS $$ if a > b: return a return b $$ LANGUAGE plpythonu; Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
13 CREATE EXTENSION adminpack; Support-Funktionen für pgadmin3 ("Server-Instrumentierung") Files lesen/schreiben postgresql.conf, pg_hba.conf, Logfiles Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
14 CREATE EXTENSION prefix; Präfix-Matching mit Index-Support SELECT * FROM prefixes WHERE '01805' ORDER BY length(prefix) DESC LIMIT 1; Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
15 CREATE EXTENSION tablefunc; normal_rand, connectby crosstab CREATE TABLE ct(id SERIAL, rowid TEXT, attribute TEXT, value TEXT); INSERT INTO ct(rowid, attribute, value) VALUES('test1','att1','val1'); INSERT INTO ct(rowid, attribute, value) VALUES('test1','att2','val2'); INSERT INTO ct(rowid, attribute, value) VALUES('test1','att3','val3'); INSERT INTO ct(rowid, attribute, value) VALUES('test1','att4','val4'); INSERT INTO ct(rowid, attribute, value) VALUES('test2','att1','val5'); INSERT INTO ct(rowid, attribute, value) VALUES('test2','att2','val6'); INSERT INTO ct(rowid, attribute, value) VALUES('test2','att3','val7'); INSERT INTO ct(rowid, attribute, value) VALUES('test2','att4','val8'); SELECT * FROM crosstab( 'select rowid, attribute, value from ct order by 1,2') AS ct(row_name text, a1 text, a2 text, a3 text, a4 text); row_name a1 a2 a3 a test1 val1 val2 val3 val4 test2 val5 val6 val7 val8 Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
16 CREATE EXTENSION plperl; Trusted, CREATE FUNCTION für alle erlaubt Keine Perl-Module erlaubt (use) create function match(text, text) returns boolean as $$ ($a, $b) return $a =~ $b; $$ language plperl; Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
17 CREATE EXTENSION postgres_fdw; create table t (t text); insert into t values ('Hallo Welt'); create server loopback foreign data wrapper postgres_fdw options (port '5432'); create user mapping for current_user server loopback ; create foreign table t2 (t text) server loopback options (table_name 't'); select * from t2; t Hallo Welt Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
18 CREATE EXTENSION dblink; Zugriff auf andere PostgreSQL-Datenbanken Älteres Interface als postgres_fdw CREATE VIEW myremote_pg_proc AS SELECT * FROM dblink('dbname=postgres', 'select proname, prosrc AS t1(proname name, prosrc text); SELECT * FROM myremote_pg_proc WHERE proname LIKE 'bytea%' Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
19 CREATE EXTENSION hstore; Perl-Style Hashes Semi-strukturierte Daten SELECT 'name => "Berg", vorname => "Christoph", firma => "credativ"'::hstore; hstore "name"=>"berg", "firma"=>"credativ", "vorname"=>"christop SELECT h->'name'; Index-Support Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
20 CREATE EXTENSION plpgsql; PL/pgSQL: SQL + prozedurale Elemente Per Default installiert CREATE OR REPLACE FUNCTION get_all_foo() RETURNS SETOF foo AS $BODY$ DECLARE r foo%rowtype; BEGIN FOR r IN SELECT * FROM foo WHERE fooid > 0 LOOP -- can do some processing here RETURN NEXT r; -- return current row of SELECT END LOOP; RETURN; END $BODY$ LANGUAGE plpgsql; SELECT * FROM get_all_foo(); Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
21 CREATE EXTENSION autoinc; # CREATE SEQUENCE next_id; # CREATE TABLE ids (id int4, idesc text); # CREATE TRIGGER ids_nextid BEFORE INSERT OR UPDATE ON ids FOR EACH ROW EXECUTE PROCEDURE autoinc (id, next_id); # INSERT INTO ids VALUES (0, 'first'); # INSERT INTO ids VALUES (null, 'second'); # INSERT INTO ids(idesc) VALUES ('third'); # SELECT * FROM ids ; id idesc first 2 second 3 third Ähnlich "serial" Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
22 CREATE EXTENSION chkpass; Speichert crypt()-passwörter Eingabe im Klartext Ausgabe verschlüsselt als Hash Vergleicht als Hash test=# create table test (p chkpass); test=# insert into test values ('hello'); test=# select * from test where p = 'hello'; p :fn6ig6x8mv22m Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
23 CREATE EXTENSION fuzzystrmatch; Soundex: Ähnliche Namen, US-Zensus 1880 # CREATE TABLE s (nm text); # INSERT INTO s VALUES ('john'), ('joan'), ('wobbly'), ('jack'); # SELECT * FROM s WHERE difference(s.nm, 'john') > 2; nm john joan jack Levenshtein: Abstand in Zahl der Änderungen am String # SELECT levenshtein('gumbo', 'GAMBOL'); levenshtein metaphone: Ähnlich Soundex Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
24 CREATE EXTENSION btree_gin; CREATE TABLE test (a int4); CREATE INDEX testidx ON test USING gin (a); Nützlich für mehrspaltige GIN-Indexe Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
25 CREATE EXTENSION btree_gist; Analog btree_gin Support für <-> (Abstand) Support für Exclusion Constraints mit <> => CREATE TABLE zoo ( cage INTEGER, animal TEXT, EXCLUDE USING gist (cage WITH =, animal WITH <>) ); => INSERT INTO zoo VALUES(123, 'zebra'); => INSERT INTO zoo VALUES(123, 'zebra'); => INSERT INTO zoo VALUES(123, 'lion'); ERROR: conflicting key value violates exclusion constraint "zoo_cage_animal_excl" DETAIL: Key (cage, animal)=(123, lion) conflicts with existing key (cage, animal)=(123, zebra). => INSERT INTO zoo VALUES(124, 'lion'); Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
26 CREATE EXTENSION pgstattuple; Liest ganze Tabelle oder Index SELECT * FROM pgstattuple('pg_catalog.pg_proc'); -[ RECORD 1 ] table_len tuple_count 1470 tuple_len tuple_percent dead_tuple_count 11 dead_tuple_len 3157 dead_tuple_percent 0.69 free_space 8932 free_percent 1.95 SELECT * FROM pgstatindex('pg_cast_oid_index'); Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
27 CREATE EXTENSION unaccent; # SELECT unaccent('hôtel'); unaccent Hotel Integration mit tsearch Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
28 CREATE EXTENSION lo; Mangement von BLOB-Referenzen über Trigger CREATE TABLE image (title text, raster lo); CREATE TRIGGER t_raster BEFORE UPDATE OR DELETE ON image FOR EACH ROW EXECUTE PROCEDURE lo_manage(raster); Nützlich für JDBC- und ODBC-Anwendungen Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
29 CREATE EXTENSION insert_username; CREATE TABLE username_test ( name text, username text not null ); CREATE TRIGGER insert_usernames BEFORE INSERT OR UPDATE ON username_test FOR EACH ROW EXECUTE PROCEDURE insert_username (username); INSERT INTO username_test VALUES ('foobar'); SELECT * FROM username_test; name username foobar cbe Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
30 CREATE EXTENSION isn; # SELECT ean13(' '); ean # SELECT isbn(' '); isbn X # SELECT isbn13(' '); isbn # SELECT issn(' '); issn Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
31 CREATE EXTENSION citext; Case-insensitive text type Transparente Konvertierung groß/klein CREATE TABLE users ( nick CITEXT PRIMARY KEY, pass TEXT NOT NULL ); INSERT INTO users VALUES ('larry', md5(random()::text)); SELECT * FROM users WHERE nick = 'Larry'; Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
32 CREATE EXTENSION pg_buffercache; # SELECT c.relname, count(*) AS buffers FROM pg_buffercache b INNER JOIN pg_class c ON b.relfilenode = pg_relation_filenode(c.oid) AND b.reldatabase IN (0, (SELECT oid FROM pg_database WHERE datname = current_database())) GROUP BY c.relname ORDER BY 2 DESC LIMIT 10; relname buffers ranges 100 prefixes 91 pg_depend 84 pg_proc 80 idx_prefix 72 pg_depend_reference_index 49 pg_attribute 49 pg_depend_depender_index 37 pg_proc_proname_args_nsp_index 35 prefixes_pkey 35 Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
33 CREATE EXTENSION pgcrypto; Kryptographische Funktionen Hashes: md5, sha1, sha256,... (OpenSSL) hmac() crypt() OpenPGP pgp_sym_encrypt(), pgp_sym_decrypt() pgp_pub_encrypt(), pgp_pub_decrypt() gen_random_bytes() Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
34 CREATE EXTENSION pgmp; GNU Multi Precision library Große Integer, Primzahlen Rationale Zahlen (Brüche) select '3/8'::mpq + '5/6'::mpq as fraction; fraction /24 Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
35 CREATE EXTENSION tcn; Triggered Change Notification LISTEN/NOTIFY create trigger tcndata_tcn_trigger after insert or update or delete on tcndata for each row execute procedure triggered_change_notification(); listen tcn; Asynchronous notification "tcn" with payload ""tcndata",i,"a"='2',"b"=' '" received from server process with PID Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
36 CREATE EXTENSION pgrowlocks; # select * from pgrowlocks('tbl'); locked_row locker multi xids modes pids (0,1) f {18227} {"For Update"} {0} Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
37 CREATE EXTENSION pg_freespacemap; Freier Platz in Tabellenblöcken # SELECT * FROM pg_freespace('foo'); blkno avail Selten notwendig Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
38 CREATE EXTENSION ltree; This module implements a data type ltree for representing labels of data stored in a hierarchical tree-like structure. Extensive facilities for searching through label trees are provided. ltreetest=> SELECT path FROM test WHERE path <@ 'Top.Science'; path Top.Science Top.Science.Astronomy Top.Science.Astronomy.Astrophysics Top.Science.Astronomy.Cosmology Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
39 CREATE EXTENSION pageinspect; Block-level debugging get_raw_page(), page_header(), heap_page_items() bt_metap(), bt_page_stats(), bt_page_items() fsm_page_contents Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
40 CREATE EXTENSION file_fdw; The file_fdw module provides the foreign-data wrapper file_fdw, which can be used to access data files in the server s file system. Data files must be in a format that can be read by COPY FROM; see COPY for details. Access to such data files is currently read-only. Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
41 CREATE EXTENSION pltcl; pltcl, pltclu Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
42 CREATE EXTENSION seg; This module implements a data type seg for representing line segments, or floating point intervals. seg can represent uncertainty in the interval endpoints, making it especially useful for representing laboratory measurements. Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
43 CREATE EXTENSION sslinfo; The sslinfo module provides information about the SSL certificate that the current client provided when connecting to PostgreSQL. The module is useless (most functions will return NULL) if the current connection does not use SSL. Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
44 CREATE EXTENSION timetravel; Long ago, PostgreSQL had a built-in time travel feature that kept the insert and delete times for each tuple. This can be emulated using these functions. To use these functions, you must add to a table two columns of abstime type to store the date when a tuple was inserted (start_date) and changed/deleted (stop_date): CREATE TABLE mytab ( start_date abstime, stop_date abstime ); Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
45 CREATE EXTENSION dict_int; dict_int is an example of an add-on dictionary template for full-text search. The motivation for this example dictionary is to control the indexing of integers (signed and unsigned), allowing such numbers to be indexed while preventing excessive growth in the number of unique words, which greatly affects the performance of searching. Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
46 CREATE EXTENSION intarray; The intarray module provides a number of useful functions and operators for manipulating null-free arrays of integers. There is also support for indexed searches using some of the operators. Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
47 CREATE EXTENSION intagg; The intagg module provides an integer aggregator and an enumerator. intagg is now obsolete, because there are built-in functions that provide a superset of its capabilities. However, the module is still provided as a compatibility wrapper around the built-in functions. Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
48 CREATE EXTENSION dict_xsyn; dict_xsyn (Extended Synonym Dictionary) is an example of an add-on dictionary template for full-text search. This dictionary type replaces words with groups of their synonyms, and so makes it possible to search for a word using any of its synonyms. Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
49 CREATE EXTENSION moddatetime; moddatetime() is a trigger that stores the current time into a timestamp field. This can be useful for tracking the last modification time of a particular row within a table. Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
50 CREATE EXTENSION refint; Functions for Implementing Referential Integrity Christoph Berg Eine Tour durch PostgreSQL-Contrib 7. November / 51
51 CREATE EXTENSION test_parser; test_parser is an example of a custom parser for full-text search. It doesn t do anything especially useful, but can serve as a starting point for developing your own parser. Christoph Berg <[email protected]> Eine Tour durch PostgreSQL-Contrib 7. November / 51
PostgreSQL extension s development
May 20, 2011 Content Agenda 1 Before 9.1 and CREATE EXTENSION 2 Scope Specs Implementation details... 3 PGXS and the control file Extensions Upgrades Extensions and packaging 4 Sponsoring Any question?
PostgreSQL as an integrated data analysis platform
PostgreSQL as an integrated data analysis platform FOSS4G.be 2015 Oslandia Team Licence GNU FDL SARL / 29. octobre 2015 / www.oslandia.com / [email protected] Let 's try to Think Different (about PostgreSQL)
PostgreSQL Functions By Example
Postgre [email protected] credativ Group January 20, 2012 What are Functions? Introduction Uses Varieties Languages Full fledged SQL objects Many other database objects are implemented with them
Bruce Momjian June, 2008. Postgres Plus Technical Overview
Bruce Momjian June, 2008 Postgres Plus Technical Overview PostgreSQL Heritage Independent & Thriving Development Community 10 committers and ~200 reviewers 1,500 contributors and 10,000+ members 2,000,000+
Programming the SQL Way with Common Table Expressions
Programming the SQL Way with Common Table Expressions BRUCE MOMJIAN Common Table Expressions (CTEs allow queries to be more imperative, allowing looping and processing hierarchical structures that are
database abstraction layer database abstraction layers in PHP Lukas Smith BackendMedia [email protected]
Lukas Smith database abstraction layers in PHP BackendMedia 1 Overview Introduction Motivation PDO extension PEAR::MDB2 Client API SQL syntax SQL concepts Result sets Error handling High level features
Programming Database lectures for mathema
Programming Database lectures for mathematics students April 25, 2015 Functions Functions are defined in Postgres with CREATE FUNCTION name(parameter type,...) RETURNS result-type AS $$ function-body $$
PGCon 2011. PostgreSQL Performance Pitfalls
PGCon 2011 PostgreSQL Performance Pitfalls Too much information PostgreSQL has a FAQ, manual, other books, a wiki, and mailing list archives RTFM? The 9.0 manual is 2435 pages You didn't do that PostgreSQL
Instant SQL Programming
Instant SQL Programming Joe Celko Wrox Press Ltd. INSTANT Table of Contents Introduction 1 What Can SQL Do for Me? 2 Who Should Use This Book? 2 How To Use This Book 3 What You Should Know 3 Conventions
How To Create A Table In Sql 2.5.2.2 (Ahem)
Database Systems Unit 5 Database Implementation: SQL Data Definition Language Learning Goals In this unit you will learn how to transfer a logical data model into a physical database, how to extend or
Achieving PCI Compliance with Postgres. Denish Patel Database Architect
Achieving PCI Compliance with Postgres / Denish Patel Database Architect Who am I? Lead Database Architect @ OmniTI Email: [email protected] ; Twitter: @DenishPatel http://www.pateldenish.com Providing
DEVELOPING AND IMPLEMENTING MULTIUSER, FULLY RELATIONAL GIS DATABASE FOR DESKTOP SYSTEMS USING OPEN SOURCE TECHNOLOGIES
Geographia Technica, Vol. 10, Issue 2, 2015, pp 59 to 65 DEVELOPING AND IMPLEMENTING MULTIUSER, FULLY RELATIONAL GIS DATABASE FOR DESKTOP SYSTEMS USING OPEN SOURCE TECHNOLOGIES Zsolt MAGYARI-SÁSKA 1 ABSTRACT:
Monitoring PostgreSQL database with Verax NMS
Monitoring PostgreSQL database with Verax NMS Table of contents Abstract... 3 1. Adding PostgreSQL database to device inventory... 4 2. Adding sensors for PostgreSQL database... 7 3. Adding performance
The Advantages of PostgreSQL
The Advantages of PostgreSQL BRUCE MOMJIAN POSTGRESQL offers companies many advantages that can help their businesses thrive. Creative Commons Attribution License http://momjian.us/presentations Last updated:
Managing rights in PostgreSQL
Table des matières Managing rights in PostgreSQL...3 1 The author...3 2 Introduction...4 3 Users, groups and roles...4 3.1 Users and groups...5 3.2 Modifying a role...5 4 Special roles and role attributes...5
Why Zalando trusts in PostgreSQL
Why Zalando trusts in PostgreSQL A developer s view on using the most advanced open-source database Henning Jacobs - Technical Lead Platform/Software Zalando GmbH Valentine Gogichashvili - Technical Lead
A Brief Introduction to MySQL
A Brief Introduction to MySQL by Derek Schuurman Introduction to Databases A database is a structured collection of logically related data. One common type of database is the relational database, a term
DIPLOMA IN WEBDEVELOPMENT
DIPLOMA IN WEBDEVELOPMENT Prerequisite skills Basic programming knowledge on C Language or Core Java is must. # Module 1 Basics and introduction to HTML Basic HTML training. Different HTML elements, tags
How To Use Postgresql With Foreign Data In A Foreign Server In A Multi Threaded Database (Postgres)
PostgreSQL at the centre of your dataverse! PGBR 2011! Presented by Dave Page! 3 rd November 2011! EnterpriseDB, Postgres Plus and Dynatune are trademarks of EnterpriseDB Corporation. Other names may be
Database Management System Choices. Introduction To Database Systems CSE 373 Spring 2013
Database Management System Choices Introduction To Database Systems CSE 373 Spring 2013 Outline Introduction PostgreSQL MySQL Microsoft SQL Server Choosing A DBMS NoSQL Introduction There a lot of options
Weaving Stored Procedures into Java at Zalando
Weaving Stored Procedures into Java at Zalando Jan Mussler JUG DO April 2013 Outline Introduction Stored procedure wrapper Problems before the wrapper How it works How to use it More features including
Erste Schritte mit mysql. Der Umgang mit einer relationalen Datenbank
Erste Schritte mit mysql Der Umgang mit einer relationalen Datenbank Relationale Datenbanken Prinzip: Daten sind in Tabellen gespeichert Tabellen können verknüpft sein alter Name: RDBMS - Relational Database
MongoDB. An introduction and performance analysis. Seminar Thesis
MongoDB An introduction and performance analysis Seminar Thesis Master of Science in Engineering Major Software and Systems HSR Hochschule für Technik Rapperswil www.hsr.ch/mse Advisor: Author: Prof. Stefan
Sharding with postgres_fdw
Sharding with postgres_fdw Postgres Open 2013 Chicago Stephen Frost [email protected] Resonate, Inc. Digital Media PostgreSQL Hadoop [email protected] http://www.resonateinsights.com Stephen
Neues in SQL Server 2016. Evaluierung SQL Server 2016 CTP 3 für den BI Stack. Sascha Götz Inovex GmbH
Neues in SQL Server 2016 Evaluierung SQL Server 2016 CTP 3 für den BI Stack Sascha Götz Inovex GmbH SQL Server BI Roadmap 2016+ 2 Relationale Engine MSSQL 2016 CTP3 3 SQL Server 2016 CTP 3 Relationale
Services. Relational. Databases & JDBC. Today. Relational. Databases SQL JDBC. Next Time. Services. Relational. Databases & JDBC. Today.
& & 1 & 2 Lecture #7 2008 3 Terminology Structure & & Database server software referred to as Database Management Systems (DBMS) Database schemas describe database structure Data ordered in tables, rows
PostgreSQL 9.0 Streaming Replication under the hood Heikki Linnakangas
PostgreSQL 9.0 Streaming Replication under the hood Heikki Linnakangas yright 2009 EnterpriseDB Corporation. All rights Reserved. Slide: 1 Built-in
AJAX SSL- Wizard Reference
AJAX SSL- Wizard Reference Version 1.0.2+ - 04.04.2011 Preamble This document explains the AJAX based SSL- Wizard developed by CertCenter AG. The seemless integration of the SSL- Wzard into the partner
Porting from Oracle to PostgreSQL
by Paulo Merson February/2002 Porting from Oracle to If you are starting to use or you will migrate from Oracle database server, I hope this document helps. If you have Java applications and use JDBC,
One step forward true json data type. Nested hstore with arrays support. Oleg Bartunov, Teodor Sigaev Moscow University, MEPhI
One step forward true json data type. Nested hstore with arrays support Oleg Bartunov, Teodor Sigaev Moscow University, MEPhI Hstore developers Teodor Sigaev, Oleg Bartunov Sternberg Astronomical Institute
sqlite driver manual
sqlite driver manual A libdbi driver using the SQLite embedded database engine Markus Hoenicka [email protected] sqlite driver manual: A libdbi driver using the SQLite embedded database engine
Porting Oracle Applications to PostgreSQL
Porting Oracle Applications to PostgreSQL Peter Eisentraut, credativ GmbH / credativ Ltd. PGCon 2008 Porting Oracle Applications to PostgreSQL: 1 / 80 Disclaimers This presentation was written by a PostgreSQL
Write a Foreign Data Wrapper in 15 minutes
Write a Foreign Data Wrapper in 15 minutes Table des matières Write a Foreign Data Wrapper in 15 minutes...1 1 About me...4 2 Foreign Data Wrappers?...5 3 Goals...5 4 Agenda...5 5 Part 1 - SQL/MED...6
Getting ready for PostgreSQL 9.1
Getting ready for PostgreSQL 9.1 Gabriele Bartolini http:/// License Creative Commons: Attribution-NonCommercial-ShareAlike 3.0 You are free: to Share to copy, distribute
Introduction to the Oracle DBMS
Introduction to the Oracle DBMS Kristian Torp Department of Computer Science Aalborg University www.cs.aau.dk/ torp [email protected] December 2, 2011 daisy.aau.dk Kristian Torp (Aalborg University) Introduction
Oracle Database 10g: Introduction to SQL
Oracle University Contact Us: 1.800.529.0165 Oracle Database 10g: Introduction to SQL Duration: 5 Days What you will learn This course offers students an introduction to Oracle Database 10g database technology.
SQL DATA DEFINITION: KEY CONSTRAINTS. CS121: Introduction to Relational Database Systems Fall 2015 Lecture 7
SQL DATA DEFINITION: KEY CONSTRAINTS CS121: Introduction to Relational Database Systems Fall 2015 Lecture 7 Data Definition 2 Covered most of SQL data manipulation operations Continue exploration of SQL
SQL. Short introduction
SQL Short introduction 1 Overview SQL, which stands for Structured Query Language, is used to communicate with a database. Through SQL one can create, manipulate, query and delete tables and contents.
Comparison of Open Source RDBMS
Comparison of Open Source RDBMS DRAFT WORK IN PROGRESS FEEDBACK REQUIRED Please send feedback and comments to [email protected] Selection of the Candidates As a first approach to find out which database
A PostgreSQL Security Primer
A PostgreSQL Security Primer PGDay'15 Russia St Petersburg, Russia Magnus Hagander [email protected] PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Magnus Hagander PostgreSQL
Exploring Microsoft Office Access 2007. Chapter 2: Relational Databases and Multi-Table Queries
Exploring Microsoft Office Access 2007 Chapter 2: Relational Databases and Multi-Table Queries 1 Objectives Design data Create tables Understand table relationships Share data with Excel Establish table
Developing SQL and PL/SQL with JDeveloper
Seite 1 von 23 Developing SQL and PL/SQL with JDeveloper Oracle JDeveloper 10g Preview Technologies used: SQL, PL/SQL An Oracle JDeveloper Tutorial September 2003 Content This tutorial walks through the
Integrated Monitoring for PostgreSQL
Introduction Monitoring PostgreSQL Solutions Conclusion credativ limited 2nd April 2008 Introduction Monitoring PostgreSQL Solutions Conclusion Outline 1 Introduction 2 Monitoring PostgreSQL Statistics
Facebook Twitter YouTube Google Plus Website Email
PHP MySQL COURSE WITH OOP COURSE COVERS: PHP MySQL OBJECT ORIENTED PROGRAMMING WITH PHP SYLLABUS PHP 1. Writing PHP scripts- Writing PHP scripts, learn about PHP code structure, how to write and execute
Writing a Logical Decoding Plug-In. Christophe Pettus PostgreSQL Experts, Inc. FOSDEM 2015
Writing a Logical Decoding Plug-In. Christophe Pettus PostgreSQL Experts, Inc. FOSDEM 2015 Hello! We re going to talk about logical decoding in PostgreSQL. Christophe Pettus, pleased to meet you. PostgreSQL
Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-
Oracle Objective: Oracle has many advantages and features that makes it popular and thereby makes it as the world's largest enterprise software company. Oracle is used for almost all large application
Databases 2011 The Relational Model and SQL
Databases 2011 Christian S. Jensen Computer Science, Aarhus University What is a Database? Main Entry: da ta base Pronunciation: \ˈdā-tə-ˌbās, ˈda- also ˈdä-\ Function: noun Date: circa 1962 : a usually
Database Administration with MySQL
Database Administration with MySQL Suitable For: Database administrators and system administrators who need to manage MySQL based services. Prerequisites: Practical knowledge of SQL Some knowledge of relational
Information Systems 2. 1. Modelling Information Systems I: Databases
Information Systems 2 Information Systems 2 1. Modelling Information Systems I: Databases Lars Schmidt-Thieme Information Systems and Machine Learning Lab (ISMLL) Institute for Business Economics and Information
Relational databases and SQL
Relational databases and SQL Matthew J. Graham CACR Methods of Computational Science Caltech, 29 January 2009 relational model Proposed by E. F. Codd in 1969 An attribute is an ordered pair of attribute
SQL - QUICK GUIDE. Allows users to access data in relational database management systems.
http://www.tutorialspoint.com/sql/sql-quick-guide.htm SQL - QUICK GUIDE Copyright tutorialspoint.com What is SQL? SQL is Structured Query Language, which is a computer language for storing, manipulating
The release notes provide details of enhancements and features in Cloudera ODBC Driver for Impala 2.5.30, as well as the version history.
Cloudera ODBC Driver for Impala 2.5.30 The release notes provide details of enhancements and features in Cloudera ODBC Driver for Impala 2.5.30, as well as the version history. The following are highlights
SQL Server. 2012 for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach
TRAINING & REFERENCE murach's SQL Server 2012 for developers Bryan Syverson Joel Murach Mike Murach & Associates, Inc. 4340 N. Knoll Ave. Fresno, CA 93722 www.murach.com [email protected] Expanded
types, but key declarations and constraints Similar CREATE X commands for other schema ëdrop X name" deletes the created element of beer VARCHARè20è,
Dening a Database Schema CREATE TABLE name èlist of elementsè. Principal elements are attributes and their types, but key declarations and constraints also appear. Similar CREATE X commands for other schema
PostgreSQL Past, Present, and Future. 2013 EDB All rights reserved.
PostgreSQL Past, Present, and Future 2013 EDB All rights reserved. Outline Past: A Brief History of PostgreSQL Present: New Features In PostgreSQL 9.5 Future: Features in PostgreSQL 9.6 and Beyond The
Databases and BigData
Eduardo Cunha de Almeida [email protected] Outline of the course Introduction Database Systems (E. Almeida) Distributed Hash Tables and P2P (C. Cassagnes) NewSQL (D. Kim and J. Meira) NoSQL (D. Kim)
Geodatabase Programming with SQL
DevSummit DC February 11, 2015 Washington, DC Geodatabase Programming with SQL Craig Gillgrass Assumptions Basic knowledge of SQL and relational databases Basic knowledge of the Geodatabase We ll hold
In This Lecture. SQL Data Definition SQL SQL. Notes. Non-Procedural Programming. Database Systems Lecture 5 Natasha Alechina
This Lecture Database Systems Lecture 5 Natasha Alechina The language, the relational model, and E/R diagrams CREATE TABLE Columns Primary Keys Foreign Keys For more information Connolly and Begg chapter
Physical Database Design Process. Physical Database Design Process. Major Inputs to Physical Database. Components of Physical Database Design
Physical Database Design Process Physical Database Design Process The last stage of the database design process. A process of mapping the logical database structure developed in previous stages into internal
Managing Objects with Data Dictionary Views. Copyright 2006, Oracle. All rights reserved.
Managing Objects with Data Dictionary Views Objectives After completing this lesson, you should be able to do the following: Use the data dictionary views to research data on your objects Query various
Pre-authentication XXE vulnerability in the Services Drupal module
Pre-authentication XXE vulnerability in the Services Drupal module Security advisory 24/04/2015 Renaud Dubourguais www.synacktiv.com 14 rue Mademoiselle 75015 Paris 1. Vulnerability description 1.1. The
4 Logical Design : RDM Schema Definition with SQL / DDL
4 Logical Design : RDM Schema Definition with SQL / DDL 4.1 SQL history and standards 4.2 SQL/DDL first steps 4.2.1 Basis Schema Definition using SQL / DDL 4.2.2 SQL Data types, domains, user defined types
CSE 530A Database Management Systems. Introduction. Washington University Fall 2013
CSE 530A Database Management Systems Introduction Washington University Fall 2013 Overview Time: Mon/Wed 7:00-8:30 PM Location: Crow 206 Instructor: Michael Plezbert TA: Gene Lee Websites: http://classes.engineering.wustl.edu/cse530/
IT2305 Database Systems I (Compulsory)
Database Systems I (Compulsory) INTRODUCTION This is one of the 4 modules designed for Semester 2 of Bachelor of Information Technology Degree program. CREDITS: 04 LEARNING OUTCOMES On completion of this
Java (12 Weeks) Introduction to Java Programming Language
Java (12 Weeks) Topic Lecture No. Introduction to Java Programming Language 1 An Introduction to Java o Java as a Programming Platform, The Java "White Paper" Buzzwords, Java and the Internet, A Short
SQL Databases Course. by Applied Technology Research Center. This course provides training for MySQL, Oracle, SQL Server and PostgreSQL databases.
SQL Databases Course by Applied Technology Research Center. 23 September 2015 This course provides training for MySQL, Oracle, SQL Server and PostgreSQL databases. Oracle Topics This Oracle Database: SQL
Database Replication with MySQL and PostgreSQL
Database Replication with MySQL and PostgreSQL Fabian Mauchle Software and Systems University of Applied Sciences Rapperswil, Switzerland www.hsr.ch/mse Abstract Databases are used very often in business
Certified PHP/MySQL Web Developer Course
Course Duration : 3 Months (120 Hours) Day 1 Introduction to PHP 1.PHP web architecture 2.PHP wamp server installation 3.First PHP program 4.HTML with php 5.Comments and PHP manual usage Day 2 Variables,
QAD BPM Release Notes
September 2014 The release notes include information about the latest QAD BPM fixes and changes. Review this document before proceeding with any phase of a QAD BPM implementation. These release notes are
Getting started with PostgreSQL
Getting started with PostgreSQL Gavin Sherry [email protected] Alcove Systems Engineering January 16, 2007 Gavin Sherry (Alcove) Getting started with PostgreSQL January 16, 2007 1 / 25 Outline 1 SELECT
LEARNING AGREEMENT FOR STUDIES
LEARNING AGREEMENT FOR STUDIES The Student Last name (s) First name (s) Date of birth Nationality 1 Sex [M/F] Academic year 20../20.. Study cycle EQF level 6 Subject area, Code Phone E-mail 0421 The Sending
Database Migration from MySQL to RDM Server
MIGRATION GUIDE Database Migration from MySQL to RDM Server A Birdstep Technology, Inc. Raima Embedded Database Division Migration Guide Published: May, 2009 Author: Daigoro F. Toyama Senior Software Engineer
MySQL for Beginners Ed 3
Oracle University Contact Us: 1.800.529.0165 MySQL for Beginners Ed 3 Duration: 4 Days What you will learn The MySQL for Beginners course helps you learn about the world's most popular open source database.
DDL is short name of Data Definition Language, which deals with database schemas and descriptions, of how the data should reside in the database.
Snippets Datenmanagement Version: 1.1.0 Study: 2. Semester, Bachelor in Business and Computer Science School: Hochschule Luzern - Wirtschaft Author: Janik von Rotz (http://janikvonrotz.ch) Source: https://gist.github.com/janikvonrotz/6e27788f662fcdbba3fb
Course -Oracle 10g SQL (Exam Code IZ0-047) Session number Module Topics 1 Retrieving Data Using the SQL SELECT Statement
Course -Oracle 10g SQL (Exam Code IZ0-047) Session number Module Topics 1 Retrieving Data Using the SQL SELECT Statement List the capabilities of SQL SELECT statements Execute a basic SELECT statement
Financial Data Access with SQL, Excel & VBA
Computational Finance and Risk Management Financial Data Access with SQL, Excel & VBA Guy Yollin Instructor, Applied Mathematics University of Washington Guy Yollin (Copyright 2012) Data Access with SQL,
Getting ready for PostgreSQL 9.1
Getting ready for PostgreSQL 9.1 Gabriele Bartolini http:/// License Creative Commons: Attribution-NonCommercial-ShareAlike 3.0 You are free: to Share to copy, distribute
INSTALLING, CONFIGURING, AND DEVELOPING WITH XAMPP
INSTALLING, CONFIGURING, AND DEVELOPING WITH XAMPP by Dalibor D. Dvorski, March 2007 Skills Canada Ontario DISCLAIMER: A lot of care has been taken in the accuracy of information provided in this article,
Database Design Patterns. Winter 2006-2007 Lecture 24
Database Design Patterns Winter 2006-2007 Lecture 24 Trees and Hierarchies Many schemas need to represent trees or hierarchies of some sort Common way of representing trees: An adjacency list model Each
1. INTRODUCTION TO RDBMS
Oracle For Beginners Page: 1 1. INTRODUCTION TO RDBMS What is DBMS? Data Models Relational database management system (RDBMS) Relational Algebra Structured query language (SQL) What Is DBMS? Data is one
BCA. Database Management System
BCA IV Sem Database Management System Multiple choice questions 1. A Database Management System (DBMS) is A. Collection of interrelated data B. Collection of programs to access data C. Collection of data
MySQL Cluster: HA als StorageEngine
MySQL Cluster: HA als StorageEngine Erkan Yanar linsenraum.de 25. April 2012 Erkan Yanar (linsenraum.de) MySQL Cluster: HA als StorageEngine 25. April 2012 1 / 34 What About Hochverfügbarkeit mit MySQL
The Guru's Guide to Transact-SQL
The Guru's Guide to Transact-SQL Ken Henderson HLuHB Darmstadt TT 15169877 ADDISON-WESLEY Boston San Francisco New York Toronto Montreal London Munich Paris Madrid Capetown Sydney Tokyo Singapore Mexico
MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC
MyOra 3.0 SQL Tool for Oracle User Guide Jayam Systems, LLC Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL
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
HOW INTERSYSTEMS TECHNOLOGY ENABLES BUSINESS INTELLIGENCE SOLUTIONS
HOW INTERSYSTEMS TECHNOLOGY ENABLES BUSINESS INTELLIGENCE SOLUTIONS A white paper by: Dr. Mark Massias Senior Sales Engineer InterSystems Corporation HOW INTERSYSTEMS TECHNOLOGY ENABLES BUSINESS INTELLIGENCE
SQL 2014 CTP1. Hekaton & CSI Version 2 unter der Lupe. Sascha Götz Karlsruhe, 03. Dezember 2013
Hekaton & CSI Version 2 unter der Lupe Sascha Götz Karlsruhe, 03. Dezember 2013 Most of today s database managers are built on the assumption that data lives on a disk, with little bits of data at a time
Postgres Plus xdb Replication Server with Multi-Master User s Guide
Postgres Plus xdb Replication Server with Multi-Master User s Guide Postgres Plus xdb Replication Server with Multi-Master build 57 August 22, 2012 , Version 5.0 by EnterpriseDB Corporation Copyright 2012
Explaining the Postgres Query Optimizer
Explaining the Postgres Query Optimizer BRUCE MOMJIN The optimizer is the "brain" of the database, interpreting SQL queries and determining the fastest method of execution. This talk uses the EXPLIN command
Version of this tutorial: 1.06a (this tutorial will going to evolve with versions of NWNX4)
Version of this tutorial: 1.06a (this tutorial will going to evolve with versions of NWNX4) The purpose of this document is to help a beginner to install all the elements necessary to use NWNX4. Throughout
windream Failover Cluster Installation
windream windream Failover Cluster Installation windream GmbH, Bochum Copyright 2006-2011 by windream GmbH Wasserstr.219 44799 Bochum Stand: 06/11 1.0.0.3 Alle Rechte vorbehalten. Kein Teil dieser Beschreibung
Relational Database: Additional Operations on Relations; SQL
Relational Database: Additional Operations on Relations; SQL Greg Plaxton Theory in Programming Practice, Fall 2005 Department of Computer Science University of Texas at Austin Overview The course packet
ORACLE 9I / 10G / 11G / PL/SQL COURSE CONTENT
ORACLE 9I / 10G / 11G / PL/SQL COURSE CONTENT INTRODUCTION: Course Objectives I-2 About PL/SQL I-3 PL/SQL Environment I-4 Benefits of PL/SQL I-5 Benefits of Subprograms I-10 Invoking Stored Procedures
MOC 20461 QUERYING MICROSOFT SQL SERVER
ONE STEP AHEAD. MOC 20461 QUERYING MICROSOFT SQL SERVER Length: 5 days Level: 300 Technology: Microsoft SQL Server Delivery Method: Instructor-led (classroom) COURSE OUTLINE Module 1: Introduction to Microsoft
LearnFromGuru Polish your knowledge
SQL SERVER 2008 R2 /2012 (TSQL/SSIS/ SSRS/ SSAS BI Developer TRAINING) Module: I T-SQL Programming and Database Design An Overview of SQL Server 2008 R2 / 2012 Available Features and Tools New Capabilities
Monitoring Agent for PostgreSQL 1.0.0 Fix Pack 10. Reference IBM
Monitoring Agent for PostgreSQL 1.0.0 Fix Pack 10 Reference IBM Monitoring Agent for PostgreSQL 1.0.0 Fix Pack 10 Reference IBM Note Before using this information and the product it supports, read the
