diff --git a/tests/generic_relations_regress/tests.py b/tests/generic_relations_regress/tests.py
index b6782fe..87c164b 100644
--- a/tests/generic_relations_regress/tests.py
+++ b/tests/generic_relations_regress/tests.py
@@ -50,6 +50,9 @@ class GenericRelationTests(TestCase):
         TextLink.objects.create(content_object=oddrel)
         oddrel.delete()
 
+    def test_textlink_join(self):
+        list(OddRelation2.objects.filter(tlinks__id=None))
+
     def test_q_object_or(self):
         """
         Tests that SQL query parameters for generic relations are properly
diff --git a/tests/test_postgre.py b/tests/test_postgre.py
new file mode 100644
index 0000000..101c2e9
--- /dev/null
+++ b/tests/test_postgre.py
@@ -0,0 +1,8 @@
+DATABASES = {
+    'default': {
+        'ENGINE': 'django.db.backends.postgresql_psycopg2',
+        'HOST': __import__('os').environ.get('PGHOST')
+    }
+}
+
+SECRET_KEY = "django_tests_secret_key"
