Skip to content

Commit 5b94a71

Browse files
authored
Bump version tag to BABEL_1_0_0 (#171)
This commit contains the necessary updates for the `BABEL_1_0_0` release : Updated tags across documentation and templates. Bumped ANLTR version to 4.9.3 according to PR 66 in babelfish_extensions. Signed-off-by: Emanuel Calvo [email protected]
1 parent 7139cbc commit 5b94a71

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

.github/ISSUE_TEMPLATE/documentation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ body:
2929
label: Version
3030
description: Select the Babelfish documentation version to which the change applies.
3131
options:
32-
- BABEL_1_X_DEV (Default)
32+
- BABEL_1_0_0 (Default)
3333
required: true
3434
- type: textarea
3535
id: docs

_data/repos.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
special_files:
1717
-
1818
title: Contributing
19-
url: https://github.com/babelfish-for-postgresql/babelfish_extensions/blob/BABEL_1_X_DEV/CONTRIBUTING.md
19+
url: https://github.com/babelfish-for-postgresql/babelfish_extensions/blob/BABEL_1_0_0/CONTRIBUTING.md
2020

2121
-
2222
shortname: compass

_docs/index.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ Babelfish for PostgreSQL functionality is distributed in five components:
2727

2828
Component | Purpose
2929
:--- | :---
30-
[Babelfish PostgreSQL](https://github.com/babelfish-for-postgresql/postgresql_modified_for_babelfish) | A customized PostgreSQL server that provides hooks used to implement Babelfish.
31-
[Babelfish TDS Extension](https://github.com/babelfish-for-postgresql/babelfish_extensions/tree/BABEL_1_X_DEV/contrib/babelfishpg_tds) | An extension that implements a secondary endpoint that speaks the TDS (SQL Server) network protocol.
32-
[Babelfish Language Extension](https://github.com/babelfish-for-postgresql/babelfish_extensions/tree/BABEL_1_X_DEV/contrib/babelfishpg_tsql) | An extension that provides a procedural language compatible with TSQL Uses ANTLR parser.
33-
[Babelfish Money Type](https://github.com/babelfish-for-postgresql/babelfish_extensions/tree/BABEL_1_X_DEV/contrib/babelfishpg_money) | An extension that supports the money type in SQL Server. This is a variation of the opensource fixeddecimal extension.
34-
[Babelfish Common](https://github.com/babelfish-for-postgresql/babelfish_extensions/tree/BABEL_1_X_DEV/contrib/babelfishpg_common) | An extension that supports the various datatypes used in SQL Server.
30+
[Babelfish Patch](https://github.com/babelfish-for-postgresql/postgresql_modified_for_babelfish) | Enables Babelfish hooks for PostgreSQL.
31+
[Babelfish TDS Extension](https://github.com/babelfish-for-postgresql/babelfish_extensions/tree/BABEL_1_0_0/contrib/babelfishpg_tds) | TDS - provides a secondary endpoint that speaks the TDS (SQL Server) network protocol.
32+
[Balbelfish Language Extension](https://github.com/babelfish-for-postgresql/babelfish_extensions/tree/BABEL_1_0_0/contrib/babelfishpg_tsql) | Provides a procedural language compatible with TSQL Uses ANTLR parser.
33+
[Babelfish Money Type](https://github.com/babelfish-for-postgresql/babelfish_extensions/tree/BABEL_1_0_0/contrib/babelfishpg_money) | Supports the money type in Microsoft SQL Server. This is a variation of the opensource fixeddecimal extension.
34+
[Babelfish Common](https://github.com/babelfish-for-postgresql/babelfish_extensions/tree/BABEL_1_0_0/contrib/babelfishpg_common) | Supports the various datatypes in Microsoft SQL Server.
35+
3536

3637
For information about the project components, see the [Software architecture page](https://babelfishpg.org/docs/internals/software-architecture/).
3738

@@ -40,4 +41,4 @@ For information about the project components, see the [Software architecture pag
4041

4142
[Babelfish](https://babelfishpg.org/) is supported by Amazon Web Services. All components are available under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0.html) and the [PostgreSQL License](https://www.postgresql.org/about/licence/) on [GitHub](https://github.com/babelfish-for-postgresql).
4243

43-
The project welcomes GitHub issues, bug fixes, features, plugins, and documentation patches. To get involved, see [Contributing to Babelfish](https://github.com/babelfish-for-postgresql/babelfish_extensions/blob/BABEL_1_X_DEV/CONTRIBUTING.md) on the Babelfish for PostgreSQL website.
44+
The project welcomes GitHub issues, bug fixes, features, plugins, documentation---anything at all. To get involved, see [Contributing](https://github.com/babelfish-for-postgresql/babelfish_extensions/blob/BABEL_1_0_0/CONTRIBUTING.md) on the Babelfish for PostgreSQL website.

_installation/compiling-babelfish-from-source.md

+15-12
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ make install # Installs the PostgreSQL default extensions
116116
To build the Babelfish extensions, you will need to install some additional tools:
117117

118118
##### Additional required tools
119-
- [Antlr 4.9.2 Runtime](https://www.antlr.org/)
119+
- [Antlr 4.9.3 Runtime](https://www.antlr.org/)
120120
- [Open Java 8](https://openjdk.java.net/)
121121
- Unzip
122122
- [pkgconf](http://pkgconf.org/)
@@ -131,40 +131,43 @@ sudo apt install -y openjdk-8-jre unzip libutfcpp-dev cmake curl
131131

132132
##### Installing Antlr4 runtime
133133

134-
> There are no available binaries for for the Antlr4 4.9.2 runtime for C++, so you'll need to compile it from source. Versions below 4.9 have not been fully tested yet.
134+
> For Antlr4 4.9.3 Runtime, there are no available binaries for C++ in Ubuntu Focal, so it's necessary to compile it from source. Versions below 4.9 have not been fully tested yet.
135+
135136

136137
To install the Antlr4 runtime, you will use the Antlr4 .jar file. The Babelfish extensions source code includes
137138
the .jar file in `/contrib/babelfishpg_tsql/antlr/thirdparty/antlr`.
138139

139140
You can install Antlr4 runtime by running the following commands:
140141

141142
``` sh
142-
# Download the compressed Antlr4 Runtime sources on /opt/antlr4-cpp-runtime-4.9.2-source.zip
143-
sudo curl https://www.antlr.org/download/antlr4-cpp-runtime-4.9.2-source.zip \
144-
--output /opt/antlr4-cpp-runtime-4.9.2-source.zip
143+
# Dowloads the compressed Antlr4 Runtime sources on /opt/antlr4-cpp-runtime-4.9.3-source.zip
144+
sudo curl https://www.antlr.org/download/antlr4-cpp-runtime-4.9.3-source.zip \
145+
--output /opt/antlr4-cpp-runtime-4.9.3-source.zip
146+
145147

146148
# Uncompress the source into /opt/antlr4
147-
sudo unzip -d /opt/antlr4 /opt/antlr4-cpp-runtime-4.9.2-source.zip
149+
sudo unzip -d /opt/antlr4 /opt/antlr4-cpp-runtime-4.9.3-source.zip
148150

149151
sudo mkdir /opt/antlr4/build
150152
cd /opt/antlr4/build
151153

152154
EXTENSIONS_SOURCE_CODE_PATH="<the patch in which you downloaded the Babelfish extensions source code>"
153155

154-
# Generate the make files for the build
155-
sudo cmake .. -DANTLR_JAR_LOCATION="$EXTENSIONS_SOURCE_CODE_PATH/contrib/babelfishpg_tsql/antlr/thirdparty/antlr/antlr-4.9.2-complete.jar" \
156+
# Generates the make files for the build
157+
sudo cmake .. -DANTLR_JAR_LOCATION="$EXTENSIONS_SOURCE_CODE_PATH/contrib/babelfishpg_tsql/antlr/thirdparty/antlr/antlr-4.9.3-complete.jar" \
156158
-DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_DEMO=True
157159
# Compile and install
158160
sudo make
159161
sudo make install
160162
```
161163

162-
Now that you have installed the antlr4 runtime, you will need to copy the
163-
`libantlr4-runtime.so.4.9.2` library into the Babelfish for PostgreSQL
164-
engine libs folder. Use the following command:
164+
Now that we have the antlr4 runtime installed, we need to copy the
165+
`libantlr4-runtime.so.4.9.3` library into the installed Babelfish for PostgreSQL
166+
engine libs folder. We can do that by running the following command:
167+
165168

166169
``` sh
167-
sudo cp /usr/local/lib/libantlr4-runtime.so.4.9.2 "$INSTALLATION_PATH/lib"
170+
sudo cp /usr/local/lib/libantlr4-runtime.so.4.9.3 "$INSTALLATION_PATH/lib"
168171
```
169172

170173

0 commit comments

Comments
 (0)