如题,只有 dump 出的 SQL 文件,部分内容截取如下:
--
-- PostgreSQL database dump
--
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: postgres
--
CREATE PROCEDURAL LANGUAGE plpgsql;
ALTER PROCEDURAL LANGUAGE plpgsql OWNER TO postgres;
SET search_path = public, pg_catalog;
--
-- Name: res_set; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE res_set AS (
pidnum integer,
nret smallint
);
ALTER TYPE public.res_set OWNER TO postgres;
--
-- Name: account_login(character varying, character varying, character varying); Type: FUNCTION; Schema: public; Owner: spiritking
--
CREATE FUNCTION account_login(character varying, character varying, character varying) RETURNS res_set
AS $_$declare
ppAccountID ALIAS FOR $1;
pPassword ALIAS FOR $2;
pClientIP ALIAS FOR $3;
pAccountID varchar(20);
pcount int;
pPwd char(32) default null;
pBAuthority int2 default 0;
pGMIP varchar(15) default null;
res res_set;
BEGIN
pAccountID = lower(ppAccountID);
res.nRet=-1;
...
请教如何确定原数据库的名称呢?
纯外行请教 查到了挺多关于 PostgreSQL 数据库迁移的教程,但是就没有一个提及数据库名称的 或者 PostgreSQL 对数据库命名不敏感?可以随便改名?
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.