irajkoohi commited on
Commit
75567f3
·
verified ·
1 Parent(s): 8cdb9f7

deploy: sync data files

Browse files
Files changed (2) hide show
  1. data/Building_code samples.txt +2 -1
  2. data/txt_1.txt +65 -0
data/Building_code samples.txt CHANGED
@@ -41,11 +41,12 @@ https://codes.iccsafe.org/content/IBC2024P1
41
  how to install postgresql?
42
  create a cover letter for tella for lead architect position
43
 
 
44
  what is the total price of sold apples by william?
45
  what is the total sales of all items for william?
46
  what is the total sales of all sellers in 1/2/2022?
47
  what is the max, min, and avg values in column credit?
48
- what is the max, min, and avg credit, and balance?
49
  what are spendings in march 2026?
50
  how much i paid for grocery in march?
51
  how much i paid for grocery in april?
 
41
  how to install postgresql?
42
  create a cover letter for tella for lead architect position
43
 
44
+ who is the sales rep of texas?
45
  what is the total price of sold apples by william?
46
  what is the total sales of all items for william?
47
  what is the total sales of all sellers in 1/2/2022?
48
  what is the max, min, and avg values in column credit?
49
+ what is the max, min, and avg values in columns credit, and balance?
50
  what are spendings in march 2026?
51
  how much i paid for grocery in march?
52
  how much i paid for grocery in april?
data/txt_1.txt ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##### plsql commands
2
+ plsql # start postgresql
3
+
4
+ \l # list databases
5
+ \dt # list tables
6
+ \dx # list installed extensions
7
+
8
+ ###################################
9
+ # https://dev.to/anzaeee/installing-apache-age-and-postgresql-on-macos-32pb
10
+ # https://www.youtube.com/watch?v=0-qMwpDh0CA
11
+
12
+ brew install zlib
13
+ brew install flex
14
+ brew install bison
15
+
16
+ ##### 1) Installing PostgreSQL from Source Code
17
+ curl -O https://ftp.postgresql.org/pub/source/v11.0/postgresql-11.0.tar.gz && tar -xvf postgresql-11.0.tar.gz && rm -f postgresql-11.0.tar.gz
18
+
19
+ cd postgresql-11.0
20
+ ./configure --enable-debug --enable-cassert --prefix=$(pwd) CFLAGS="-glldb -ggdb -Og -g3 -fno-omit-frame-pointer"
21
+ make install
22
+
23
+ # psql (PostgreSQL) 17.4 (Postgres.app)
24
+ psql -V
25
+
26
+ ##### 2) Installing Apache AGE
27
+ ## AGE is a postgresql extention that transforms text to a GraphDB
28
+ # First make sure you're in a directory of your choice, this can be the same as the folder you chose to install PostgreSQL. clone will create age folder.
29
+
30
+ git clone https://github.com/apache/age.git
31
+
32
+ cd age
33
+ # https://stackoverflow.com/questions/75579392/error-while-installing-apache-age-using-make-install
34
+ #git checkout PG12
35
+
36
+ # sudo make PG_CONFIG=[pathname]/pg_config install;
37
+ # For [pathname], you can first look for the pg_config file that will be present in the bin folder for postgresql. Copy path to pg_config file as a file-path
38
+ # pathname: "/Users/ik/postgresql-11.0/bin/"
39
+
40
+ #sudo make PG_CONFIG="/Users/ik/postgresql-11.0/bin/pg_config" install;
41
+ #sudo make PG_CONFIG=/Library/Postgresql/17/bin/pg_config install;
42
+
43
+ #export PATH=$PG_CONFIG:/Users/ik/postgresql-11.0/bin/:$PATH
44
+ #sudo make PG_CONFIG=PG_CONFIG install;
45
+
46
+ ls ../bin/pg_config
47
+ sudo make PG_CONFIG="../bin/pg_config" install;
48
+ #sudo make install
49
+ #make installcheck
50
+ make PG_CONFIG="/Users/ik/postgresql-11.0/bin/pg_config" installcheck;
51
+
52
+ ##### test AGE
53
+ psql
54
+ SELECT * FROM pg_catalog.pg_extension;
55
+
56
+ # install age extension in psql console
57
+ # https://stackoverflow.com/questions/75264652/unable-to-create-graph-in-postgresql-using-age-extension-despite-following-all
58
+ SELECT * FROM pg_extension WHERE extname = 'age';
59
+ \dx
60
+ create extension age
61
+ # psql -c "SELECT version();
62
+ load 'age';
63
+ # DROP EXTENSION age CASCADE;
64
+ search_path = ag_catalog, "$user", public;
65
+ select create_graph('test_graph');