2015-07-19 96 views
0

在heroku文档中找不到任何提及。我正在考虑创建历史记录表并希望知道。由于这里概述:https://github.com/arkhipov/temporal_tables这里http://clarkdave.net/2015/02/historical-records-with-postgresql-and-temporal-tables-and-sql-2011/Heroku目前是否支持postgresql时态表扩展?

+0

在阅读了关于时态表的一些文档后,他们与常规表没有什么不同。我不明白为什么heroku会有任何问题 – MZaragoza

+0

我投票结束这个问题作为题外话,因为它不是关于编程,但从heroku帮助工具 – Patrick

回答

0

从我所看到的,Heroku的Postgres的服务不包括特定扩展名:

SELECT * FROM pg_available_extensions WHERE name LIKE '%temporal%'; 
... 
(0 rows) 

对于后人,这里的可用扩展的完整列表(截至2015年/ 07/20):

SELECT * FROM pg_available_extensions; 

     name   | default_version | installed_version |        comment 
------------------------+-----------------+-------------------+---------------------------------------------------------------------- 
dblink     | 1.1    | [null]   | connect to other PostgreSQL databases from within a database 
tablefunc    | 1.0    | [null]   | functions that manipulate whole tables, including crosstab 
hstore     | 1.3    | [null]   | data type for storing sets of (key, value) pairs 
intarray    | 1.0    | [null]   | functions, operators, and index support for 1-D arrays of integers 
pg_trgm    | 1.1    | [null]   | text similarity measurement and index searching based on trigrams 
postgis    | 2.1.7   | [null]   | PostGIS geometry, geography, and raster spatial types and functions 
pg_stat_statements  | 1.2    | [null]   | track execution statistics of all SQL statements executed 
test_parser   | 1.0    | [null]   | example of a custom parser for full-text search 
dict_xsyn    | 1.0    | [null]   | text search dictionary template for extended synonym processing 
insert_username  | 1.0    | [null]   | functions for tracking who changed a table 
pg_freespacemap  | 1.0    | [null]   | examine the free space map (FSM) 
ltree     | 1.0    | [null]   | data type for hierarchical tree-like structures 
test_shm_mq   | 1.0    | [null]   | Test code for shared memory message queues 
adminpack    | 1.0    | [null]   | administrative functions for PostgreSQL 
plpgsql    | 1.0    | 1.0    | PL/pgSQL procedural language 
plv8     | 1.4.2   | [null]   | PL/JavaScript (v8) trusted procedural language 
dict_int    | 1.0    | [null]   | text search dictionary template for integers 
fuzzystrmatch   | 1.0    | [null]   | determine similarities and distance between strings 
tcn     | 1.0    | [null]   | Triggered change notifications 
sslinfo    | 1.0    | [null]   | information about SSL certificates 
lo      | 1.0    | [null]   | Large Object maintenance 
cube     | 1.0    | [null]   | data type for multidimensional cubes 
tsearch2    | 1.0    | [null]   | compatibility package for pre-8.3 text search functions 
timetravel    | 1.0    | [null]   | functions for implementing time travel 
redis_fdw    | 1.0    | [null]   | Foreign data wrapper for querying a Redis server 
pgstattuple   | 1.2    | [null]   | show tuple-level statistics 
earthdistance   | 1.0    | [null]   | calculate great-circle distances on the surface of the Earth 
chkpass    | 1.0    | [null]   | data type for auto-encrypted passwords 
refint     | 1.0    | [null]   | functions for implementing referential integrity (obsolete) 
moddatetime   | 1.0    | [null]   | functions for tracking last modification time 
seg     | 1.0    | [null]   | data type for representing line segments or floating-point intervals 
pageinspect   | 1.2    | [null]   | inspect the contents of database pages at a low level 
citext     | 1.0    | [null]   | data type for case-insensitive character strings 
autoinc    | 1.0    | [null]   | functions for autoincrementing fields 
pg_prewarm    | 1.0    | [null]   | prewarm relation data 
isn     | 1.0    | [null]   | data types for international product numbering standards 
postgis_topology  | 2.1.7   | [null]   | PostGIS topology spatial types and functions 
xml2     | 1.0    | [null]   | XPath querying and XSLT 
postgres_fdw   | 1.0    | [null]   | foreign-data wrapper for remote PostgreSQL servers 
postgis_tiger_geocoder | 2.1.7   | [null]   | PostGIS tiger geocoder and reverse geocoder 
unaccent    | 1.0    | [null]   | text search dictionary that removes accents 
pg_buffercache   | 1.0    | [null]   | examine the shared buffer cache 
uuid-ossp    | 1.0    | 1.0    | generate universally unique identifiers (UUIDs) 
file_fdw    | 1.0    | [null]   | foreign-data wrapper for flat file access 
pg_logfebe    | 1.0    | [null]   | log via febe framing protocol to a unix socket 
btree_gist    | 1.0    | [null]   | support for indexing common datatypes in GiST 
pgcrypto    | 1.1    | [null]   | cryptographic functions 
intagg     | 1.0    | [null]   | integer aggregator and enumerator (obsolete) 
pgrowlocks    | 1.1    | [null]   | show row-level locking information 
btree_gin    | 1.0    | [null]   | support for indexing common datatypes in GIN 
worker_spi    | 1.0    | [null]   | Sample background worker 

亚马逊RDS还doesn't appear包含它。然而,这并不令人惊讶:它是一个有趣的扩展,但不太可能经常被请求(因为该功能可以被间接复制)。

+0

的能力: “嗨那里, 恐怕不是,我们只是启用了这些扩展(也有一些只能在标准和高级版中使用)。 虽然看起来像一个非常整洁的扩展,但我会将它转发给我们的Postgres团队以供审议。感谢您花时间写入。 Regards, Steven“ – allenwlee