Writing My Own Extension For Village SQL Part II

 Writing my own extension for Village SQL has been a learning experience. Extensions are a big part of the PostgreSQL ecosystem, and the idea of bringing them to the MySQL ecosystem is a source of hope for the 'most popular database'.  


The Good News

I was able to build my extension, vsql_cube, and get it into the server! Yeah!     

mysql> select * from information_schema.extensions;
+----------------+-------------------+
| EXTENSION_NAME | EXTENSION_VERSION |
+----------------+-------------------+
| vsql_complex   | 0.0.1             |
| vsql_cube      | 1.0.0             |
| vsql_simple    | 0.0.1             |
+----------------+-------------------+
3 rows in set (0.01 sec)


The Bad News


My extension does not work. 

mysql> select vsql_simple(5);
ERROR 1305 (42000): FUNCTION demo.vsql_simple does not exist
mysql> 

Dang!

Onwards, If Not Upwards

The Village SQL docs are excellent. So I am working through them to find the issue.  My .veb file is in the correct directory and with the proper permissions.

I will keep plugging along and provide updates. I have received many inquiries (thank you) about this, and it appears many are interested in Village SQL. Updates will be forthcoming.
 
My 'off hours' supervisor Bill
 gave me moral support but refuses
to comment on my coding.

My Suspicion On What Is Wrong


I have not written any C/C++ code in many years. Those of us who wrote C in the era of 6502 and 68000 assembly language found it a joy. Well, skip a long time without using a programming language, and you lose your skills. I asked Grok to write the code, and I suspect an 'impedance mismatch' may be in it.  So I will pore over the language specs, searching for an answer.

The Village SQL roadmap mentions the possibility of Rust inclusion later. I am a little more up to date with Rust than with C/C++. But I wonder how many 'Joe Average' DBA/SREs are up to speed on any of these languages.  I see the great value and opportunity being offered to the MySQL-verse with Village SQL, but we averages will need some extra coaching to take advantage.




Comments

Popular posts from this blog

Migrating From MySQL To PostgreSQL in Five Simple Steps

Village SQL - A MySQL Fork With Easy Extensions

Do You Need An AI Assistant?