Permalink
Browse files

Merge branch 'master' into REL9_1_STABLE

  • Loading branch information...
adunstan committed May 14, 2013
2 parents f47cfe3 + a3fef1a commit 4b4905b1a0ce4df9bf533c14438935ed2d40d8d3
Showing with 14 additions and 1,001 deletions.
  1. +0 −45 META.json
  2. +0 −38 Makefile
  3. +0 −85 README
  4. +14 −0 README.md
  5. +0 −29 redis_fdw--1.0.sql
  6. +0 −785 redis_fdw.c
  7. +0 −19 redis_fdw.control
View
@@ -1,45 +0,0 @@
-{
- "name": "redis_fdw",
- "abstract": "Redis FDW for PostgreSQL 9.1+",
- "description": "This extension implements a Foreign Data Wrapper for Redis. It is supported on PostgreSQL 9.1 and above.",
- "version": "1.0.0",
- "maintainer": [
- "Dave Page <dpage@pgadmin.org>"
- ],
- "license": "postgresql",
- "provides": {
- "redis_fdw": {
- "abstract": "Redis FDW for PostgreSQL 9.1+",
- "file": "redis_fdw--1.0.sql",
- "docfile": "README",
- "version": "1.0.0"
- }
- },
- "prereqs": {
- "runtime": {
- "requires": {
- "PostgreSQL": "9.1.0"
- }
- }
- },
- "resources": {
- "bugtracker": {
- "web": "https://github.com/dpage/redis_fdw/issues"
- },
- "repository": {
- "url": "git://github.com/dpage/redis_fdw.git",
- "web": "http://github.com/dpage/redis_fdw/",
- "type": "git"
- }
- },
- "generated_by": "Dave Page",
- "meta-spec": {
- "version": "1.0.0",
- "url": "http://pgxn.org/meta/spec.txt"
- },
- "tags": [
- "fdw",
- "redis",
- "foreign data wrapper"
- ]
-}
View
@@ -1,38 +0,0 @@
-##########################################################################
-#
-# foreign-data wrapper for Redis
-#
-# Copyright (c) 2011, PostgreSQL Global Development Group
-#
-# This software is released under the PostgreSQL Licence
-#
-# Author: Dave Page <dpage@pgadmin.org>
-#
-# IDENTIFICATION
-# redis_fdw/Makefile
-#
-##########################################################################
-
-MODULE_big = redis_fdw
-OBJS = redis_fdw.o
-
-EXTENSION = redis_fdw
-DATA = redis_fdw--1.0.sql
-
-REGRESS = redis_fdw
-
-EXTRA_CLEAN = sql/redis_fdw.sql expected/redis_fdw.out
-
-SHLIB_LINK += -lhiredis
-
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-else
-subdir = contrib/redis_fdw
-top_builddir = ../..
-include $(top_builddir)/src/Makefile.global
-include $(top_srcdir)/contrib/contrib-global.mk
-endif
-
View
85 README
@@ -1,85 +0,0 @@
-Redis FDW for PostgreSQL 9.1+
-==============================
-
-This PostgreSQL extension implements a Foreign Data Wrapper (FDW) for
-the Redis key/value database: http://redis.io/
-
-This code is experimental, and largely intended as a pet project for me
-to experiment with and learn about FDWs in PostgreSQL.
-
-By all means use it, but do so entirely at your own risk! You have been
-warned!
-
-Building
---------
-
-To build the code, you need the hiredis C interface to Redis installed
-on your system. You can checkout the hiredis from GitHub:
-https://github.com/antirez/hiredis
-
-Once that's done, the extension can be built with:
-
-PATH=/usr/local/pgsql91/bin/:$PATH make USE_PGXS=1
-sudo PATH=/usr/local/pgsql91/bin/:$PATH make USE_PGXS=1 install
-
-(assuming you have PostgreSQL 9.1 in /usr/local/pgsql91).
-
-I've tested on Mac OS X 10.6 only, but other *nix's should also work.
-I haven't tested on Windows, but the code should be good on MinGW.
-
-Limitations
------------
-
-- There's no such thing as a cursor in Redis, or MVCC, which leaves us
- with no way to atomically query the database for the available keys
- and then fetch each value. So, we get a list of keys to begin with,
- and then fetch whatever records still exist as we build the tuples.
-
-- We can only push down a single qual to Redis, which must use the
- TEXTEQ operator, and must be on the 'key' column.
-
-- There is currently no support for non-scalar datatypes in Redis
- such as lists.
-
-Usage
------
-
-The following parameters can be set on a Redis foreign server:
-
-address: The address or hostname of the Redis server.
- Default: 127.0.0.1
-
-port: The port number on which the Redis server is listening.
- Default: 6379
-
-The following parameter can be set on a Redis foreign table:
-
-database: The numeric ID of the Redis database to query.
- Default: 0
-
-The following parameter can be set on a user mapping for a Redis
-foreign server:
-
-password: The password to authenticate to the Redis server with.
- Default: <none>
-
-Example
--------
-
-CREATE EXTENSION redis_fdw;
-
-CREATE SERVER redis_server
- FOREIGN DATA WRAPPER redis_fdw
- OPTIONS (address '127.0.0.1', port '6379');
-
-CREATE FOREIGN TABLE redis_db0 (key text, value text)
- SERVER redis_server
- OPTIONS (database '0');
-
-CREATE USER MAPPING FOR PUBLIC
- SERVER redis_server
- OPTIONS (password 'secret');
-
---
-Dave Page
-dpage@pgadmin.org
View
@@ -0,0 +1,14 @@
+Redis FDW for PostgreSQL 9.1+
+==============================
+
+This repository has moved to https://github.com/pg-redis-fdw/redis_fdw
+
+Please back up your repo to the previous commit and adjust the git config to
+point to https://github.com/pg-redis-fdw/redis_fdw.git or
+git://github.com/pg-redis-fdw/redis_fdw.git
+
+The commits are identical in the new location up to the point where we moved it.
+
+Sorry for any inconvenience.
+
+Dave and Andrew
View
@@ -1,29 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * foreign-data wrapper for Redis
- *
- * Copyright (c) 2011, PostgreSQL Global Development Group
- *
- * This software is released under the PostgreSQL Licence
- *
- * Author: Dave Page <dpage@pgadmin.org>
- *
- * IDENTIFICATION
- * redis_fdw/redis_fdw--1.0.sql
- *
- *-------------------------------------------------------------------------
- */
-
-CREATE FUNCTION redis_fdw_handler()
-RETURNS fdw_handler
-AS 'MODULE_PATHNAME'
-LANGUAGE C STRICT;
-
-CREATE FUNCTION redis_fdw_validator(text[], oid)
-RETURNS void
-AS 'MODULE_PATHNAME'
-LANGUAGE C STRICT;
-
-CREATE FOREIGN DATA WRAPPER redis_fdw
- HANDLER redis_fdw_handler
- VALIDATOR redis_fdw_validator;
Oops, something went wrong.

0 comments on commit 4b4905b

Please sign in to comment.