Skip to content

fiftech/chef-psql-data

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

1.- Requerimientos

$ yum install -y gcc expat-devel git zlib-devel
$ git clone git@github.com:fiftech/chef-psql-data.git
$ cd psql-gunzip

$ make
$ sudo cp func.so `pg_config --pkglibdir`
$ sudo su - opscode-pgsql -c "psql opscode_chef"
> CREATE FUNCTION gunzip(bytea) RETURNS text
  AS 'func', 'gunzip'
  LANGUAGE C STRICT;


> select (gunzip(serialized_object)::json) from data_bag_items limit 1;

About

postgresql external function to uncompress gzipped data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 60.7%
  • Shell 31.6%
  • Makefile 7.7%