From a939e974519ec996b14367ca6cf1f9549b86dcdb Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 24 Jan 2001 03:40:33 +0000 Subject: [PATCH] Update --- contrib/oid2name/Makefile | 2 +- contrib/oid2name/oid2name.c | 8 ++++---- doc/src/sgml/gist.sgml | 7 ++++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/contrib/oid2name/Makefile b/contrib/oid2name/Makefile index 616e0da381..4303164d6a 100644 --- a/contrib/oid2name/Makefile +++ b/contrib/oid2name/Makefile @@ -2,7 +2,7 @@ # subdir = contrib/oid2name -top_builddir = /pgtop/ +top_builddir = ../.. include $(top_builddir)/src/Makefile.global override CPPFLAGS += -I$(libpq_srcdir) diff --git a/contrib/oid2name/oid2name.c b/contrib/oid2name/oid2name.c index ca5ca1d17d..6d2105d9b3 100644 --- a/contrib/oid2name/oid2name.c +++ b/contrib/oid2name/oid2name.c @@ -331,9 +331,9 @@ void sql_exec_dumptable(PGconn *conn, int systables) /* don't exclude the systables if this is set */ if(systables == 1) - sprintf(todo, "select oid,relname from pg_class order by relname"); + sprintf(todo, "select relfilenode,relname from pg_class order by relname"); else - sprintf(todo, "select oid,relname from pg_class where relname not like 'pg_%%' order by relname"); + sprintf(todo, "select relfilenode,relname from pg_class where relname not like 'pg_%%' order by relname"); sql_exec(conn, todo, NULL); } @@ -348,7 +348,7 @@ void sql_exec_searchtable(PGconn *conn, char *tablename) todo = (char *) malloc (1024); /* get the oid and tablename where the name matches tablename */ - sprintf(todo, "select oid,relname from pg_class where relname = '%s'", tablename); + sprintf(todo, "select relfilenode,relname from pg_class where relname = '%s'", tablename); returnvalue = sql_exec(conn, todo, 1); @@ -372,7 +372,7 @@ void sql_exec_searchoid(PGconn *conn, int oid) todo = (char *) malloc (1024); - sprintf(todo, "select oid,relname from pg_class where oid = %i", oid); + sprintf(todo, "select relfilenode,relname from pg_class where oid = %i", oid); returnvalue = sql_exec(conn, todo, 1); diff --git a/doc/src/sgml/gist.sgml b/doc/src/sgml/gist.sgml index e8c9f9ee3c..f7183b5478 100644 --- a/doc/src/sgml/gist.sgml +++ b/doc/src/sgml/gist.sgml @@ -15,10 +15,11 @@ The information about GIST is at http://GiST.CS.Berkeley.EDU:8000/gist/ with more on different indexing and sorting schemes at -http://s2k-ftp.CS.Berkeley.EDU:8000/personal/jmh/ +http://s2k-ftp.CS.Berkeley.EDU:8000/personal/jmh/. -And there is more interesting reading at the Berkely database site at -http://epoch.cs.berkeley.edu:8000/. +And there is more interesting reading at +http://epoch.cs.berkeley.edu:8000/ and +http://www.sai.msu.su/~megera/postgres/gist/. -- 2.40.0