安装PostgreSQL 64 笔记
下载地址:
32位源代码
ftp://ftp.postgresql.org/pub/source/
64位官方下载
http://www.enterprisedb.com/downloads/postgres-postgresql-downloads
###################################
原创
2012-02-06 17:20:24
875阅读
前不久,红杉资本提出了一个概念,叫 Developer Tool 2.0,很多传统的开发者工具,都值得基于 AI Copilot 能力,重新构建一遍。目前已成功跃迁至开发者工具 2.0 的,有我多次在公众号介绍过 ChatGPT、Cursor、GitHub Copilot 等产品。还有一些其它领域,正在等待被 AI 颠覆的传统工具。有了这个概念之后,不少开发者已经跃跃欲试,将手伸到了这个新领域,试
EasyX插件下载地址:www.easyx.cn,点击右上角下载1.贪吃蛇///
// 程序名称:贪吃蛇
// 编译环境:Visual C++ 6.0 / 2008,EasyX 2013冬至版
// 最后修改:2014-5-20
// 操作方式:以蛇为第一视角,左 左转;右 右转;下 暂停;上 快进。
// 状态: 黄色 蛇头;红色 蛇身;绿色 食物。
#include <graphics.
转载
2023-07-20 16:06:47
96阅读
一、Java的运行过程Java的运行包括编译和运行俩部分将.java文件源文件通过javac编译成.class字节码文件,但这还不是最后,还需要虚拟机JVM将字节码文件进行解释执行,才可以输出结果。虚拟机首先会把编译好的字节码文件加载到内存,这个过程叫做类加载,然后虚拟机会将保存到的内存的字节码文件进行解释执行第一步:在文本编写源代码public class Test{
public st
转载
2023-06-26 17:32:26
234阅读
Java上百实例源码以及开源项目源代码是一个不错的学习资源,大小为2.01 GB,由浦安波提供,Java类资源中评分为9.7。资源介绍笔者当初为了学习JAVA,收集了很多经典源码,源码难易程度分为初级、中级、高级等,详情看源码列表,需要的可以直接下载! 这些源码反映了那时那景笔者对未来的盲目,对代码的热情、执着,对IT的憧憬、向往!此时此景,笔者只专注Android、Iphone等移动平台开发,看
转载
2023-07-13 20:40:24
53阅读
Application程序的编写与运行 编写源程序 (例HelloWorld.java)
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
} 注:保存的时候文件名要和类名
转载
2023-09-26 12:00:39
97阅读
简单源代码包的制作本文以“hello world”程式为例,简单说明linux下源代码包(.tar.gz)的制作。当然,本身把hello world制作成源代码包是没什么意义的。在此,谨以说明源代码包的制作过程。
首先,确保您的系统装有以下GNU软件:
Automake
Autoconf
m4
perl
libtool
1.新建一目录,将您的源代码放在此目录下,以下的操
转载
精选
2008-11-02 02:00:35
882阅读
本文软件以“hello world”程软件式为例,简单说明linux下源代码包(.tar.gz)的制作。当然,本身把hello world制作成源代码包是没什么意义的。在此,谨以说明源代码包的制作过程。 首先,确保您的系统装有以下GNU软件: Automake Autoconf m4 perl libtool 1.新建一目录,将您的源代码放在此目录下,以下的操作均在此目录里进行。 shell>
转载
精选
2010-02-03 15:31:36
464阅读
1.完成程序界面如下:2.源代码:Option ExplicitPrivate Declare Function HideCaret Lib "user32" (ByVal hwnd As Long) As LongDim ONOFF As BooleanDim operator1 As StringDim operator2 As StringDim resultDim opt As IntegerDim op As BooleanDim caculated As BooleanPrivate Sub aboutComputer_Click()frmAbout.ShowE
转载
2005-06-08 10:53:00
188阅读
2评论
图1. 生成Makefile流程图本文以"hello world"程序为例,简单说明linux下源代码包(.tar.gz)的制作。在此,谨以说明源代码包的制作过程。首先,确保你的系统装有以下GNU软件:AutomakeAutoconfm4perllibtool1.新建一目录,将你的源代码放在此...
转载
2009-04-03 09:44:00
78阅读
2评论
继续:下面的是定义信号处理函数。 /* * now we are starting to do real work, trap signals so we can clean up */ /* some of these are not valid on Windows */#ifdef SIGHUP pqsignal(SIGHUP, trapsig);#endif#ifdef SIGINT pqsignal(SIGINT, trapsig);#endif#ifdef SIGQUIT pqsignal(SIGQUIT, trapsig);#endi...
转载
2013-07-08 08:07:00
65阅读
2评论
继续分析: setup_dictionary();展开:其中:cmd 是:"/home/pgsql/project/bin/postgres" --single -F -O -c search_path=pg_catalog -c exit_on_error=true -j template1 >/dev/nulldictionary_file 是:/home/pgsql/project/share/snowball_create.sql/* * load extra dictionaries (Snowball stemmers) */static voidsetu
转载
2013-07-09 09:36:00
57阅读
2评论
继续分析 setup_description();展开后:就是要把share/postgres.description 文件的内容读入到 pg_description 和 pg_shdescription/* * load description data */static voidsetup_description(void){ PG_CMD_DECL; fputs(_("loading system objects' descriptions ... "), stdout); fflush(stdout); snprintf(cmd, sizeof(cmd),.
转载
2013-07-09 08:42:00
65阅读
2评论
继续分析: setup_collation()展开:/* * populate pg_collation */static voidsetup_collation(void){#if defined(HAVE_LOCALE_T) && !defined(WIN32) int i; FILE *locale_a_handle; char localebuf[NAMEDATALEN]; int count = 0; PG_CMD_DECL;#endif fputs(_("creating...
转载
2013-07-09 08:54:00
73阅读
2评论
继续分析: /* * Make the per-database PG_VERSION for template1 only after init'ing it */ write_version_file("base/1");就是在base/1目录下,生成一个 PG_VERSION 文件。[pgsql@localhost 1]$ pwd/home/pgsql/DemoDir/base/1[pgsql@localhost 1]$ cat PG_VERSION9.1[pgsql@localhost 1]$ 接下来: /* Create the stuff we d...
转载
2013-07-08 16:34:00
46阅读
2评论
继续分析由于 我并未进行特殊的参数设置,所以(strlen(default_text_search_config) == 0) 成立。故 调用 default_text_search_config = find_matching_ts_config(lc_ctype)最后输出:The default text search configuration will be set to "english". if (strlen(default_text_search_config) == 0) { default_text_search_config = find_mat...
转载
2013-07-07 16:56:00
67阅读
2评论
继续分析:由于我使用initdb的时候,没有指定 locale,所以会使用OS的缺省locale,这里是 en_US.UTF-8 printf(_("The files belonging to this database system will be owned " "by user \"%s\".\n" "This user must also own the server process.\n\n"), effective_user); if (strcmp(lc_ctype, lc_collate) ==
转载
2013-07-07 15:33:00
51阅读
2评论
继续其实接前面,整个while循环是这样的: while ((c = getopt_long(argc, argv, "dD:E:L:nU:WA:sT:X:", long_options, &option_index)) != -1) { switch (c) { ...... } ...... }这一句,c = getopt_long(argc, argv, "dD:E:L:nU:WA:sT:X:", lo...
转载
2013-07-05 16:33:00
41阅读
2评论
开始第一段:intmain(int argc, char *argv[]){/* * options with no short version return a low integer, the rest return * their short version value */ static struct option long_options[] = { {"pgdata", required_argument, NULL, 'D'}, {"encoding", required_argument, NULL, 'E'
转载
2013-07-05 15:32:00
41阅读
2评论
继续分析: setup_conversion();展开:其实质是:运行命令:"/home/pgsql/project/bin/postgres" --single -F -O -c search_path=pg_catalog -c exit_on_error=true template1 >/dev/null传递参数:/home/pgsql/project/share/conversion_create.sql/* * load conversion functions */static voidsetup_conversion(void){ PG_CMD_DECL
转载
2013-07-09 09:19:00
32阅读
2评论