forked from jerrod/ey-cloud-recipes
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for Postgres 9.2 extensions
- Loading branch information
Ines Sombra
committed
Dec 10, 2012
1 parent
7e72854
commit 5f58824
Showing
38 changed files
with
329 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
cookbooks/postgresql9_extensions/definitions/auto_explain.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
define :postgresql9_autoexplain do | ||
dbname_to_use = params[:name] | ||
load_shared_library do | ||
db_name dbname_to_use | ||
|
||
load_shared_library do | ||
db_name dbname_to_use | ||
library_name "auto_explain" | ||
supported_versions %w[9.0 9.1] | ||
supported_versions %w[9.0 9.1 9.2] | ||
end | ||
|
||
include_recipe "postgresql9_extensions::ext_autoexplain" | ||
|
||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
define :postgresql9_btree_gin do | ||
dbname_to_use = params[:name] | ||
load_sql_file do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
username "postgres" | ||
extname "btree_gin" | ||
supported_versions %w[9.0 9.1] | ||
supported_versions %w[9.0 9.1 9.2] | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
define :postgresql9_btree_gist do | ||
dbname_to_use = params[:name] | ||
load_sql_file do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
username "postgres" | ||
extname "btree_gist" | ||
supported_versions %w[9.0 9.1] | ||
supported_versions %w[9.0 9.1 9.2] | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
define :postgresql9_chkpass do | ||
dbname_to_use = params[:name] | ||
load_sql_file do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
username "postgres" | ||
extname "chkpass" | ||
supported_versions %w[9.0 9.1] | ||
supported_versions %w[9.0 9.1 9.2] | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
define :postgresql9_citext do | ||
dbname_to_use = params[:name] | ||
load_sql_file do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
extname "citext" | ||
supported_versions %w[9.0 9.1] | ||
supported_versions %w[9.0 9.1 9.2] | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
define :postgresql9_cube do | ||
dbname_to_use = params[:name] | ||
load_sql_file do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
extname "cube" | ||
supported_versions %w[9.0 9.1] | ||
supported_versions %w[9.0 9.1 9.2] | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
define :postgresql9_dblink do | ||
dbname_to_use = params[:name] | ||
load_sql_file do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
extname "dblink" | ||
supported_versions %w[9.0 9.1] | ||
supported_versions %w[9.0 9.1 9.2] | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
define :postgresql9_dict_int do | ||
dbname_to_use = params[:name] | ||
load_sql_file do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
extname "dict_int" | ||
supported_versions %w[9.0 9.1] | ||
supported_versions %w[9.0 9.1 9.2] | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
define :postgresql9_dict_xsyn do | ||
dbname_to_use = params[:name] | ||
load_sql_file do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
extname "dict_xsyn" | ||
supported_versions %w[9.0 9.1] | ||
supported_versions %w[9.0 9.1 9.2] | ||
end | ||
|
||
end | ||
end |
11 changes: 5 additions & 6 deletions
11
cookbooks/postgresql9_extensions/definitions/earthdistance.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
define :postgresql9_earthdistance do | ||
dbname_to_use = params[:name] | ||
load_sql_file do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
extname "earthdistance" | ||
supported_versions %w[9.0 9.1] | ||
supported_versions %w[9.0 9.1 9.2] | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
define :postgresql9_file_fdw do | ||
dbname_to_use = params[:name] | ||
load_sql_file do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
extname "file_fdw" | ||
supported_versions %w[9.1] | ||
supported_versions %w[9.1 9.2] | ||
end | ||
|
||
end | ||
end |
11 changes: 5 additions & 6 deletions
11
cookbooks/postgresql9_extensions/definitions/fuzzystrmatch.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
define :postgresql9_fuzzystrmatch do | ||
dbname_to_use = params[:name] | ||
load_sql_file do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
extname "fuzzystrmatch" | ||
supported_versions %w[9.0 9.1] | ||
supported_versions %w[9.0 9.1 9.2] | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
define :postgresql9_hstore do | ||
dbname_to_use = params[:name] | ||
load_sql_file do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
extname "hstore" | ||
supported_versions %w[9.0 9.1] | ||
supported_versions %w[9.0 9.1 9.2] | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
define :postgresql9_intarray do | ||
dbname_to_use = params[:name] | ||
load_sql_file do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
extname "intarray" | ||
supported_versions %w[9.0 9.1] | ||
supported_versions %w[9.0 9.1 9.2] | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
define :postgresql9_isn do | ||
dbname_to_use = params[:name] | ||
load_sql_file do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
extname "isn" | ||
supported_versions %w[9.0 9.1] | ||
supported_versions %w[9.0 9.1 9.2] | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
define :postgresql9_lo do | ||
dbname_to_use = params[:name] | ||
load_sql_file do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
extname "lo" | ||
supported_versions %w[9.0 9.1] | ||
supported_versions %w[9.0 9.1 9.2] | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.