<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.postgresql.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dve</id>
	<title>PostgreSQL wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.postgresql.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dve"/>
	<link rel="alternate" type="text/html" href="https://wiki.postgresql.org/wiki/Special:Contributions/Dve"/>
	<updated>2026-06-13T14:03:57Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.postgresql.org/index.php?title=Apt&amp;diff=22862</id>
		<title>Apt</title>
		<link rel="alternate" type="text/html" href="https://wiki.postgresql.org/index.php?title=Apt&amp;diff=22862"/>
		<updated>2014-07-06T15:17:15Z</updated>

		<summary type="html">&lt;p&gt;Dve: /* Quickstart */  Get wget and root certs before using them&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==PostgreSQL packages for Debian and Ubuntu==&lt;br /&gt;
&lt;br /&gt;
The PostgreSQL Global Development Group (PGDG) maintains an APT repository of PostgreSQL packages for Debian and Ubuntu located at http://apt.postgresql.org/pub/repos/apt/.&lt;br /&gt;
We aim at building PostgreSQL server packages as well as extensions and modules packages on several Debian/Ubuntu releases for all PostgreSQL versions supported.&lt;br /&gt;
&lt;br /&gt;
Currently, we support&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Debian 6.0&#039;&#039;&#039; (squeeze), &#039;&#039;&#039;7.0&#039;&#039;&#039; (wheezy), and &#039;&#039;&#039;unstable&#039;&#039;&#039; (sid) 64/32 bit (amd64/i386)&lt;br /&gt;
* &#039;&#039;&#039;Ubuntu 10.04&#039;&#039;&#039; (lucid), &#039;&#039;&#039;12.04&#039;&#039;&#039; (precise), &#039;&#039;&#039;13.10&#039;&#039;&#039; (saucy), &#039;&#039;&#039;14.04&#039;&#039;&#039; (trusty) 64/32 bit (amd64/i386)&lt;br /&gt;
* &#039;&#039;&#039;PostgreSQL 8.4, 9.0, 9.1, 9.2, 9.3, [[Apt/FAQ#I_want_to_try_the_beta_version_of_the_next_PostgreSQL_release|9.4 beta]]&#039;&#039;&#039;&lt;br /&gt;
* Server extensions such as Slony-I, various PL languages, and datatypes&lt;br /&gt;
* Applications like pgadmin3, pgbouncer, and pgpool-II&lt;br /&gt;
&lt;br /&gt;
Packages for older PostgreSQL versions and older Debian/Ubuntu distributions will continue to stay in the repository; updates for those will be provided on an ad-hoc basis.&lt;br /&gt;
&lt;br /&gt;
==Quickstart==&lt;br /&gt;
&lt;br /&gt;
Create &#039;&#039;&#039;/etc/apt/sources.list.d/pgdg.list&#039;&#039;&#039;. The distributions are called &#039;&#039;codename&#039;&#039;&#039;&#039;&#039;-pgdg&#039;&#039;&#039;. In the example, replace &#039;&#039;wheezy&#039;&#039; with the actual distribution you are using:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;deb http://apt.postgresql.org/pub/repos/apt/&amp;lt;/nowiki&amp;gt; &#039;&#039;wheezy&#039;&#039;-pgdg main&lt;br /&gt;
&lt;br /&gt;
(You may determine the codename of your distribution by running &#039;&#039;&#039;lsb_release -c&#039;&#039;&#039;.)&lt;br /&gt;
&lt;br /&gt;
Import the repository key from &#039;&#039;&#039;https://www.postgresql.org/media/keys/ACCC4CF8.asc&#039;&#039;&#039;, update the package lists, and start installing packages:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo apt-get install wget ca-certificates&lt;br /&gt;
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get upgrade&lt;br /&gt;
 sudo apt-get install postgresql-9.3 pgadmin3&lt;br /&gt;
&lt;br /&gt;
Alternately, [http://anonscm.debian.org/loggerhead/pkg-postgresql/postgresql-common/trunk/download/head:/apt.postgresql.org.s-20130224224205-px3qyst90b3xp8zj-1/apt.postgresql.org.sh this shell script] will do the above steps for you.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.4 beta only:&#039;&#039;&#039; See [[Apt/FAQ#I_want_to_try_the_beta_version_of_the_next_PostgreSQL_release|FAQ on beta releases]]&lt;br /&gt;
&lt;br /&gt;
Have a look at the &#039;&#039;&#039;[[Apt/FAQ|FAQ]]&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This repository provides &amp;quot;postgresql&amp;quot;, &amp;quot;postgresql-contrib&amp;quot;, and &amp;quot;postgresql-client&amp;quot; &#039;&#039;meta-packages&#039;&#039; that depend on the latest postgresql-x.y, ... packages, similar to the ones present in Debian and Ubuntu. Once a new PostgreSQL version is released, these meta-packages will be updated to depend on the new version. If you rather want to stay with a particular PostgreSQL version, you should install specific packages like &amp;quot;postgresql-9.3&amp;quot; instead of &amp;quot;postgresql&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==News==&lt;br /&gt;
&lt;br /&gt;
* 2014-05-16: 9.4 beta packages available: http://www.df7cb.de/blog/2014/PostgreSQL_9.4_on_Debian.html&lt;br /&gt;
* 2014-02-18: Ubuntu saucy (13.10) added (seeded with a copy of the packages from precise)&lt;br /&gt;
* 2014-01-09: Ubuntu trusty (14.04) packages available: http://www.postgresql.org/message-id/20140109124716.GA5659@msgid.credativ.de&lt;br /&gt;
* 2013-11-22: Users concerned about the [[Nov2013ReplicationIssue]] can find 9.2.4/9.1.9/9.0.13 packages at &amp;lt;strike&amp;gt;http://apt.postgresql.org/pub/repos/apt/nov2013replicationissue/&amp;lt;/strike&amp;gt;&lt;br /&gt;
* 2013-10-10: New pgdg-keyring version extending the key expiration date. The old expiration date is 2013-10-13. Announcement: http://www.postgresql.org/message-id/20131010083115.GC24812@msgid.df7cb.de Additional blog post: http://blog.endpoint.com/2013/10/postgresql-debian-apt-repository-gnupg.html&lt;br /&gt;
* 2013-09-09: postgresql-9.3 released! (This also includes new postgresql-9.2 and postgresql-common packages.)&lt;br /&gt;
* 2013-05-12: postgresql-9.3 beta1 is now available, see [[Apt/FAQ#I_want_to_try_the_beta_version_of_the_next_PostgreSQL_release|FAQ entry]] for instructions&lt;br /&gt;
* 2013-05-11: Temporary problems with libpq5 packages: http://www.postgresql.org/message-id/20130511050816.GB8469@msgid.df7cb.de&lt;br /&gt;
* 2013-04-10: New postgresql-common version 141 introducing a dependency on the pgdg-keyring package. (If you were following the (old) installation instructions, you already have that package installed.)&lt;br /&gt;
* 2013-02-23: pgapt.debian.net is gone now. If you were using that, change to apt.postgresql.org using the instructions above.&lt;br /&gt;
* 2013-02-22: Default repository pin priority changed; see [[Apt/FAQ#I_want_only_specific_packages_from_this_repository|Apt pinning]] for details.&lt;br /&gt;
* 2012-12-18: Ubuntu Lucid (10.04) is now part of the repository; PostgreSQL and pgadmin3 packages are built.&lt;br /&gt;
* 2012-12-06: Official announcement: http://archives.postgresql.org/pgsql-announce/2012-12/msg00008.php, http://www.postgresql.org/about/news/1432/&lt;br /&gt;
* 2012-12-06: Minor releases 9.2.2, 9.1.7, 9.0.11, 8.4.15, 8.3.22 built.&lt;br /&gt;
* 2012-11-30: pgadmin3 added to the repository&lt;br /&gt;
* 2012-11-22: Ubuntu Precise (12.04) added to the repository, and built 9.2.1, 9.1.6, 9.0.10, 8.4.14, 8.3.21 for it.&lt;br /&gt;
* 2012-10-13: Repository key renewed with new expiry date.&lt;br /&gt;
* 2012-10-02: Minor releases 9.2.1, 9.1.6, 9.0.10, 8.4.14, 8.3.21 built&lt;br /&gt;
* 2012-09-15: 9.2.0 is in the repository&lt;br /&gt;
* 2012-08-22: PostgreSQL in Debian Hackathon: [http://www.df7cb.de/blog/2012/PostgreSQL_in_Debian_Hackathon.html Blog posting] and [https://github.com/dimitri/apt.postgresql.org/blob/master/hackaton-20120821.md notes]. The distribution names changed from *-pgapt to *-pgdg, please update your sources.list.&lt;br /&gt;
* 2012-06-07: 9.2 added, Lenny marked unsupported now&lt;br /&gt;
* 2012-06-07: separate components &amp;quot;9.0&amp;quot;, &amp;quot;9.2&amp;quot; etc added for libpq5/libpg-dev/lib... packages that would otherwise overwrite packages from other versions in the same suite. (Usually, using the latest stable libpq5 version will be ok for users. The packages built from other PostgreSQL versions are provided only for completeness.)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
&lt;br /&gt;
* [[Apt/FAQ|FAQ]]&lt;br /&gt;
* [https://pgdgbuild.dus.dg-i.net/repos/apt/dists/ Overview of available packages and versions] (WIP)&lt;br /&gt;
* [http://apt.postgresql.org/pub/repos/apt/dists/ Dists directory]&lt;br /&gt;
* [http://apt.postgresql.org/pub/repos/apt/pool/ Packages pool directory]&lt;br /&gt;
* [[ExtensionPackaging]] (PostgreSQL Wiki)&lt;br /&gt;
* [http://wiki.debian.org/pkg-postgresql pkg-postgresql] (Debian Wiki) &lt;br /&gt;
&lt;br /&gt;
===Contact===&lt;br /&gt;
&lt;br /&gt;
* Mailing list: pgsql-pkg-debian@postgresql.org ([http://archives.postgresql.org/pgsql-pkg-debian/ Archives])&lt;br /&gt;
* IRC channel: #postgresql-apt @ irc.freenode.net&lt;br /&gt;
* People: Christoph Berg &amp;lt;myon@debian.org&amp;gt;, Dimitri Fontaine &amp;lt;dimitri@2ndquadrant.fr&amp;gt;, Magnus Hagander &amp;lt;magnus@hagander.net&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
&lt;br /&gt;
Please report bugs on the pgsql-pkg-debian@postgresql.org mailing list, or open a bug in the [http://bugs.debian.org/ Debian BTS].&lt;br /&gt;
&lt;br /&gt;
===Documentation===&lt;br /&gt;
&lt;br /&gt;
* [[Apt/RepoDocs]]&lt;br /&gt;
* [[Apt/Jenkins]]&lt;br /&gt;
* [[Apt/NewPostgreSQLVersion]]&lt;br /&gt;
&lt;br /&gt;
==Acknowledgements==&lt;br /&gt;
&lt;br /&gt;
Work on setting up the archive was kindly supported by [http://www.credativ.de/ credativ], [http://www.2ndquadrant.com/ 2ndQuadrant], [http://redpill-linpro.com/ Redpill Linpro],&lt;br /&gt;
and funding from the European Union&#039;s Seventh Framework Programme (FP7/2007-2013) under grant agreement 258862.&lt;br /&gt;
&lt;br /&gt;
The build server is kindly hosted by [https://www.dg-i.net/ DG-i]. The archive is hosted on postgresql.org hardware.&lt;/div&gt;</summary>
		<author><name>Dve</name></author>
	</entry>
	<entry>
		<id>https://wiki.postgresql.org/index.php?title=Foreign_data_wrappers&amp;diff=18860</id>
		<title>Foreign data wrappers</title>
		<link rel="alternate" type="text/html" href="https://wiki.postgresql.org/index.php?title=Foreign_data_wrappers&amp;diff=18860"/>
		<updated>2013-01-16T14:32:25Z</updated>

		<summary type="html">&lt;p&gt;Dve: /* Foreign Data Wrappers */  add link to fdw writing docs&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Foreign Data Wrappers =&lt;br /&gt;
In 2003, a new extension called [[SQL/MED]] (&amp;quot;SQL Management of External Data&amp;quot;) was added to the SQL standard. It is a standardized way of handling access to remote objects in SQL databases. In 2011, PostgreSQL 9.1 was released with a great support of this standard.&lt;br /&gt;
&lt;br /&gt;
In a nutshell, you can now use various Foreign Data Wrappers (FDW) to connect a PostgreSQL Server to remote data stores. This page is an incomplete list of the Wrappers available right now. Another [http://pgxn.org/tag/fdw/ fdw list] can be found at [http://pgxn.org/  the PGXN website].&lt;br /&gt;
&lt;br /&gt;
The information about how to write a FDW can be found [http://www.postgresql.org/docs/9.2/static/fdwhandler.html here].&lt;br /&gt;
&lt;br /&gt;
Please keep in mind that most of these wrappers are &#039;&#039;&#039;not officially supported by the PostgreSQL Global Development Group&#039;&#039;&#039; (PGDG) and that some of these projects are &#039;&#039;&#039;still in Beta&#039;&#039;&#039; version.  Use carefully!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== SQL Databases Wrappers ==&lt;br /&gt;
&lt;br /&gt;
===oracle_fdw===&lt;br /&gt;
* [http://pgfoundry.org/projects/oracle-fdw/  source code]&lt;br /&gt;
* [http://pgxn.org/dist/oracle_fdw/  install with PGXN]&lt;br /&gt;
&lt;br /&gt;
===mysql_fdw===&lt;br /&gt;
This extension implements a Foreign Data Wrapper for MySQL. It is supported on PostgreSQL 9.1 and above.&lt;br /&gt;
* [http://github.com/dpage/mysql_fdw  source code]&lt;br /&gt;
* [http://pgxn.org/dist/mysql_fdw/  install with PGXN]&lt;br /&gt;
* [http://blogs.enterprisedb.com/2011/08/01/postgresql-9-1-meet-mysql/ example]&lt;br /&gt;
&lt;br /&gt;
===tds_fdw(not working)===&lt;br /&gt;
This project is not maintained anymore. Consider using odbc_fdw below to access Microsoft SQL Server and derived.&lt;br /&gt;
I guess you can meanwhile do the reverse, access Postgresql database within Microsoft SQL Server using Linked Servers.&lt;br /&gt;
&lt;br /&gt;
===odbc_fdw===&lt;br /&gt;
A wrapper for databases with an ODBC driver, including Oracle, DB2, Microsoft SQL Server, Sybase, Pervasive SQL, IBM Lotus Domino, MySQL, PostgreSQL and desktop database products such as FileMaker and Microsoft Access:&lt;br /&gt;
* [https://github.com/ZhengYang/odbc_fdw  source code]&lt;br /&gt;
* [http://pgxn.org/dist/odbc_fdw/  install with PGXN]&lt;br /&gt;
* [http://www.postgresonline.com/journal/archives/249-ODBC-Foreign-Data-wrapper-to-query-SQL-Server-on-Window---Part-2.html Using odbc_fdw on windows to query sql server (Postgres OnLine Journal March/April 2012)]&lt;br /&gt;
&lt;br /&gt;
===jdbc_fdw===&lt;br /&gt;
A wrapper for databases with a JDBC driver.&lt;br /&gt;
* [https://github.com/atris/JDBC_FDW source code]&lt;br /&gt;
&lt;br /&gt;
===informix_fdw (WIP)===&lt;br /&gt;
* [https://github.com/credativ/informix_fdw source code]&lt;br /&gt;
&lt;br /&gt;
== NoSQL Databases Wrappers ==&lt;br /&gt;
&lt;br /&gt;
===couchdb_fdw===&lt;br /&gt;
A wrapper for [http://couchdb.apache.org/ CouchDB]&lt;br /&gt;
* [https://github.com/ZhengYang/couchdb_fdw  source code]&lt;br /&gt;
* [http://pgxn.org/dist/couchdb_fdw/  install with PGXN]&lt;br /&gt;
&lt;br /&gt;
===mongo_fdw===&lt;br /&gt;
A wrapper for [http://www.mongodb.org/ MongoDB]&lt;br /&gt;
* [https://github.com/citusdata/mongo_fdw  source code]&lt;br /&gt;
* [http://pgxn.org/dist/mongo_fdw/  install with PGXN]&lt;br /&gt;
&lt;br /&gt;
===redis_fdw===&lt;br /&gt;
A wrapper for [http://redis.io/ Redis]&lt;br /&gt;
* [https://github.com/dpage/redis_fdw  source code]&lt;br /&gt;
* [http://pgxn.org/dist/redis_fdw/  install with PGXN]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== File Wrappers ==&lt;br /&gt;
&lt;br /&gt;
===file_fdw===&lt;br /&gt;
A CSV files wrapper.  Delivered as an official extension of PostgreSQL 9.1 &lt;br /&gt;
* [http://www.postgresql.org/docs/9.1/static/file-fdw.html  documentation]&lt;br /&gt;
* [http://www.depesz.com/index.php/2011/03/14/waiting-for-9-1-foreign-data-wrapper/  example]&lt;br /&gt;
* [http://www.postgresonline.com/journal/archives/250-File-FDW-Family-Part-1-file_fdw.html Another example] Postgres OnLine Journal May 2012&lt;br /&gt;
&lt;br /&gt;
===file_text_array_fdw===&lt;br /&gt;
Another CSV wrapper&lt;br /&gt;
* [https://github.com/adunstan/file_text_array_fdw  source code]&lt;br /&gt;
* [http://www.postgresonline.com/journal/archives/251-File-FDW-Family-Part-2-file_textarray_fdw-Foreign-Data-Wrapper.html How to use it] Postgres OnLine Journal May 2012&lt;br /&gt;
&lt;br /&gt;
===file_fixed_length_record_fdw===&lt;br /&gt;
Fixed-width flat file wrapper&lt;br /&gt;
* [https://github.com/adunstan/file_fixed_length_record_fdw  source code]&lt;br /&gt;
&lt;br /&gt;
== Others ==&lt;br /&gt;
&lt;br /&gt;
===twitter_fdw===&lt;br /&gt;
A wrapper fetching text messages from Twitter over the Internet and returning a table&lt;br /&gt;
* [https://github.com/umitanuki/twitter_fdw  source code]&lt;br /&gt;
* [http://pgxn.org/dist/twitter_fdw/  install with PGXN]&lt;br /&gt;
&lt;br /&gt;
===ldap_fdw===&lt;br /&gt;
Allows PostgreSQL to query an LDAP server and retrieve data from some pre-configured Organizational Unit&lt;br /&gt;
* [https://github.com/guedes/ldap_fdw  source code]&lt;br /&gt;
* [http://pgxn.org/dist/ldap_fdw/  install with PGXN]&lt;br /&gt;
&lt;br /&gt;
===PGStrom===&lt;br /&gt;
&lt;br /&gt;
uses GPU devices to accelarate sequential scan on massive amount of records with complex qualifiers.&lt;br /&gt;
* http://wiki.postgresql.org/wiki/PGStrom&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===s3_fdw===&lt;br /&gt;
Reads files located in Amazon S3 &lt;br /&gt;
* [https://github.com/umitanuki/s3_fdw  source code]&lt;br /&gt;
* [http://pgxn.org/dist/s3_fdw/  install with PGXN]&lt;br /&gt;
&lt;br /&gt;
===www_fdw===&lt;br /&gt;
Allows to query different web services:&lt;br /&gt;
* [https://github.com/cyga/www_fdw/  source code]&lt;br /&gt;
* [https://github.com/cyga/www_fdw/wiki  documentation/examples]&lt;br /&gt;
* [http://pgxn.org/dist/www_fdw/  install with PGXN]&lt;br /&gt;
&lt;br /&gt;
=Multicorn Foreign Data Wrappers=&lt;br /&gt;
&lt;br /&gt;
[http://multicorn.org/ Multicorn] is an extension that allows FDWs to be written in Python&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== SQL Database Wrappers ==&lt;br /&gt;
&lt;br /&gt;
===multicorn.sqlalchemyfdw===&lt;br /&gt;
This fdw can be used to access data stored in any database supported by the sqlalchemy python toolkit.&lt;br /&gt;
* [http://multicorn.org/foreign-data-wrappers/#sqlalchemy-foreign-data-wrapper documentation]&lt;br /&gt;
&lt;br /&gt;
== File Wrappers ==&lt;br /&gt;
&lt;br /&gt;
===muticorn.fsfdw===&lt;br /&gt;
This fdw can be used to access data stored in various files, in a filesystem. The files are looked up based on a pattern, and parts of the file&#039;s path are mapped to various columns, as well as the file&#039;s content itself.&lt;br /&gt;
* [http://multicorn.org/foreign-data-wrappers/#filesystem-foreign-data-wrapper documentation]&lt;br /&gt;
&lt;br /&gt;
===multicorn.csvfdw===&lt;br /&gt;
This fdw can be used to access data stored in CSV files. Each column defined in the table will be mapped, in order, against columns in the CSV file.&lt;br /&gt;
* [http://multicorn.org/foreign-data-wrappers/#csv-foreign-data-wrapper documentation]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Others ==&lt;br /&gt;
&lt;br /&gt;
===multicorn.rssfdw===&lt;br /&gt;
This fdw can be used to access items from an rss feed. &lt;br /&gt;
* [http://multicorn.org/foreign-data-wrappers/#rss-foreign-data-wrapper documentation]&lt;br /&gt;
&lt;br /&gt;
===multicorn.hivefdw===&lt;br /&gt;
Used to access Apache Hive tables.&lt;br /&gt;
* [https://github.com/youngwookim/hive-fdw-for-postgresql source code]&lt;br /&gt;
[[Category:Foreign-data wrapper|!]]&lt;/div&gt;</summary>
		<author><name>Dve</name></author>
	</entry>
</feed>